keijiro / Minis

Minis: MIDI Input for New Input System -- A plugin that adds MIDI input support to Unity's new Input System
Other
582 stars 46 forks source link

Multiple MIDI devices all register as the same device and multiple channels don't fix it #33

Open atesija opened 1 year ago

atesija commented 1 year ago

I have two MIDI devices that I'm using at the same time and they both register as one device (so any notes mapped to both will trigger from either device). I saw a possible fix for this issue here https://github.com/keijiro/Minis/issues/14 but one thing I noticed in the readme is that "Minis treats each MIDI channel as an individual device" so I tried changing the channel on both of them but still have the same issue. It seems like channel isn't taken into account when reading from either device. I know pressing the "T" and manually changing the name should work (maybe even adding in the channel manually?) but I'm mapping a ton of buttons and it feels like a slightly frail and tedious way to do it. Am I missing something with how channels work?

keijiro commented 1 year ago

How about using control paths like this?

https://github.com/keijiro/Khoreo/blob/3265ee9ee28a48c86cf2f5a9a4111f2867377cfd/Assets/Khoreo.unity#L4057