Initializing a MIDI connection

To establish the connection to a MIDI device, I am putting this in my SC startup file

( s.reboot {  ...
  s.waitForBoot { ...
                ~midiOut = MIDIOut.newByName("electribe2", "electribe2 electribe2 _ SOUND");
                ~dirt.soundLibrary.addMIDI(\midi, ~midiOut);
                ~midiOut.latency = 0.45;

because that's what I infer from MIDI | Tidal Cycles

It works, but these observations don't seem to match up:

  • SC will complain if the device name is wrong, or the device is not present
  • with correct name, SC will still not set up the connection - I have to do this in the ALSA tab of qjackctl. I am using pipewire-jack-audio-connection-kit (Fedora 35).

I would much prefer to not touch startup.scd at all, and

  • just use qjackctl or jack_connect, or
  • establish MIDI connection via a Tidal command (only).

Is this possible?

1 Like