I'm working on a project that will listen to an incoming signal (radio, most likely NPR) and sample bits that fall below a certain amplitude (basically the silence, breaths, pauses, etc) and record them sequentially into a table of a set length. I found this time lapse patch that i thought would be a good jumping off point...

http://puredata.hurleur.com/sujet-4372-timelapse-audio-hopw-record-splits-seconds

i'm trying to figure out a way to replace the set time (15sec) with a dynamic counter system that will count the samples/ms of audio that fall into the desired amplitude range and use that value to tell the table where to place each snippet(right after the end of the last snippet). i was trying to use a [realtime] counter with not much success. kinda banging my head against the wall at the moment feeling like the solution is just out of reach.

http://www.pdpatchrepo.info/hurleur/timelapse_rec.pd