Created
November 27, 2021 11:21
-
-
Save tado/34810690c8853b58f15b5229245057b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
a = NetAddr.new("localhost", 3333); | |
OSCdef(\tidalplay, { | |
arg msg; | |
a.sendMsg(*msg); | |
}, '/dirt/play', n); | |
//SuperDirt setup | |
s = Server.local; | |
s.reboot { | |
s.options.sampleRate = 48000; | |
s.options.numBuffers = 1024 * 16; | |
s.options.memSize = 8192 * 16; | |
s.volume = -6.0; | |
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; | |
/* | |
//MIDI setup | |
MIDIClient.init; | |
~midiOut = MIDIOut.newByName("Elektron Model:Cycles", "Elektron Model:Cycles"); | |
~midiOut = MIDIOut.newByName("loopMIDI Port", "loopMIDI Port"); | |
~midiOut.latency = 0.0; | |
~dirt.soundLibrary.addMIDI(\midi, ~midiOut); | |
*/ | |
}; | |
s.latency = 1.0; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment