Component: MIDI (Comms: System)
Author | Matrix Ltd. |
Version | 2.0 |
Category | Comms: System |
Contents
MIDI component
Low level routines for controlling or interacting with a standard MIDI interface.
Component Pack
COMMSA
Detailed description
No detailed description exists yet for this component
Examples
Basic example to play a series of notes getting higher in pitch and then going down in pitch. This repeats in a loop and each time the loop repeats the instrument is changed. The current note and instrument are displayed on the LCD.
MIDI Test File
The MIDI component during simulation has functionality to allow it to work with MIDI synthesizers installed on your PC.
To select your software or hardware synthesizer select from the property selector.
If you don't have a MIDI interface installed then IP MIDI seems to be a good option that works well.
Once installed the MIDI output should play through your computer speakers.
The console window can be used to view the MIDI data as it is sent out and received.
The MIDI component during embedded operation will communicate using a UART serial channel. An EB021 MIDI E-block is available to allow standard MIDI cables to be connected up to a system.
Downloadable macro reference
![]() |
SendPitchChange |
Sends out a pitch change command on the specified channel. | |
![]() |
Channel |
Channel to send the pitch change to | |
![]() |
Pitch_Change |
New pitch value to use, Default 0x2000 | |
![]() |
Return |
![]() |
SendNoteOff |
Sends a note off command using the channel, note and velocity specified. | |
![]() |
Channel |
![]() |
Note |
![]() |
Velocity |
![]() |
Return |
![]() |
SendControl |
Sends a control command using the channel, controller and value specified. | |
![]() |
Channel |
![]() |
Controller |
![]() |
Value |
![]() |
Return |
![]() |
SendNoteOn |
Sends a note on command using the channel, note and velocity specified. | |
![]() |
Channel |
![]() |
Note |
![]() |
Velocity |
![]() |
Return |
![]() |
SendPolyPressure |
Sends a note press with an associated polyphonic pressure value. | |
![]() |
Channel |
![]() |
Note |
![]() |
Pressure |
![]() |
Return |
![]() |
ReadData |
![]() |
Idx |
![]() |
Return |
![]() |
SendPatch |
![]() |
Channel |
![]() |
Instrument |
![]() |
Return |
![]() |
SendChannelPressure |
![]() |
Channel |
![]() |
Pressure |
![]() |
Return |
![]() |
Initialise |
Initialises the MIDI component and sets up the UART. | |
![]() |
Return |