Created
August 27, 2020 02:05
-
-
Save tado/fee11e233f2d1a83088f368dd3ff4203 to your computer and use it in GitHub Desktop.
SuperCollider startup file for Super-Dirt with extra samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// 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