Last active
February 16, 2021 02:07
-
-
Save dqgorelick/bb1f041e63bf0eb80d3ad4fe5562a539 to your computer and use it in GitHub Desktop.
Live coding SuperCollider server file
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
SuperDirt.start // start server | |
( | |
s.options.numBuffers = 1024 * 256; | |
s.options.memSize = 8192 * 16; | |
s.options.maxNodes = 1024 * 32; | |
s.options.numOutputBusChannels = 2; // total number of channels output | |
s.options.numInputBusChannels = 2; | |
s.waitForBoot { | |
// ~dirt = SuperDirt(2, s); // pan across four channels | |
~dirt.loadSoundFiles; | |
~dirt.start(57120, [0, 0, 0, 0, 0, 0]); | |
}; | |
s.latency = 0.3; | |
) | |
Server.killAll // kill server | |
Quarks.gui | |
Platform.userExtensionDir | |
Platform.systemExtensionDir | |
~dirt.loadSoundFiles("/Users/dang/Documents/supercollider/samples/*") | |
"/Users/dang/Documents/algorave_07_23_20_github_rehearsal.tidal" | |
// view samples and synths: | |
Quarks.gui | |
// list all devices: | |
ServerOptions.devices; //all devices | |
ServerOptions.inDevices; //input devices | |
ServerOptions.outDevices; //output devices | |
ServerOptions.outDevices[2] | |
Server.default.options.outDevice_(ServerOptions.outDevices[2]) | |
Server.local.options.outDevice_(ServerOptions.outDevices[2]) | |
ServerOptions.inDevices; //input devices | |
Server.default.options.outDevice_(ServerOptions.outDevices[2]) | |
Server.local.options.outDevice_(ServerOptions.outDevices[2]) | |
// Setup MIDI (note – you have to set up a MIDI bus in settings | |
MIDIClient.init; | |
( | |
~midiOut1 = MIDIOut.newByName("IAC Driver", "Tidal1"); | |
~midiOut2 = MIDIOut.newByName("IAC Driver", "Tidal2"); | |
~dirt.soundLibrary.addMIDI(\ob6, ~midiOut1); | |
~dirt.soundLibrary.addMIDI(\midi, ~midiOut2); | |
~midiOut1.latency = 0; | |
~midiOut2.latency = 0; | |
) | |
// sync midi | |
// sock <- carabiner tidal 2 (-0.14) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment