Skip to content

Conversation

rrrnld
Copy link

@rrrnld rrrnld commented Feb 9, 2025

The current code to set up the midi device breaks for me with the following error:

ERROR: Failed to find MIDIOut port  Launchpad Mini Launchpad Mini

I'm on NixOS, my launchpad mini shows up in SC as MIDIEndPoint("Launchpad Mini", "Launchpad Mini MIDI 1", 1310720). There may be differences between different OSes? This patch tries to make the setup logic a bit more robust.

@madskjeldgaard
Copy link
Owner

This is great. Thanks for this fix. With this, will it work if there is more than one device connected (maybe of a different type?) It seems to go for the first device no matter what.

@rrrnld
Copy link
Author

rrrnld commented Feb 10, 2025

I'm not sure how it behaves with multiple devices, I didn't test that.

Before this change, the assumption is that all devices use the same (pre-defined) midi device name ("Launchpad Mini") and port ("Launchpad Mini" as well). The second assumption didn't hold.

This change effectively means that all devices only use the same pre-defined name ("Launchpad Mini"), and use the same port as the first device.

@rrrnld rrrnld force-pushed the repair/midi-device-detection branch from 8143e98 to 190cd44 Compare February 10, 2025 09:52
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

Successfully merging this pull request may close these issues.

2 participants