We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Moved sample playback speed
Page Index Toggle Pages: 1
Moved sample playback speed (Read 411 times)
Moved sample playback speed
Mar 11th, 2008, 10:30pm
 
Is there a way to change the sample playback speed of an AudioSample/Snippet? I can't find anything obvious, and changing the sample rate on the fly doesn't seem to be an option...

thanks,
douglas
Moved sample playback speed
Reply #1 - Mar 12th, 2008, 7:03pm
 
If you can get a sample rate control back from the object, you could use that. But I've found that most Java implementations don't provide this.
Moved sample playback speed
Reply #2 - Mar 12th, 2008, 8:09pm
 
I see, so you're not doing the actual playback explicitly (indexing through a buffer), you're passing buffers off to Java to play. I'll start poking through some Java docs...

thanks,
douglas
Page Index Toggle Pages: 1