[PD] how to trigger bang's with a period less than 1 milisecond

Frank Barknecht fbar at footils.org
Mon Jun 19 12:15:18 CEST 2006


Hallo,
Claude Heiland-Allen hat gesagt: // Claude Heiland-Allen wrote:
> Many feedback scenarios are not possible with signals in blocks, and 
> also some non-feedback processes do not work with signals in blocks if 
> there is a signal->message->signal flow.
> 
> See attached patch: it would be cool if the table would show a staggered 
> line when the bng is clicked, however it shows only a straight line, 
> which indicates that the output of [threshold~] doesn't reach the lower 
> [phasor~] in time.

I think, you're missing to send a 0 to threshold's right inlet. 
And I don't see a vline~ anywhere in your patch! ;) 

Your patch brings up the problem, that the right, phase inlet of
phasor~ or osc~ is not prepared to deal with clock delayed messages,
but only handles "normal" messages, that is, it quantizes these
messages to block boundaries. I think, I mentioned this in this thread
already. We should open a feature request. 

I made another built-in clone for phasor~ with metro and vline~ called
vhasor~. Here the phase inlet is accepting and evaluating clock
delayed messages.

Then additionally I'm not sure, if the right inlet of threshold~ deals
clockdel messages correctly. As I understand the source code, it does
some extra work to generate clock delayed messages as well, however my
attached test patch still doesn't stagger correctly. I'm not sure yet,
why.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 323 110 650 495 10;
#X obj 176 237 metro;
#X obj 176 54 f \$1;
#X obj 222 14 loadbang;
#X obj 176 80 expr 1000/$f1;
#X obj 176 15 inlet;
#X obj 176 364 vline~;
#X msg 176 290 0 \, 1 \$1;
#X obj 177 392 outlet~;
#X obj 428 76 inlet;
#X floatatom 186 111 5 0 0 0 - - -;
#X obj 176 268 f;
#X obj 176 161 > 0;
#X obj 230 171 del;
#X msg 231 191 1;
#X msg 463 153 0;
#X obj 176 131 t a a a a;
#X text 451 173 stop and restart metro;
#X obj 428 110 t b b b b;
#X connect 0 0 10 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 9 0;
#X connect 3 0 15 0;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 8 0 17 0;
#X connect 10 0 6 0;
#X connect 11 0 0 0;
#X connect 12 0 13 0;
#X connect 13 0 0 0;
#X connect 14 0 0 0;
#X connect 15 0 11 0;
#X connect 15 1 0 1;
#X connect 15 2 10 1;
#X connect 15 3 12 1;
#X connect 17 0 12 0;
#X connect 17 1 10 0;
#X connect 17 2 14 0;
-------------- next part --------------
#N canvas 750 211 492 374 10;
#X msg 137 49 0;
#X obj 15 306 tabwrite~ \$0-threshold-test;
#X obj 15 326 table \$0-threshold-test 64;
#X obj 15 17 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 55 51 5 0 0 0 - - -;
#X obj 202 49 metro 1.45;
#X obj 198 22 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X floatatom 283 25 5 0 0 0 - - -;
#X obj 55 179 +~;
#X obj 55 205 -~ 1;
#X obj 162 109 threshold~ 0.5;
#X msg 162 129 0;
#X obj 80 149 vhasor~ 689;
#X obj 55 79 vhasor~ 689;
#X connect 0 0 10 1;
#X connect 0 0 12 1;
#X connect 0 0 13 1;
#X connect 3 0 1 0;
#X connect 3 0 0 0;
#X connect 4 0 12 0;
#X connect 4 0 13 0;
#X connect 5 0 1 0;
#X connect 5 0 0 0;
#X connect 6 0 5 0;
#X connect 7 0 5 1;
#X connect 8 0 9 0;
#X connect 9 0 1 0;
#X connect 10 0 11 0;
#X connect 11 0 12 1;
#X connect 12 0 8 1;
#X connect 13 0 8 0;
#X connect 13 0 10 0;


More information about the Pd-list mailing list