Skip to content

Instantly share code, notes, and snippets.

@tado
Created Aug 27, 2020
Embed
What would you like to do?
SuperCollider startup file for Super-Dirt with extra samples
/*
// foward OSC from TidalCycles
var addr = NetAddr.new("127.0.0.1", 3333);
OSCFunc({ |msg, time, tidalAddr|
var latency = time - Main.elapsedTime;
msg = msg ++ ["time", time, "latency", latency];
// msg.postln;
addr.sendBundle(latency, msg)
}, '/play2').fix;
*/
s = Server.local;
s.reboot {
s.options.numBuffers = 1024 * 16;
s.options.memSize = 8192 * 16;
//s.options.sampleRate = 48000;
s.volume = -6.0;
s.latency = 0.6;
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment