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

Question: is it possible to use a custom driver? #274

Open
goofy2k opened this issue Nov 20, 2021 · 3 comments
Open

Question: is it possible to use a custom driver? #274

goofy2k opened this issue Nov 20, 2021 · 3 comments

Comments

@goofy2k
Copy link

goofy2k commented Nov 20, 2021

I am working on a project where I want to use BLE for MIDI output. I have this running for sending single commands. Now I want to use a library that uses RtMidi for input/output. Is there a way (preferably via an API) to bind a custom driver to RtMidi? I read in the docs about openVirtualPort, but that is probably not what I look for, as I don't see a way to e.g. give a pointer to a callback/custom driver.

@keinstein
Copy link

Yes, it is. You just have to write the glue code that supports the RtMidiApi virtual functions.

If you want to make a Operating System driver which fits directly to Windows (probably a fake USB device, ALSA (RAW interface), macOS (OSS), or whatever, you should write a driver for each system separately as you have to deal with BLE also on the OS level.

If you want to make a quick hack, openVirtualPort is exactly what you want (unfortunately it does not work with WinMM).

@goofy2k
Copy link
Author

goofy2k commented Nov 21, 2021 via email

@goofy2k
Copy link
Author

goofy2k commented Nov 21, 2021

I had a closer look at the API. I did not find information on how to create a procedure/driver that will be detected as an available input or output port when scanning for them.....

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