Added routine to dump all four buffers
parent
f880ac5831
commit
932c04717a
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
(
|
(
|
||||||
~modes = [
|
~modes = [
|
||||||
[ "saw", \pos_saw ],
|
[ "saw", \pos_saw ],
|
||||||
|
@ -8,6 +9,9 @@
|
||||||
[ "random", \pos_random ]
|
[ "random", \pos_random ]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
~outputDir = Platform.recordingsDir +/+ "GrainBuffers";
|
||||||
|
|
||||||
|
|
||||||
~grainsb = Bus.audio(s, 2);
|
~grainsb = Bus.audio(s, 2);
|
||||||
|
|
||||||
~granulators = Array.new(4);
|
~granulators = Array.new(4);
|
||||||
|
@ -31,7 +35,6 @@
|
||||||
~granulators.add(Granulator.new(~buflen, ~infxb, ~grainsb, pb, rtb));
|
~granulators.add(Granulator.new(~buflen, ~infxb, ~grainsb, pb, rtb));
|
||||||
});
|
});
|
||||||
|
|
||||||
"Granulators running".postln;
|
|
||||||
|
|
||||||
// launch the pos synths and triggers to sync the buffer recorders
|
// launch the pos synths and triggers to sync the buffer recorders
|
||||||
|
|
||||||
|
@ -55,6 +58,10 @@
|
||||||
~granulators[track].mode_(mode);
|
~granulators[track].mode_(mode);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
~dumpbuffers = { |prefix|
|
||||||
|
(0..3).do({|i|
|
||||||
|
var filename = ~outputDir +/+ prefix ++ 'buffer' ++ i.asString ++ '.aiff';
|
||||||
|
~granulators[i].buffer.write(filename);
|
||||||
|
});
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue