On Don, 2013-07-04 at 21:20 +0200, Orm Finnendahl wrote: > Hi List, > > sorry if I'm missing the obvious: I'd like to implement a phasor~, > which only allows its frequency to be changed on wraparound. Using a > samphold~ for that purpose connected to the outlet and inlet of the > phasor~ doesn't work as this creates a dsp loop. > > I prefer a pd vanilla solution (I know how to implement it as an > external, but for portability I'd like to get it done without). > > Any ideas?
Sounds like a job for [vline~]. See attached patch. Roman
#N canvas 164 176 427 401 10; #X obj 113 330 vline~; #X msg 113 303 0 \, 1 \$1; #X obj 113 255 metro; #X obj 113 277 f; #X obj 140 221 t a a; #X obj 140 198 /; #X msg 140 174 1 \$1; #X obj 113 352 outlet~; #X obj 27 200 loadbang; #X obj 140 16 inlet; #X obj 140 88 sel 0; #X msg 140 136 1e-23; #X obj 167 112 min 1000; #X obj 202 23 loadbang; #X obj 202 45 f \$1; #X connect 0 0 7 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 3 0 1 0; #X connect 4 0 2 1; #X connect 4 1 3 1; #X connect 5 0 4 0; #X connect 6 0 5 0; #X connect 8 0 2 0; #X connect 9 0 10 0; #X connect 10 0 11 0; #X connect 10 1 12 0; #X connect 11 0 6 0; #X connect 12 0 6 0; #X connect 13 0 14 0; #X connect 14 0 10 0;
#N canvas 439 225 549 308 10; #X obj 74 116 phashold~ 2; #X floatatom 74 48 5 1 1000 0 - - -, f 5; #X obj 75 222 snapshot~; #X obj 78 246 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144 -1 -1 11222 1; #X obj 161 168 loadbang; #X obj 161 190 metro 20; #X text 180 20 similar to [phasor~] \, but only changes to new frequences only at wrapping time.; #X text 178 82 NOTE: the range of allowed frequencies is limited between 1e-23 and 1000 Hz. To allow higher frequencies \, the [metro] needs to be replaced by [delay] based construct.; #X text 407 277 2013 \, Roman Haefeli; #X connect 0 0 2 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 2 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
