[PD] bang when phasor~ reaches 1

marius schebella marius.schebella at gmail.com
Fri Dec 1 17:22:50 CET 2006


hi,
Are you aware, that with interpolation the signal might not reach 1 but 
reset the phasor at some point below 1?
so it depends how accurate the bang should be. My idea is to use the 
derivative of the function, which is negative at the point where the 
phasor~ resets.
you will need some objects from zexy.
m.

hard off wrote:
> i want a phasor~ to send a bang when the signal reaches 1.  any ideas?
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 

-------------- next part --------------
#N canvas 236 266 450 338 10;
#X obj 113 92 z~ -1;
#X obj 96 124 -~;
#X obj 96 152 <~ 0;
#X obj 96 200 snapshot~;
#X obj 95 53 phasor~ 0.3;
#X obj 137 176 bang~;
#X obj 96 222 > 0;
#X obj 96 245 sel 1;
#X obj 96 271 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 96 175 avg~;
#X connect 0 0 1 1;
#X connect 1 0 2 0;
#X connect 2 0 9 0;
#X connect 3 0 6 0;
#X connect 4 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 9 0 3 0;


More information about the PD-list mailing list