multigrain/main.scd

48 lines
908 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 = 80;
~bps = ~bpm / 60;
~beatsperbar = 8;
~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;
("./interface.scd").loadRelative;
});
)
~granulators[0].grainamp_(0.75);
g
~dumpbuffers.value("looptober14")