57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
// Execute this before booting the server
|
|
|
|
(
|
|
Server.default.options.inDevice_("Scarlett 2i2 USB");
|
|
Server.default.options.hardwareBufferSize_(1024);
|
|
Server.default.options.outDevice_("Scarlett 2i2 USB");
|
|
//Server.default.options.outDevice_("External Headphones");
|
|
)
|
|
Server.killAll;
|
|
|
|
(
|
|
MIDIClient.init;
|
|
~midiOut = MIDIOut.newByName("Cre8audioNiftyCASE", "Cre8audioNiftyCASE").latency_(Server.default.latency);
|
|
)
|
|
(
|
|
|
|
Routine.run({
|
|
|
|
~usbinput = 2;
|
|
~usbinput1 = 2;
|
|
~usbinput2 = 3;
|
|
|
|
~bpm = 120;
|
|
~bps = ~bpm / 60;
|
|
~beatsperbar = 4;
|
|
~buflen = ~beatsperbar / ~bps;
|
|
|
|
[ "bpm", ~bpm ].postln;
|
|
[ "buffer length", ~buflen ].postln;
|
|
|
|
~tc = TempoClock.new(~bps);
|
|
|
|
~touchosc_ip = "192.168.20.10";
|
|
|
|
("./synths.scd").loadRelative;
|
|
Granulator.init(s);
|
|
s.sync;
|
|
("./control.scd").loadRelative;
|
|
s.sync;
|
|
("./granulator.scd").loadRelative;
|
|
s.sync;
|
|
("./effects.scd").loadRelative;
|
|
s.sync;
|
|
("./sequencer.scd").loadRelative;
|
|
s.sync;
|
|
("./midi_sync.scd").loadRelative;
|
|
s.sync;
|
|
"please wait for the interface to load...".postln;
|
|
~buflen.sleep;
|
|
("./interface.scd").loadRelative;
|
|
"ok go!".postln;
|
|
~setrecord.value(0, 1)
|
|
});
|
|
)
|
|
|
|
~tc
|