Skip to content

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

@hasanayan

Description

@hasanayan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions