Skip to content

Instantly share code, notes, and snippets.

@tado
Created November 27, 2021 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tado/34810690c8853b58f15b5229245057b8 to your computer and use it in GitHub Desktop.
Save tado/34810690c8853b58f15b5229245057b8 to your computer and use it in GitHub Desktop.
a = NetAddr.new("localhost", 3333);
OSCdef(\tidalplay, {
arg msg;
a.sendMsg(*msg);
}, '/dirt/play', n);
//SuperDirt setup
s = Server.local;
s.reboot {
s.options.sampleRate = 48000;
s.options.numBuffers = 1024 * 16;
s.options.memSize = 8192 * 16;
s.volume = -6.0;
s.waitForBoot {
~dirt = SuperDirt(2, s);
~dirt.loadSoundFiles;
~dirt.loadSoundFiles("C:/Users/tado/AppData/Local/SuperCollider/downloaded-quarks/samples-extra/*");
s.sync; // wait for samples
~dirt.start;
/*
//MIDI setup
MIDIClient.init;
~midiOut = MIDIOut.newByName("Elektron Model:Cycles", "Elektron Model:Cycles");
~midiOut = MIDIOut.newByName("loopMIDI Port", "loopMIDI Port");
~midiOut.latency = 0.0;
~dirt.soundLibrary.addMIDI(\midi, ~midiOut);
*/
};
s.latency = 1.0;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment