Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tado
Created August 27, 2020 02:05
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/fee11e233f2d1a83088f368dd3ff4203 to your computer and use it in GitHub Desktop.
Save tado/fee11e233f2d1a83088f368dd3ff4203 to your computer and use it in GitHub Desktop.
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