A simple 5-pin MIDI helper library.
MIDI_5Pin Class Reference
The 5-pin MIDI helper class. More...
#include <MIDI_5Pin.h>
Public Member Functions | |
| MIDI_5Pin (PinName txPin, PinName rxPin) | |
| Create a Midi5Pin object with the specified transmit and receive pins. | |
| void | write (char command, char param1, char param2) |
| Send a command to the 5-pin output port. | |
| void | noteOn (char note, char velocity) |
| Send a noteOn MIDI message to the 5-pin output. | |
| void | noteOff (char note) |
| Send a noteOff MIDI message to the 5-pin output. | |
| void | contCtrl (char ccNumber, char value) |
| Send a continuous control message to the 5-pin output. | |
| void | read () |
| Read from the 5-pin input connection and send it to the PC through the USB virtual com port. | |
Detailed Description
The 5-pin MIDI helper class.
Definition at line 12 of file MIDI_5Pin.h.
Constructor & Destructor Documentation
| MIDI_5Pin | ( | PinName | txPin, |
| PinName | rxPin | ||
| ) |
Create a Midi5Pin object with the specified transmit and receive pins.
- Parameters:
-
txPin Transmit pin rxPin Receive pin
Definition at line 11 of file MIDI_5Pin.cpp.
Member Function Documentation
| void contCtrl | ( | char | ccNumber, |
| char | value | ||
| ) |
Send a continuous control message to the 5-pin output.
- Parameters:
-
ccNumber The continuous control message number value Value of the continuous control message
Definition at line 36 of file MIDI_5Pin.cpp.
| void noteOff | ( | char | note ) |
Send a noteOff MIDI message to the 5-pin output.
- Parameters:
-
note MIDI note number
Definition at line 30 of file MIDI_5Pin.cpp.
| void noteOn | ( | char | note, |
| char | velocity | ||
| ) |
Send a noteOn MIDI message to the 5-pin output.
- Parameters:
-
note MIDI note number velocity MIDI note velocity (loudness)
Definition at line 24 of file MIDI_5Pin.cpp.
| void read | ( | ) |
Read from the 5-pin input connection and send it to the PC through the USB virtual com port.
Definition at line 42 of file MIDI_5Pin.cpp.
| void write | ( | char | command, |
| char | param1, | ||
| char | param2 | ||
| ) |
Send a command to the 5-pin output port.
- Parameters:
-
command The MIDI command byte param1 First parameter (depends on command) param2 Second parameter (depends on command)
Definition at line 18 of file MIDI_5Pin.cpp.
Generated on Sat Jul 30 2022 07:39:11 by
1.7.2