Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decuple from midi transport? #68

Open
marchingband opened this issue Oct 19, 2022 · 1 comment
Open

decuple from midi transport? #68

marchingband opened this issue Oct 19, 2022 · 1 comment

Comments

@marchingband
Copy link

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!

@lathoub
Copy link
Owner

lathoub commented Oct 19, 2022

Hi @marchingband

Look at

template <class T, class _Settings = DefaultSettings>
class BLEMIDI_Transport

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants