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
Sound and latency? (Read 2521 times)
Sound and latency?
Jun 3rd, 2005, 12:03am
 
Ok, i tried Ess and Sonja and i got about 400ms latency on the Sounds. Is there anything i can do about that?
Re: Sound and latency?
Reply #1 - Jun 3rd, 2005, 2:16pm
 
Regarding Sonia:

Which machine/os are you using?

On my P4 winXP box, upon opening Sonia, the processing prompt shows '413 ms' latency but its actually about 40ms (i just measured).

For installations (not for web distribution): If you register for jsyn on the softsynth site, you could also dl drivers for ASIO that will cut this latency dramatically. But you'll need an ASIO-type sound card for that.

amit
Re: Sound and latency?
Reply #2 - Jun 3rd, 2005, 7:27pm
 
I am also at winXP with 1.4Ghz Centrino. The Plug says a latency of about 417ms, and it sure is that late...
Re: Sound and latency?
Reply #3 - Jun 3rd, 2005, 8:30pm
 
wow, even my old w2k 933Mhz computer is not half a second behind. I wonder what's the bottleneck on your machine. Maybe the centrino or the sound sound card. Can anybody else confirm such latency on thier centrino notebooks?

amit
Re: Sound and latency?
Reply #4 - Mar 13th, 2006, 7:00am
 
Well ... I have a 2.8 MHz machine with all the trimmings and I am getting 400+ milliseconds of delay. As mentioned before about the ASIO - that would probably work as I have seen it in audio applications and the latency is drastically cut.

Where is there info on how to set up ASIO and processing?

Thanks,

4dplane
Re: Sound and latency?
Reply #5 - Mar 13th, 2006, 1:30pm
 
Interesting.  My Centrino laptop (1.6GHz I think) reports 417ms latency too.  It certainly seems that far behind on live input, any sound reactive visuals I make seem more like visual echos Smiley

Amit - is there some code we can use to measure the actual latency?
Re: Sound and latency?
Reply #6 - Jun 13th, 2006, 11:40pm
 
I also want to see how to use ASIO drivers like ASIO4All (http://www.asio4all.com) so I can use Processing constructs in realtime. Any latency greater than is now common in commercially available sound software is unnacceptable to me. Newbie Brad
Re: Sound and latency?
Reply #7 - Jul 24th, 2006, 6:43pm
 
I had exactly the same problem initially but could solve it by manually setting the JSyn environment variable controlling latency to a smaller value. Read more at http://www.softsynth.com/jsyn/docs/host_pc.html
Re: Sound and latency?
Reply #8 - Jul 28th, 2006, 3:00pm
 
on a pc, i created a new batch file called runSonia.bat in the main processing directory, with the following two commands in it:


SET PA_MIN_LATENCY_MSEC=50
processing.exe


this will set the jsyn latency to 50ms and then run processing. if you get click-pop sounds, than increase the latency until its resolved.

Amit



Re: Sound and latency?
Reply #9 - Jan 2nd, 2007, 10:53am
 
pitaru wrote on Jul 28th, 2006, 3:00pm:
on a pc, i created a new batch file called runSonia.bat in the main processing directory, with the following two commands in it:


SET PA_MIN_LATENCY_MSEC=50
processing.exe


this will set the jsyn latency to 50ms and then run processing. if you get click-pop sounds, than increase the latency until its resolved.

Amit


I am running the ripple base example from (http://www.flight404.com/version8/index.html).  

After running the batch file I noticed the latency changed from originally 417 down to whatever I put in the batch file, but I can't get it to go lower than 30ms.  Does anyone know a way I can go lower My soundcard is an audigy 4.  

Even at 30ms the lag still seems like 1/2 a second.

Re: Sound and latency?
Reply #10 - Dec 6th, 2007, 6:52am
 
I explored this issue a little more in depth and found another solution for all the platforms look here:

http://claudiodt.blogspot.com/2007/12/processing-how-to-lower-audio-latency.html

Wink
Page Index Toggle Pages: 1