A MIDI over BLE interface for esp-idf.
Implementation of MIDI parser is Arduino-BLE-MIDI.
- esp-idf v3.1.4
Like this.
MIDIBLE::BLEInterface *interface = new MIDIBLE::BLEInterface(name, udid);
interface->note_on_handler = [&](MIDIBLE::MIDI::Channel channel, uint8_t note, uint8_t velocity) {
// note on
};
interface->note_off_handler = [&](MIDIBLE::MIDI::Channel channel, uint8_t note, uint8_t velocity) {
// note off
};