hi ed.
Ed Kelly wrote:
Hi,
I'm trying to do a filter tutorial for my class, and it is the 11th hour. I have discovered that the metro object behaves wierdly in this patch, chucking out all its bangs at once (like kalashnikov).
SO here's the patch...
took me a while to find the problematic object (as soon as i was there, i saw the "here is the bug" sign....still, i'd suggest this for the award of bug obfuscating reports (it would be nice if somebody could make this into proper english))
anyhow, like always ;-) i would say that the bug is in the patch rather than in pd.
your problem is, that everytime [metro] receives a [1( (or [bang() it will _immediately_ start to bang. now the first [bang( will trigger the comparision which returns [1( which is sent to the metro, re-turns it on (and therefore immediately triggers a bang) and on and on...
attached is an illustration of what i mean.
mfga.sdr IOhannes
#N canvas 331 58 855 692 10; #X obj 262 150 f; #X obj 157 95 t b b; #X msg 278 127 0; #X obj 292 151 + 1; #X obj 157 153 metro 250; #X msg 157 72 bang; #X obj 157 220 print a1; #X obj 755 159 f; #X obj 650 80 t b b; #X msg 771 136 0; #X obj 785 160 + 1; #X floatatom 755 251 5 0 0 0 - - -; #X obj 762 209 sel 0 1; #X obj 650 138 metro 250; #X msg 650 57 bang; #X obj 650 265 print a2; #X obj 755 268 print b2; #X msg 762 230 0; #X text 649 24 good; #X obj 529 156 f; #X obj 424 101 t b b; #X msg 545 133 0; #X obj 559 157 + 1; #X floatatom 529 232 5 0 0 0 - - -; #X obj 424 159 metro 250; #X msg 424 78 bang; #X obj 424 226 print a1; #X obj 529 249 print b1; #X obj 536 210 change; #X text 432 55 almost; #X text 165 49 original; #X obj 270 179 < 10; #X obj 536 185 < 10; #X obj 762 188 < 10; #X floatatom 262 206 5 0 0 0 - - -; #X obj 262 223 print b1; #X obj 267 422 f; #X obj 162 367 t b b; #X msg 283 399 0; #X obj 297 423 + 1; #X obj 162 425 metro 250; #X msg 162 344 bang; #X obj 162 492 print a1; #X floatatom 267 478 5 0 0 0 - - -; #X obj 267 495 print b1; #X obj 275 451 < 10; #X text 156 328 do you feel the difference?; #X connect 0 0 3 0; #X connect 0 0 31 0; #X connect 0 0 34 0; #X connect 1 0 4 0; #X connect 1 1 2 0; #X connect 2 0 0 1; #X connect 3 0 0 1; #X connect 4 0 0 0; #X connect 4 0 6 0; #X connect 5 0 1 0; #X connect 7 0 10 0; #X connect 7 0 11 0; #X connect 7 0 33 0; #X connect 8 0 13 0; #X connect 8 1 9 0; #X connect 9 0 7 1; #X connect 10 0 7 1; #X connect 11 0 16 0; #X connect 12 0 17 0; #X connect 13 0 7 0; #X connect 13 0 15 0; #X connect 14 0 8 0; #X connect 17 0 13 0; #X connect 19 0 22 0; #X connect 19 0 23 0; #X connect 19 0 32 0; #X connect 20 0 24 0; #X connect 20 1 21 0; #X connect 21 0 19 1; #X connect 22 0 19 1; #X connect 23 0 27 0; #X connect 24 0 19 0; #X connect 24 0 26 0; #X connect 25 0 20 0; #X connect 28 0 24 0; #X connect 31 0 4 0; #X connect 32 0 28 0; #X connect 33 0 12 0; #X connect 34 0 35 0; #X connect 36 0 39 0; #X connect 36 0 43 0; #X connect 36 0 45 0; #X connect 37 0 40 0; #X connect 37 1 38 0; #X connect 38 0 36 1; #X connect 39 0 36 1; #X connect 40 0 36 0; #X connect 40 0 42 0; #X connect 41 0 37 0; #X connect 43 0 44 0; #X connect 45 0 40 0;