NothNoth / MIDIRouter

An advanced midi router for MacOS
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

problem with two sources with the same name #4

Open surrain opened 2 days ago

surrain commented 2 days ago

When I run midirouter without a config file, it shows me my available inputs. Two of them have the same name of "KEYBOARD". I can use "KEYBOARD" as a SourceDevice in my config to set one of them as the input, but I can't differentiate between them. One is a microKEY2 Air 49 and the other is a microKEY2 Air 37. I've tried entering the source name different ways, but nothing other than just entering "KEYBOARD" as the SourceDevice works.

I mistakenly posted this issue first on youpy/go-coremidi. They asked that I post it here, but also offered what seems to be an idea of how to address it: https://github.com/youpy/go-coremidi/issues/6#issuecomment-2481136557.

Thanks!

NothNoth commented 1 day ago

Hi,

Yes I've already seen that, I will try to see if I can find a workaround

NothNoth commented 1 day ago

I just realized that I addressed this issue in last february, now I'm using a manufacturer/Name pair to identify a device.

Are you sure you're using the lastest version? Can you copy/paste the output of your available in/outs by running ./midirouter with no config?

surrain commented 1 day ago

./midirouter Usage: ./midirouter MIDI inputs: Bus 1 Bus 2 Bus 3 Bus 4 Bus 5 Bus 6 Bus 7 Bus 8 Dorico Bus 1 Dorico Bus 2 Dorico Bus 3 Dorico Bus 4 Dorico Bus 5 Dorico Bus 6 Dorico Bus 7 Dorico Bus 8 Dorico Bus 9 Perma49 Perma37 Quantum 2626 KEYBOARD KEYBOARD MIDI outputs: Bus 1 Bus 2 Bus 3 Bus 4 Bus 5 Bus 6 Bus 7 Bus 8 Dorico Bus 1 Dorico Bus 2 Dorico Bus 3 Dorico Bus 4 Dorico Bus 5 Dorico Bus 6 Dorico Bus 7 Dorico Bus 8 Dorico Bus 9 Perma49 Perma37 Quantum 2626 CTRL CTRL

surrain commented 1 day ago

https://github.com/NothNoth/MIDIRouter/releases/download/v1.0/midirouter

I believe I'm using that one.

NothNoth commented 1 day ago

Oh ok, I thought you were using a home built version. I've just pushed a v1.1 release with the latest updates, it should fix your issue Let me know!

surrain commented 22 hours ago

Thank you. I see the change, but it doesn't help me because it doesn't disambiguate between the two Korg keyboards. It seems to be missing their full names. They are named microKEY2 Air 49 KEYBOARD and microKEY2 Air 37 KEYBOARD but only the last part of their names is showing.

Here's my new output:

> ./midirouter
Usage: ./midirouter <config file>
MIDI inputs:
  Apple Inc./Bus 1
  Apple Inc./Bus 2
  Apple Inc./Bus 3
  Apple Inc./Bus 4
  Apple Inc./Bus 5
  Apple Inc./Bus 6
  Apple Inc./Bus 7
  Apple Inc./Bus 8
  Apple Inc./Dorico Bus 1
  Apple Inc./Dorico Bus 2
  Apple Inc./Dorico Bus 3
  Apple Inc./Dorico Bus 4
  Apple Inc./Dorico Bus 5
  Apple Inc./Dorico Bus 6
  Apple Inc./Dorico Bus 7
  Apple Inc./Dorico Bus 8
  Apple Inc./Dorico Bus 9
  Apple Inc./Perma49
  Apple Inc./Perma37
  PreSonus/Quantum 2626
  KORG INC./KEYBOARD
  KORG INC./KEYBOARD
MIDI outputs:
  Apple Inc./Bus 1
  Apple Inc./Bus 2
  Apple Inc./Bus 3
  Apple Inc./Bus 4
  Apple Inc./Bus 5
  Apple Inc./Bus 6
  Apple Inc./Bus 7
  Apple Inc./Bus 8
  Apple Inc./Dorico Bus 1
  Apple Inc./Dorico Bus 2
  Apple Inc./Dorico Bus 3
  Apple Inc./Dorico Bus 4
  Apple Inc./Dorico Bus 5
  Apple Inc./Dorico Bus 6
  Apple Inc./Dorico Bus 7
  Apple Inc./Dorico Bus 8
  Apple Inc./Dorico Bus 9
  Apple Inc./Perma49
  Apple Inc./Perma37
  PreSonus/Quantum 2626
  KORG INC./CTRL
  KORG INC./CTRL