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.
What I would like is to be able to have a toggle (or other patch) that, when on, allows the input stream to continue through and, when off, does not pass anything through its output.
I feel like this should be a simple task, but I've been struggling and I'm still not sure how to do it.
Any suggestions would be appreciated.
Thanks! -Jared
by 'input stream', you mean an audio signal?
[adc~] [tgl] | / [*~ ] |
is that, what you are looking for?
roman
On Mon, 2007-04-30 at 13:48 -0500, 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.
What I would like is to be able to have a toggle (or other patch) that, when on, allows the input stream to continue through and, when off, does not pass anything through its output.
I feel like this should be a simple task, but I've been struggling and I'm still not sure how to do it.
Any suggestions would be appreciated.
Thanks! -Jared
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Thanks for the replies. I think that I wasn't clear enough, however.
I'm trying to have sound information displayed as follows (specifically the filtered amplitude, but lets pretend it's just the amplitude)
[adc~] | [env~] | [(number)]
What i'd like to do is something along the lines of
[adc~] | [env~] | [toggle] | [(number)]
So that the env~ information is only passed along when the toggle is checked, and if the user unchecks it the env~ info is *not* passed.
I'm beginning to think toggle is the wrong tool for this job, and would appreciate any other suggestions. Likewise, I'd be happy to go into more detail if this is still not clear.
Thanks again for all your help, -Jared
Hallo, Jared hat gesagt: // Jared wrote:
What i'd like to do is something along the lines of
[adc~] | [env~] | [toggle] | [(number)]
So that the env~ information is only passed along when the toggle is checked, and if the user unchecks it the env~ info is *not* passed.
For this use [spigot]. See the help-file.
Frank Barknecht _ ______footils.org_ __goto10.org__
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
Hi Jared,
On Mon, Apr 30, 2007 at 01:48:33PM -0500, Jared wrote:
What I would like is to be able to have a toggle (or other patch) that, when on, allows the input stream to continue through and, when off, does not pass anything through its output.
Toggle itself doesn't do filtering - the inlet is so you can turn it on and off or set the value. What you want to do is to use the toggle to interrupt the flow. Roman posted the solution for doing this with an audio stream. If you're filtering a message or control stream instead replace the [*~] with a [spigot]. The right inlet of spigot determines what goes through from the left inlet to the left outlet.
Best,
Chris.