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 & HelpPrograms › visualization of music (synchronous)
Page Index Toggle Pages: 1
visualization of music (synchronous) (Read 359 times)
visualization of music (synchronous)
Jun 27th, 2008, 11:52pm
 
i'd like to visualize a song with processing. the "video" im going to make should be nearly perfect synchronous to the music. so i need functions to get some control over the time.

what sort of commands are there?

delay();
//did only work one time, i couldn't use the command multiple. only worked the first time

try {Thread.currentThread().sleep(100);}catch (InterruptedException e) {}
// stops the whole thing at start, then same with as delay();

example:

wO(x,y,w,h,a,c); // draw something
.... wait ONE second
wU(x,y,w,h,a,c); // draw something
.... wait ONE second
sL(x,y,w,h,a,c); // draw something
.... wait TWO seconds
.....




Re: visualization of music (synchronous)
Reply #1 - Jun 28th, 2008, 12:11am
 
frameRate()
http://processing.org/reference/frameRate_.html

or

millis()
http://processing.org/reference/millis_.html
Page Index Toggle Pages: 1