Processing - limiting the time of an animation

Hi, I'm animating sound as a moving visual using the script from:

Having a little trouble with limiting the animation, I'd like to set it to stop at 15 seconds and remain at the last scene rather than when i set to noloop it returns to the white screen.

Does anyone have any ideas? Or know where i can find out how to do it? Had a look on the processing website but perhaps not searching for the right thing, not sure.


Post YOUR code, rather than a link to the site where you got the code you started from. We can't tell what changes you've made, and shouldn't have to go hunting to help you, unless your problem is of the "I can't find..." variety.