-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problems with port names ending with a number. #30
Comments
The name is resolved using But I suspect you are storing the name of the device you want to connect to, and then using MidiDeviceManager.Default.InputDevices.SingleOrDefault(dev => dev.Name == "Name"); If the port number is exposed, this may help disambiguating two devices with the same name (albeit it, having it not being truncated would be preferred). I'm just unsure whether the port number is persistent across restarts, I suspect it's just tied to whichever order the devices are enumerated. I.e. connecting / disconnecting devices may change device numbering I suspect. My best suggestion would be to have a look over in |
No, you don't. In RtMidiDeviceInfo, you set the name to:
If I change that like this, it works on both Windows and macOS.
|
My bad, you are correct. 👍 I see you have also identified the changes needed, a PR would be much appreciated - I'll have a look shortly at reviving the build pipeline as the current isn't active anymore and then I can merge your PR and get a new build out. Great find. 🚀 |
If a port name ends with a number that coincides with the port number, the number is stripped from the name.
Example:
If I have two ports named (their real names) "Port 1" and "Port 2", they will both be reported as "Port" in the port list and hence cannot be used.
Edit: The problem seems to be a macOS problem only. I can't see that port names have any numbers appended on macOS, causing the real port name to be truncated if it ends with the same number as the internal port number.
The text was updated successfully, but these errors were encountered: