Added routine to dump all four buffers
parent
f880ac5831
commit
932c04717a
|
@ -1,4 +1,5 @@
|
|||
|
||||
|
||||
(
|
||||
~modes = [
|
||||
[ "saw", \pos_saw ],
|
||||
|
@ -8,6 +9,9 @@
|
|||
[ "random", \pos_random ]
|
||||
];
|
||||
|
||||
~outputDir = Platform.recordingsDir +/+ "GrainBuffers";
|
||||
|
||||
|
||||
~grainsb = Bus.audio(s, 2);
|
||||
|
||||
~granulators = Array.new(4);
|
||||
|
@ -31,7 +35,6 @@
|
|||
~granulators.add(Granulator.new(~buflen, ~infxb, ~grainsb, pb, rtb));
|
||||
});
|
||||
|
||||
"Granulators running".postln;
|
||||
|
||||
// launch the pos synths and triggers to sync the buffer recorders
|
||||
|
||||
|
@ -55,6 +58,10 @@
|
|||
~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