Arduino-BLE-MIDI icon indicating copy to clipboard operation
Arduino-BLE-MIDI copied to clipboard

decuple from midi transport?

Open marchingband opened this issue 3 years ago • 1 comments

I'd like to use this library, but I have my own midi handling code. Is there an easy way to decouple this from Arduino-MIDI-Library ?

I'd like to get access to the bytes coming in on the characteristic, and pass them to my own midi parsing lib.

thank you!

marchingband avatar Oct 19 '22 16:10 marchingband

Hi @marchingband

Look at https://github.com/lathoub/Arduino-BLE-MIDI/blob/929c2fc04962672ddba903a618601bea44ee1f3e/src/BLEMIDI_Transport.h#L26-L27

T is the Arduino-MIDI-Library, so you could replace it with your (albeit you need to implement begin(), end(), available(), ...)

lathoub avatar Oct 19 '22 17:10 lathoub