IMidiOutput
#include "crosspad/midi/IMidiOutput.hpp"Generated from crosspad/midi/IMidiOutput.hpp in crosspad-core. Edit the header’s doxygen comments to change this page.
Recipes that use it: MIDI out, Motion and vibration
Functions
Section titled “Functions”getMidiOutput
Section titled “getMidiOutput”IMidiOutput & getMidiOutput()Platform-injected singleton (same pattern as getEventBus())
Used in MIDI out, Motion and vibration.
Declared in crosspad/midi/IMidiOutput.hpp:56.
crosspad::IMidiOutput
Section titled “crosspad::IMidiOutput”Abstract MIDI output interface.
Platform implementations inject callbacks via EspMidiOutput::setCallbacks() or provide a concrete subclass.
The 2-param sendNoteOn/Off are the required pure-virtual methods. The 3-param velocity-aware overloads and the additional message types have default implementations, so a subclass overrides only what it sends.
Used in MIDI out, Motion and vibration.
Members
| Member | Description |
|---|---|
sendNoteOn | |
sendNoteOff | |
sendNoteOn | |
sendNoteOff | |
sendControlChange | |
sendAftertouch | |
sendProgramChange | |
sendPitchBend | |
sendSysEx | Whole frame including F0 and F7. |
Methods
sendNoteOn
Section titled “sendNoteOn”virtual void sendNoteOn(uint8_t note, uint8_t channel) = 0Used in MIDI out.
sendNoteOff
Section titled “sendNoteOff”virtual void sendNoteOff(uint8_t note, uint8_t channel) = 0Used in MIDI out.
sendNoteOn
Section titled “sendNoteOn”virtual void sendNoteOn(uint8_t note, uint8_t velocity, uint8_t channel)Used in MIDI out.
sendNoteOff
Section titled “sendNoteOff”virtual void sendNoteOff(uint8_t note, uint8_t velocity, uint8_t channel)Used in MIDI out.
sendControlChange
Section titled “sendControlChange”virtual void sendControlChange(uint8_t controller, uint8_t value, uint8_t channel)Used in MIDI out, Motion and vibration.
sendAftertouch
Section titled “sendAftertouch”virtual void sendAftertouch(uint8_t note, uint8_t pressure, uint8_t channel)sendProgramChange
Section titled “sendProgramChange”virtual void sendProgramChange(uint8_t program, uint8_t channel)sendPitchBend
Section titled “sendPitchBend”virtual void sendPitchBend(int16_t value, uint8_t channel)Used in MIDI out.
sendSysEx
Section titled “sendSysEx”virtual void sendSysEx(const uint8_t *frame, size_t len)Whole frame including F0 and F7.
Default drops it: only the USB output talks to a host that speaks the CrossPad SysEx catalog.
Declared in crosspad/midi/IMidiOutput.hpp:17.