InvisibleWrench/FlutterMidiCommand

Branch "master" has no "openPortsOnDevice()" (not receiving events)

Closed this issue · 2 comments

Hi, thanks for library!

I can connect to the midi device but I don't get any midi events. Printing some logs, it looks like the device is connected, but no ports are connected:
"{name: Midilink, id: 12, type: native, connected: true, inputPorts: (1) [{id: 0, type: MidiPortType.IN, connected: false}], outputPorts: (1) [{id: 0, type: MidiPortType.OUT, connected: false}]}"

I tried to use the lib on the "ports" branch because there is the "openPortsOnDevice()" method, but there is no null safety support, so I couldn't even run the example

Could this be the reason I'm not receiving midi events in the branch "master" example?

I also noticed that in other libs, before using a midi device, a message pops up asking for permission. Like this:
request permission

Hi @Gilianp

I am not quite sure why you can't open ports, but there have been other similar reports lately, so I will look into it.
It should not be necessary to use the Ports branch, as the point of that was to only open specific/selected ports, not the default ones.

Hi @mortenboye, now I can receive midi messages. I not know whats happened for start to work, but is working :)