You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
799 B
Plaintext
40 lines
799 B
Plaintext
s.reboot
|
|
////////////////////////////
|
|
// test for efficiency
|
|
|
|
(
|
|
b = Buffer.read(s,"../../release-packaging/AudioFiles/Tremblay-AaS-SynthTwoVoices-M.wav".resolveRelative);
|
|
c = Buffer.new(s);
|
|
d = Buffer.new(s);
|
|
)
|
|
|
|
(
|
|
// without basic params
|
|
Routine{
|
|
t = Main.elapsedTime;
|
|
FluidBufTransients.process(s,b.bufnum, transBufNum:c.bufnum, resBufNum:d.bufnum);
|
|
s.sync;
|
|
(Main.elapsedTime - t).postln;
|
|
}.play
|
|
);
|
|
|
|
c.query;
|
|
c.play;
|
|
d.query;
|
|
d.play;
|
|
|
|
//nullsumming tests
|
|
{(PlayBuf.ar(1,c.bufnum))+(PlayBuf.ar(1,d.bufnum))+(-1*PlayBuf.ar(1,b.bufnum,doneAction:2))}.play
|
|
|
|
|
|
// with everything changed to make it much faster
|
|
(
|
|
Routine{
|
|
t = Main.elapsedTime;
|
|
FluidBufTransients.process(s,b.bufnum, 0, 88200, 0, 0, c.bufnum, d.bufnum, 100, 512,256,1,2,1,12,20);
|
|
s.sync;
|
|
(Main.elapsedTime - t).postln;
|
|
}.play
|
|
);
|
|
|