[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] PlayBuf Reverse Payback Help
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
--
Sergio Luque
www.sergioluque.com
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/