Send-MIDI-Notes
Example showing how to send MIDI Note messages.
- Boards:
- AVR, AVR USB, Nano Every, Due, Nano 33 IoT, Nano 33 BLE, Pi Pico, Teensy 3.x, ESP32, ESP8266
- See also
- MIDI Tutorial: Sending MIDI messages
-
Send-All-MIDI-Messages.ino
Button pushbutton {2};
const uint8_t velocity = 0x7F;
void setup() {
pushbutton.begin();
}
void loop() {
pushbutton.update();
if (pushbutton.getState() == Button::Falling)
else if (pushbutton.getState() == Button::Rising)
}
constexpr Channel CHANNEL_1
The main header file that includes all Control-Surface header files.
void update() override
Read the MIDI interface and call the callback if a message was received.
void begin() override
Initialize the MIDI Interface.
A type-safe utility class for saving a MIDI address consisting of a 7-bit address,...
void sendNoteOn(MIDIAddress address, uint8_t velocity)
Send a MIDI Note On event.
void sendNoteOff(MIDIAddress address, uint8_t velocity)
Send a MIDI Note Off event.
A class for MIDI interfaces sending MIDI messages over a USB MIDI connection.