Hi, im tracking the amplitude of my signal with ~env and i need to send one trigger when my ~env gives 0 , the problem is that if i do:
~env | select 0
It send a lot of triggers when my ~env is in 0 and i need to send just one trigger.
any idea how can i send only one trigger ?
thanks
R,
On Mon, 2014-06-09 at 19:53 -0700, Ronni Montoya via Pd-list wrote:
Hi, im tracking the amplitude of my signal with ~env and i need to send one trigger when my ~env gives 0 , the problem is that if i do:
~env | select 0
It send a lot of triggers when my ~env is in 0 and i need to send just one trigger.
any idea how can i send only one trigger ?
There is [change] which only lets changing values pass. Something like this should work:
[env~ ] | [change] | [select 0]
Roman
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-10 08:30, Roman Haefeli via Pd-list wrote:
On Mon, 2014-06-09 at 19:53 -0700, Ronni Montoya via Pd-list wrote:
Hi, im tracking the amplitude of my signal with ~env and i need to send one trigger when my ~env gives 0 , the problem is that if i do:
~env | select 0
It send a lot of triggers when my ~env is in 0 and i need to send just one trigger.
any idea how can i send only one trigger ?
There is [change] which only lets changing values pass. Something like this should work:
[env~ ] | [change] | [select 0]
though in practice you might want to add some additional filtering before [change]. [env~] will give you loads of slightly different values, even when you feed it a rather "constant" signal like a sine: e.g.: [osc~ 440] | [env~] | [change] | [print]
i'd suggest doing something like
| [env~] | [> 30] | [change] |
which will give you 0 or 1, instead of the amplitude.
fgmasdr IOhannes
There is a rest detection example in the Pd-help patches which you may want to look at (depending on what exactly is it you're trying to achieve).
On Tue, 10 Jun 2014 09:39:27 +0200, IOhannes m zmoelnig via Pd-list wrote
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2014-06-10 08:30, Roman Haefeli via Pd-list wrote:
On Mon, 2014-06-09 at 19:53 -0700, Ronni Montoya via Pd-list wrote:
Hi, im tracking the amplitude of my signal with ~env and i need to send one trigger when my ~env gives 0 , the problem is that if i do:
~env | select 0
It send a lot of triggers when my ~env is in 0 and i need to send just one trigger.
any idea how can i send only one trigger ?
There is [change] which only lets changing values pass. Something like this should work:
[env~ ] | [change] | [select 0]
though in practice you might want to add some additional filtering before [change]. [env~] will give you loads of slightly different values, even when you feed it a rather "constant" signal like a sine: e.g.: [osc~ 440] | [env~] | [change] | [print]
i'd suggest doing something like
| [env~] | [> 30] | [change] |
which will give you 0 or 1, instead of the amplitude.
fgmasdr IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBCAAGBQJTlrYsAAoJELZQGcR/ejb4BVEP/32h/CAkkwAplVHyokQcbopP 2tMtp9fQBlI0byhnCNNmCb6QE/XsZS7//pGWKNeLrBewlRnH/KTaqbvIP3G6UZmQ m0Ic2gVtRMYmsSIrf6VKmG2TOnZ1miqXUAVE93wlUDwA2vRWvA3vSUsgGavPGvsF xz33FQNPpLzIKqb7WMPPfQGvmDy3KedhSbpgreNJ3utRmGTICSZTkCfsbRngyAgt ATy7Yml5jzC5Nj6BoTsUouzMzEgW+BantndFK6KCMM3vxIb1mnDNqwchqUBx8Z/m FOS7nygugCl0tsNlpicdWsKEpxWknLHdKyLCDgONv1/A2Iwa1EOUK8i720sOEUyX oiC8Dh1vGnGHhwnEEKeOEzDJGprqp/1S0nRvpfnzc1Zvzfkf5Jlydo8jUa+F1z3h 0YbQ+KL0QuCiAZfoDV6ZM7E7GJj+DA349mshFPHtToB/6Y9bD7m39tjiTIxdc+hU KPsWQ8ri10JkvRP8EOyG7u1Mjdlf5qQ5T6U4+XJTkyDNC/k3t/COKxIcH2uYLtXC MThnhr88sEbes2Og523RhhROUtvJnl+QuHam5Lt1XDSFkNcMStfcC/TjfbsUKwVr Zm/lG4Jfnwu+XCXW7Iv5DD3bFdO4xqr10Q6d/7GTa8shx1uU52R0+zTme8hI0FL7 fMw0hXMIz8aN76hKwkbB =okfr -----END PGP SIGNATURE-----
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Oded Ben-Tal http://ccrma.stanford.edu/~oded oded@ccrma.stanford.edu