2022-04-02 06:51:06 +00:00
|
|
|
// Execute this before booting the server
|
|
|
|
|
2023-03-29 07:21:32 +00:00
|
|
|
(
|
2022-04-02 06:51:06 +00:00
|
|
|
Server.default.options.inDevice_("Scarlett 2i2 USB");
|
2023-04-24 05:54:24 +00:00
|
|
|
Server.default.options.hardwareBufferSize_(1024);
|
2023-09-17 00:11:31 +00:00
|
|
|
Server.default.options.outDevice_("Scarlett 2i2 USB");
|
|
|
|
//Server.default.options.outDevice_("External Headphones");
|
2023-03-29 07:21:32 +00:00
|
|
|
)
|
|
|
|
Server.killAll;
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-09 02:32:11 +00:00
|
|
|
(
|
2023-04-24 05:54:24 +00:00
|
|
|
Routine.run({
|
2023-04-09 02:32:11 +00:00
|
|
|
|
2023-10-01 03:58:20 +00:00
|
|
|
~usbinput = 2;
|
|
|
|
~usbinput1 = 2;
|
|
|
|
~usbinput2 = 3;
|
|
|
|
|
2023-10-06 20:58:14 +00:00
|
|
|
~bpm = 55;
|
|
|
|
~bps = ~bpm / 60;
|
2023-10-01 03:58:20 +00:00
|
|
|
~beatsperbar = 4;
|
2023-10-06 20:58:14 +00:00
|
|
|
~buflen = ~beatsperbar / ~bps;
|
|
|
|
|
|
|
|
[ "bpm", ~bpm ].postln;
|
|
|
|
[ "buffer length", ~buflen ].postln;
|
|
|
|
|
|
|
|
~tc = TempoClock.new(~bps);
|
|
|
|
|
2023-10-01 03:58:20 +00:00
|
|
|
|
|
|
|
~touchosc_ip = "192.168.0.209";
|
|
|
|
|
2023-04-24 05:54:24 +00:00
|
|
|
("./synths.scd").loadRelative;
|
|
|
|
Granulator.init(s);
|
|
|
|
s.sync;
|
|
|
|
("./control.scd").loadRelative;
|
2023-04-24 06:49:36 +00:00
|
|
|
s.sync;
|
2023-04-24 05:54:24 +00:00
|
|
|
("./granulator.scd").loadRelative;
|
|
|
|
s.sync;
|
2023-04-24 06:49:36 +00:00
|
|
|
("./effects.scd").loadRelative;
|
|
|
|
s.sync;
|
2023-10-01 03:58:20 +00:00
|
|
|
("./sequencer.scd").loadRelative;
|
|
|
|
s.sync;
|
2023-04-24 05:54:24 +00:00
|
|
|
("./interface.scd").loadRelative;
|
2023-04-09 02:32:11 +00:00
|
|
|
});
|
2023-04-09 05:10:04 +00:00
|
|
|
)
|
2023-04-07 06:16:05 +00:00
|
|
|
|
2023-04-24 06:49:36 +00:00
|
|
|
|
2023-10-06 20:58:14 +00:00
|
|
|
|