multigrain/main.scd

47 lines
924 B
Plaintext
Raw Permalink Normal View History

2022-04-02 06:51:06 +00:00
// Execute this before booting the server
(
2022-04-02 06:51:06 +00:00
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;
2022-04-02 06:51:06 +00:00
(
Routine.run({
~usbinput = 2;
~usbinput1 = 2;
~usbinput2 = 3;
2023-10-25 23:44:21 +00:00
~bpm = 90;
2023-10-06 20:58:14 +00:00
~bps = ~bpm / 60;
~beatsperbar = 4;
2023-10-06 20:58:14 +00:00
~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;
2023-04-24 06:49:36 +00:00
s.sync;
("./granulator.scd").loadRelative;
2023-10-25 03:34:23 +00:00
s.sync;
2023-04-24 06:49:36 +00:00
("./effects.scd").loadRelative;
s.sync;
("./sequencer.scd").loadRelative;
s.sync;
2023-10-25 23:44:21 +00:00
"please wait for the interface to load...".postln;
2023-10-25 03:34:23 +00:00
~buflen.sleep;
("./interface.scd").loadRelative;
2023-10-25 23:44:21 +00:00
"ok go!".postln;
});
)