Has anybody had any luck using SuperCollider’s MIDIOut on a norns with an IConnectivity Mio interface?
I’m using MIDIOut to send midi events from a SC pattern in order to control a hardware synth. The exact same patch works coming from macOS (the synth makes noise), but when coming from inside a norns Engine, it doesn’t do anything (the synth is silent). Adding .trace to my pattern shows that the MIDI events are firing from SC as expected.
Note: I’m sending MIDI from SuperCollider rather than the lua scripting layer because I have some patterns that would be hard to express in lua.
Update Jan 23
Following up, it seems like something in the norns environment matron automatically connects to all midi devices and renders them “unavailable” for SuperCollider.
If I run norns/stop.sh, then run a pure SC file (no Crone) using sclang my-midi-script.scd, it works: It connects successfully to the Mio interface and successfully sends midi control to my synth. I can also see the midi messages coming to/from this interface using aseqdump. However, if I run the same SC from inside a Crone engine, the MIDI connection fails with “MIDI (ALSA): connect failed (Resource temporarily unavailable)”, and aseqdump will error with a similar message about it being unavailable.
I tried running _norns.midi.remove() from maiden on that midi device’s index, and that doesn’t seem to change anything.
Is there any way I can convince norns to leave this device available for SuperCollider?