I've just discovered Processing and I really like it. I've been playing around with the minim library and I would like now to write an application.
I'd like to write an "auto-loop" application. It would start recording after pressing on a specific key and stop recording after detecting 1 second of "silence".
I get the recording part working by using the AudioInput sample code from the minim API. However, I am not sure how to analyze the audio buffers and stop the recording if 1 sec of silence is detected.