SuperDrit MIDI from SuperCollider patterns


What's the syntax for using SuperDirt's MIDI from SuperCollider's patterns? I added

~midiout = MIDIOut(0); // I'm on linux
~midiOut.latency = 0.0;
~dirt.soundLibrary.addMIDI(\midi, ~midiout);

following these instructions, but when I run Pbind(\type, \dirt, \s, \midi) I get this warning:

no synth or sample named 'midi' could be found.
module 'sound': instrument not found: midi

That looks like it should work to me. I guess triggering samples is working? Have you tried triggering the midi from tidal?

I don't have tidal installed. But I just found out where the problem was. There's a typo in my .latency line. I had this snippet in my boot process and hitting this typo made SC skip the last line. It works now.


1 Like