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 › Duration of a sine wave (minim)
Page Index Toggle Pages: 1
Duration of a sine wave (minim) (Read 360 times)
Duration of a sine wave (minim)
Jul 22nd, 2008, 7:39pm
 
Hi;
I'm trying to make sine waves with minim, with a very exact duration.
I added the sine wave to the AudioOutput in the setup, and in the draw I used the enableSignal, and disableSignal.
The length of the sound should be 500 millis, but I got either 516 or 531 millis, the length of the silent part between two sounds should be 200 millis but I got either 219 or 203 millis.
How can I get a fixed time intervals of the sound and the silent gap between the sounds?
Many thanks;
Gad
Page Index Toggle Pages: 1