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-02 06:10:23 +00:00
|
|
|
//Server.default.options.outDevice_("Scarlett 2i2 USB");
|
2023-03-29 07:21:32 +00:00
|
|
|
)
|
|
|
|
Server.killAll;
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-02 07:59:53 +00:00
|
|
|
|
2023-04-09 02:12:36 +00:00
|
|
|
("./synths.scd").loadRelative;
|
|
|
|
("./control.scd").loadRelative;
|
|
|
|
("./effects.scd").loadRelative;
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-09 02:32:11 +00:00
|
|
|
Granulator.init(s);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
// set up four position buffers with synths
|
|
|
|
|
2022-04-03 01:19:42 +00:00
|
|
|
~modes = [
|
2023-04-09 01:46:05 +00:00
|
|
|
[ "saw", \pos_saw ],
|
|
|
|
[ "reverse", \pos_reverse ],
|
|
|
|
[ "sine", \pos_sine ],
|
|
|
|
[ "step", \pos_step ],
|
|
|
|
[ "random", \pos_rand ]
|
2022-04-03 01:19:42 +00:00
|
|
|
];
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-09 02:32:11 +00:00
|
|
|
~granulators = Array.new(4);
|
|
|
|
~posb = Array.new(4);
|
|
|
|
~possynth = Array.new(4);
|
|
|
|
|
|
|
|
(0..3).do({
|
|
|
|
var pb = Bus.control(s, 1), ps;
|
|
|
|
~posb.add(pb);
|
|
|
|
ps = Synth(\pos_saw, [ \out, pb ]);
|
|
|
|
~possynth.add(ps);
|
|
|
|
});
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
(0..3).do({ |i|
|
|
|
|
var pb = ~posb.at(i);
|
|
|
|
~granulators.add(Granulator.new(~buflen, ~recordb, ~outb, pb, ~triggerb, ~pitchb));
|
|
|
|
});
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
~granulators[1].record(1.0);
|
|
|
|
~possynth[0].set(\speed,200);
|
|
|
|
|
|
|
|
("./interface.scd").loadRelative;
|
2023-04-09 01:46:05 +00:00
|
|
|
|
2022-04-23 04:28:37 +00:00
|
|
|
|
|
|
|
|
2023-04-07 06:16:05 +00:00
|
|
|
~g3 = Granulator.new(4, ~recordb, ~granulatorb, ~playbacklfob, ~triggerb, ~pitchb);
|
|
|
|
|
|
|
|
~g.recorder.set(\record, 1.0);
|
|
|
|
~makebuffers.value();
|
|
|
|
|
|
|
|
(
|
2023-04-02 06:31:52 +00:00
|
|
|
~bufrecorders = Array.new(~ntracks);
|
|
|
|
|
|
|
|
~frippbuffers.do({
|
|
|
|
| buffer, index |
|
|
|
|
~bufrecorders.add(Synth.new(
|
|
|
|
\fripp_record,
|
|
|
|
[
|
|
|
|
\in, ~recordb,
|
|
|
|
\record, 0.0,
|
|
|
|
\buffer, buffer
|
|
|
|
],
|
|
|
|
s,
|
|
|
|
\addToTail
|
|
|
|
))
|
|
|
|
});
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-02 06:31:52 +00:00
|
|
|
~bufrecorder = ~bufrecorders[0];
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-02 07:59:53 +00:00
|
|
|
// the granulators
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-02 07:59:53 +00:00
|
|
|
~granulators = Array.new(~ntracks);
|
|
|
|
~grainmodes = Array.fill(~ntracks, 0);
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2023-04-02 07:59:53 +00:00
|
|
|
~frippbuffers.do({
|
|
|
|
| buffer, index |
|
|
|
|
[ "Grain synth: ", buffer, index ].postln;
|
|
|
|
~granulators.add(Synth.new(
|
|
|
|
\grainsynth,
|
|
|
|
[
|
|
|
|
\out, ~granulatorb,
|
|
|
|
\buffer, buffer,
|
|
|
|
\blen, ~buflen,
|
|
|
|
\posb, ~playbacklfob,
|
|
|
|
\triggerb, ~triggerb,
|
|
|
|
\pitchb, ~pitchb,
|
|
|
|
\modb, ~lfob,
|
|
|
|
\size, 0.1
|
|
|
|
],
|
|
|
|
s
|
|
|
|
))
|
|
|
|
});
|
|
|
|
|
|
|
|
~granulator = ~granulators[0];
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2022-04-09 07:38:18 +00:00
|
|
|
)
|
2022-04-02 06:51:06 +00:00
|
|
|
|
2022-04-18 22:29:26 +00:00
|
|
|
|
2022-04-09 07:38:18 +00:00
|
|
|
|
2022-04-23 04:28:37 +00:00
|
|
|
|
2022-04-24 06:35:34 +00:00
|
|
|
|
2022-04-23 04:28:37 +00:00
|
|
|
|