I have multiple output~ in a patch that have 2 number boxes feeding to it, and when the numbers are moving the output~ turns on but when the numbers are not moving it continues to play the last sound played. How do i turn off the sound when the numbers are not moving without having to mute it myself?? Thank you.
-Natalie
Natalie,
You might want to check out the [switch~] object. It allows for a patch to turn off the audio generation for objects in the same subpatch.
Mike
On Sun, Mar 8, 2009 at 2:13 PM, narbino@ucsd.edu wrote:
I have multiple output~ in a patch that have 2 number boxes feeding to it, and when the numbers are moving the output~ turns on but when the numbers are not moving it continues to play the last sound played. How do i turn off the sound when the numbers are not moving without having to mute it myself?? Thank you.
-Natalie
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hallo, narbino@ucsd.edu hat gesagt: // narbino@ucsd.edu wrote:
I have multiple output~ in a patch that have 2 number boxes feeding to it, and when the numbers are moving the output~ turns on but when the numbers are not moving it continues to play the last sound played. How do i turn off the sound when the numbers are not moving without having to mute it myself?? Thank you.
The [delay] object is nice to monitor something for activity. The basic idiom goes like this:
[0 \
|
[t b a]
| |
| [s NUMBER_UPDATED]
|
[delay 100]
|
[s NUMBER_STOPPED]
On [r NUMBER_UPDATED] you will get updates when the number box is moving, and if the number box hasn't changed for 100 msec, you will get a bang to [r NUMBER_STOPPED] that you can use to stop whatever needs stopping. As long as the number box is changing, you don't get this bang, because [delay] is a "simple" delay that gets reset every time a new message comes in. Btw.: [pipe] is not "simple" in this sense - it's what Miller calls a "compound" delay in his book: http://crca.ucsd.edu/~msp/techniques/latest/book-html/node48.html http://crca.ucsd.edu/~msp/techniques/latest/book-html/node49.html
Frank