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 › sonia-no sound without void draw
Page Index Toggle Pages: 1
sonia-no sound without void draw (Read 1352 times)
sonia-no sound without void draw
Sep 1st, 2005, 2:29pm
 
hi, im a processing noob, im trying to use sonia.... some examples from the sonia reference doesnt work in my computer... but if i add "void draw" in the code they work!.  it seems sonia need "void draw" for working (at least on my computer) .. is this a bug? or is there any special reason for that?

many thanx
punchiku
Re: sonia-no sound without void draw
Reply #1 - Sep 1st, 2005, 3:01pm
 
draw() is required in every program that uses functions or runs over time (as opposed to just drawing a single frame and quitting).
Re: sonia-no sound without void draw
Reply #2 - Sep 1st, 2005, 3:34pm
 
be sure to specify the framerate when using an empty void draw, though.

if you don't the sketch will suck lots of cpu.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1116958596;start=4#4
Page Index Toggle Pages: 1