Skip to content

Instantly share code, notes, and snippets.

@yaxu
Created June 29, 2018 10:37
Show Gist options
  • Save yaxu/a24e4a2967712b338d4335187a7c92b1 to your computer and use it in GitHub Desktop.
Save yaxu/a24e4a2967712b338d4335187a7c92b1 to your computer and use it in GitHub Desktop.
superdirt midi
You run this in supercollider, after starting superdirt:
```
MIDIClient.init;
MIDIClient.list; // to check, which are there, you can query them
// create a midi out connection
~midiOut = MIDIOut.newByName("FastLane USB", "Port A"); // substitute your own device here
// you may want to adjust the latency here
~midiOut.latency = 0.0;
~dirt.soundLibrary.addMIDI(\midi, ~midiOut);
```
substituting `("FastLane USB", "Port A")` with your device that you see listed in the post window
then you can do e.g.
```
d1 $ note "0 7 5" # s "midi"
d1 $ note "0 7 5" # s "midi" # midichan 3
d1 $ note "c a fs5" # s "midi" # midichan 31
d1 $ midinote "60 67 65" # s "midi"
d1 $ midicmd "[start/4,midiClock*48]" # s "midi"
```
you can probably glean more info from here https://github.com/musikinformatik/SuperDirt/issues/68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment