multigrain/main.scd

55 lines
960 B
Plaintext
Raw 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;
~bpm = 85;
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;
(
Routine.run({
2023-04-24 06:49:36 +00:00
("./effects.scd").loadRelative;
s.sync;
("./sequencer.scd").loadRelative;
s.sync;
("./interface.scd").loadRelative;
});
)
2023-04-07 06:16:05 +00:00
~posb[0].scope
~granulators[0].grainamp_(0);
~granulators[0].loopsynth
~dumpbuffers.value("looptober23")