47 lines
924 B
Plaintext
47 lines
924 B
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;
|
|
|
|
(
|
|
Routine.run({
|
|
|
|
~usbinput = 2;
|
|
~usbinput1 = 2;
|
|
~usbinput2 = 3;
|
|
|
|
~bpm = 90;
|
|
~bps = ~bpm / 60;
|
|
~beatsperbar = 4;
|
|
~buflen = ~beatsperbar / ~bps;
|
|
|
|
[ "bpm", ~bpm ].postln;
|
|
[ "buffer length", ~buflen ].postln;
|
|
|
|
~tc = TempoClock.new(~bps);
|
|
|
|
~touchosc_ip = "192.168.0.209";
|
|
|
|
("./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;
|
|
"please wait for the interface to load...".postln;
|
|
~buflen.sleep;
|
|
("./interface.scd").loadRelative;
|
|
"ok go!".postln;
|
|
});
|
|
)
|