I'm interested in having a PD function which, when activated, records audio for a set amount of time (probably about 5 seconds), performs an analysis on that recorded audio, and then outputs the result. I'm specifically doing frequency analysis but can't imagine that would matter.
Any suggestions on how to allow something to run for a specific amount of time would be appreciated. I've searched the list archives, and will continue to do so, but most of the time-based stuff I'm seeing is how to keep track of time rather than do something for a set length of time.
Thanks for your help! -Jared
On Mon, 16 Apr 2007 14:32:40 -0500 Jared linux@fridaythang.com wrote:
..most of the time-based stuff I'm seeing is how to keep track of time rather than do something for a set length of time.
Thanks for your help! -Jared
These are equivillent, two ways of looking at the same thing. If you can track time you can conditionally do something for a measured amount of time.
The easiest way is probably to use a delay [del] to schedule a future "stop" event. For example [del 60000] will output a bang one minute after you put a bang into it.
ohh cool, this answer is so simple, that i can actually help ;-)
just kidding
See the attached patch, i chope that helps
bye Luigi
On Mon, 16 Apr 2007 14:32:40 -0500 Jared linux@fridaythang.com wrote:
..most of the time-based stuff I'm seeing is how to keep track of time rather than do something for a set length of time.
Thanks for your help! -Jared
These are equivillent, two ways of looking at the same thing. If
you can track time you can conditionally do something for a measured amount of time.The easiest way is probably to use a delay [del] to schedule a
future "stop" event. For example [del 60000] will output a bang one minute after
you put a bang into it.-- Use the source
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list