Re: Better support for multiple MIDI devices
Posted: Wed Aug 10, 2016 8:20 am
I don't think either of my controllers have any support for virtual interfaces. Haven't seen anything relevant in the documentation or the firmware configuration apps for them.
Regarding mapping devices by name, yeah, I don't see any other way to do it, either. However, I don't think you'd have to do that continuously, rather the check would only be needed at device connect time? So when a MIDI device is "attached", check its name and then map that connection to a device configuration. This should be stable since G-Stomper is "notified" of devices being "attached" and "detached"?
In the case of using a USB hub and multiple devices, in the MIDI Scope app for me the two devices are assigned different "alsa_card" numbers. Isn't that something you can use to efficiently differentiate the connected devices? You'd only need to check the name on new connections and then internally map the card number to the device configuration.
I've never done any Android programming myself although I am a programmer. Are you using the android.media.midi API?
Regarding mapping devices by name, yeah, I don't see any other way to do it, either. However, I don't think you'd have to do that continuously, rather the check would only be needed at device connect time? So when a MIDI device is "attached", check its name and then map that connection to a device configuration. This should be stable since G-Stomper is "notified" of devices being "attached" and "detached"?
In the case of using a USB hub and multiple devices, in the MIDI Scope app for me the two devices are assigned different "alsa_card" numbers. Isn't that something you can use to efficiently differentiate the connected devices? You'd only need to check the name on new connections and then internally map the card number to the device configuration.
I've never done any Android programming myself although I am a programmer. Are you using the android.media.midi API?