( // http://doc.sccode.org/Classes/ServerOptions.html
s.options.numBuffers = 1024 * 16; // increase this if you need to load more samples s.options.memSize = 8192 * 16; // increase this if you get "alloc failed" messages s.options.maxNodes = 1024 * 32; // increase this if you are getting drop outs and the message "too many nodes"
// Default // s.options.numOutputBusChannels = 2; // set this to your hardware output channel size, if necessary // s.options.numInputBusChannels = 2; // set this to your hardware output channel size, if necessary
s.options.numOutputBusChannels = 16; s.options.numInputBusChannels = 16; s.options.device = "SuperCollider";
// boot the server and start SuperDirt s.waitForBoot { ~dirt = SuperDirt(2, s); // two output channels, increase if you want to pan across more channels ~dirt.loadSoundFiles; // load samples (path can be passed in) s.sync; // wait for samples to be read
// Default
// ~dirt.start(57120, [0, 0]); // start listening on port 57120
~dirt.start(57120, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); // start listening on port 57120
}; //s.latency = 0.3; // increase this if you get "late" messages );