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

Determining correct cable number when sending MIDI to a device #127

Open
hasanayan opened this issue Oct 4, 2023 · 0 comments
Open

Determining correct cable number when sending MIDI to a device #127

hasanayan opened this issue Oct 4, 2023 · 0 comments

Comments

@hasanayan
Copy link

When I tried sending MIDI to my Korg minilogue xd, it did not work with the default cable option ( 0 ), So I had a look into the MIDI spec and played around the source of this library and found something. But I can't be sure if this is working by chance or it really makes sense. Could you please verify?

So my understanding is that we get two bulk endpoints, one for IN and one for OUT, rx_ep represents the IN enpoint number and I just assumed it corresponds to the cable number as well.

So in the send method of MIDIDeviceBase I added those lines in the beginning;

if (cable == 0) { cable = rx_ep; }

Does this make sense?

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

1 participant