Hi Saman,
On May 10, 2009, at 6:51 PM, Saman Badakhshan wrote:
I want to use PlayBuff to play sounds in reverse. As far as I can
see from the help file, all you have to do is pass the rate argument
a negative value between 0 and -1 for reverse playback. But for some
reason my code is only playing back sound when I pass in posative
rate values.
In your example, you need to set the loop argument to 1 (meaning
true), as the reverse playback is starting at the beginning of the
audio file:
b = Buffer.read(s, "sounds/a11wlk01.wav");
Synth(\play, [ \out, 0, \bufnum, b.bufnum, \rate, -1.0, \loop, 1 ]);
Cheers,
Sergio