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.
Page Index Toggle Pages: 1
Ess Filter problem (Read 296 times)
Ess Filter problem
Mar 29th, 2008, 5:45am
 
em... I am writing a program that dynamically change the tempo/rate of several audio channels with Ess.

here is my code:
   for (int i = 0; i < totalAvailable; i++)
   {
     if(channel[i].state == Ess.STOPPED)
     {
               rateshift[i].percent = Ess.calcShift(gTotal[i]);        
               rateshift[i].filter(channel[i]);    
               channel[i].play();        
     }
   }  
where gTotal[i] is a integer array after video tracking

the problem is, the audio playback rate can be increased, but it cannot be decreased. and the rate keeps increasing if rateshift.percent is larger than 1. How to resolve the problem to make it what i want? thanks a lot
Page Index Toggle Pages: 1