You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to restore ALSA MIDI connections reliable across sessions with tools such as jack_connect, aj-snapshot and jackpatch, one needs to have a fixed MIDI client name for a session. Now multiple instances of SC creates their own suffix for a ALSA midi port, but this can be changed or reversed when opening the same session the other day.
Also, when a2jmidid is used, it adds the ALSA client ID to the port name, which is not stable across sessions. One can use a2jmidid -u, but, for this to work "ALSA client name uniqueness must be guartanteed externally" https://manpages.org/a2jmidid
Description of Proposed Feature
Add a ALSA (so Linux) specific method to MIDIClient, which gives the user the option to give a name to the ALSA MIDI client. This could be the same name as the device, but that's up to the user.
Motivation
To be able to restore ALSA MIDI connections reliable across sessions with tools such as jack_connect, aj-snapshot and jackpatch, one needs to have a fixed MIDI client name for a session. Now multiple instances of SC creates their own suffix for a ALSA midi port, but this can be changed or reversed when opening the same session the other day.
Also, when a2jmidid is used, it adds the ALSA client ID to the port name, which is not stable across sessions. One can use a2jmidid -u, but, for this to work "ALSA client name uniqueness must be guartanteed externally"
https://manpages.org/a2jmidid
Description of Proposed Feature
Add a ALSA (so Linux) specific method to MIDIClient, which gives the user the option to give a name to the ALSA MIDI client. This could be the same name as the device, but that's up to the user.
Thinkable options are:
MIDIClient.InitWithName();
MIDIClient.name_("SuperCollider-drums").init;
This is probably the simplest fix.
This issue would also be solved if JACK MIDI would be added:
#6250
Code reference:
supercollider/SCClassLibrary/Common/Control/MIDIOut.sc
Line 12 in 28a0b12
supercollider/lang/LangPrimSource/SC_AlsaMIDI.cpp
Line 527 in 28a0b12
The text was updated successfully, but these errors were encountered: