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

Listing port names, sending MIDI messages to specific ports #112

Open
intonarumori opened this issue May 23, 2024 · 0 comments
Open

Listing port names, sending MIDI messages to specific ports #112

intonarumori opened this issue May 23, 2024 · 0 comments

Comments

@intonarumori
Copy link

intonarumori commented May 23, 2024

I've been working on an app that will be available on Android, iOS, macOS and Windows.

I've noticed that my iConnectivity MIO10 MIDI interface shows up differently on different platforms:

  • On iOS I get a list of 10 MIDI devices each with it's own name (MIO DIN1, MIO DIN2, etc.)
  • On Android it shows up as one device with 10 different ports

Correct me if I'm wrong but it looks like I can send MIDI messages to different devices, but cannot target individual ports.
I've looked at the Android source code at it seems the library only uses the first output port when sending messages.

Log.d("FlutterMIDICommand", "Open output port")
this.outputPort = this.midiDevice.openOutputPort(0)
this.outputPort?.connect(this.receiver)

As a side note, port names are also not available right now, I think MidiPort should be extended with a name filed and we should probably use getName() to populate it, even though this might still return an empty string on certain devices.

Let me know what you think, I did some experiments with updating MidiPort but since 3-4 repositories need to be updated, it would be great to agree on an implementation before I open PRs.

Many thanks.

@intonarumori intonarumori changed the title MIDI port names Listing port names, sending MIDI messages to specific ports May 23, 2024
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