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 › Minim: performance issues
Page Index Toggle Pages: 1
Minim: performance issues (Read 1693 times)
Minim: performance issues
May 17th, 2010, 2:45am
 
I'm using minim to draw the spectrum as following:
for(int i = 0; i < fft.specSize(); i++)
 {
   line(i, height, i, height - fft.getBand(i)*4);
 }

When I run it on xp machine, I sometime get breaking sound. If I run in on windows 7, it keeps making the breaking sound. my other mp3 players work fine (e.g. windows media player, winamp). Is there any way to improve minim performance?

Had a look at cpu usage and realised it uses over 80% of my cpu most of time. when using other players like wmp or winamp, only 5%-9% is consumed. Any clues?
Re: Minim: performance issues
Reply #1 - May 18th, 2010, 8:16am
 
found problem cause now. it's caused by stroke(alpha). when i set alpha=128, it became extremely slow. Then I change it to 255, everything works fine now.
Re: Minim: performance issues
Reply #2 - May 18th, 2010, 10:03pm
 
good to know!
Page Index Toggle Pages: 1