Jared wrote:
I'm using PD to do sound filtering and analysis would like to have the live audio passed along only at certain points. That is, the output from adc~ will sometimes continue on to other patches and sometimes I want it to stop. I was hoping to use toggle, but misunderstood how it works as it seems to become toggled for *any* input, not just bangs. I was hoping it would stay untoggled, and not allow the input to be sent through the output.
the good news is: toggle does what it should (toggle). it is not cumbered by other functionality (like filtering out non-bangs)
(the bad news is that [tgl] understands far too many messages besides [bang(, but do not let us bother with that)
so in order to achieve what you want, you just have to make sure, that the messages you don't want to interfere with toggle don't get to the object.
there are several message filters that come with pd, the most simple would be:
| [route bang] | [tg] |
so all non-bang messages get discarded by the [route] object, and the tgl can happily react to whatever message comes in.
mfg.asd IOhannes