Difference between revisions of "Component: MIDI (Comms: System)"
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
==MIDI component== | ==MIDI component== | ||
Low level routines for controlling or interacting with a standard MIDI interface. | Low level routines for controlling or interacting with a standard MIDI interface. | ||
+ | |||
+ | ==Component Pack== | ||
+ | |||
+ | COMMSA | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 26: | Line 34: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
+ | |||
+ | |||
Line 328: | Line 340: | ||
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections |
|- | |- | ||
|- | |- | ||
Line 382: | Line 394: | ||
| colspan="2" | Pin to be used for Clear To Send handshake function. Input to target micro to inform when the remote device is ready to transmit data. Low = Ready to transmit data High = Not ready to transmit data | | colspan="2" | Pin to be used for Clear To Send handshake function. Input to target micro to inform when the remote device is ready to transmit data. Low = Ready to transmit data High = Not ready to transmit data | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
|- | |- | ||
|- | |- |
Latest revision as of 17:21, 9 November 2022
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 |