#N canvas 73 48 1010 736 10; #X obj 136 78 *; #X floatatom 63 36 5 0 0 0 - - -; #X floatatom 110 36 5 0 0 0 - - -; #X floatatom 63 129 5 0 0 0 - - -; #X obj 63 77 -; #X floatatom 136 127 5 0 0 0 - - -; #X msg 26 17 25; #X obj 63 151 print; #X obj 69 314 metro; #X floatatom 99 275 5 0 0 0 - - -; #X msg 69 204 bang; #X msg 88 242 stop; #X obj 69 460 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X floatatom 256 343 5 0 0 0 - - -; #X obj 103 414 / 100; #X floatatom 198 388 5 0 0 0 - - -; #X floatatom 103 436 5 0 0 0 - - -; #X obj 563 90 int; #X floatatom 563 116 5 0 0 0 - - -; #X floatatom 579 58 5 0 0 0 - - -; #X msg 517 25 bang; #X floatatom 563 24 5 0 0 0 - - -; #X obj 510 188 int; #X msg 510 160 bang; #X floatatom 542 211 5 0 0 0 - - -; #X obj 542 188 + 3; #X obj 483 563 int; #X floatatom 483 585 5 0 0 0 - - -; #X obj 515 563 + 1; #X msg 499 528 0; #X obj 483 664 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 509 664 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 535 665 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 174 77 basic computation; #X text 174 90 operation is only triggered by the left inlet; #X text 155 35 click and drag to change values (in run mode); #X text 58 17 click (in run mode) to send messages; #X text 180 126 computation results; #X text 106 151 print value to the Pd window; #X text 103 204 start metronome; #X text 103 218 "bang" is the universal "do it!" message; #X text 123 243 click message (in run mode) to stop metronome; #X text 141 274 set time between metronome ticks in milliseconds; #X obj 69 589 int; #X floatatom 101 619 5 0 0 0 - - -; #X obj 101 589 + 1; #X msg 85 561 0; #X text 115 561 click message (in run mode) to reset counter; #X text 133 589 basic design for a counter mechanism; #X text 134 604 useful as a timer \, and for many other things.... ; #X text 605 23 use this code snippet to test; #X text 605 36 the behavior of the "int" object; #X text 627 56 note that numbers sent to either inlet; #X text 628 69 set the value of the memory cell; #X text 628 87 numbers sent to the left inlet are output at once; #X text 628 99 numbers sent to the right inlet are not output; #X text 628 111 bang to the left inlet causes the memory to be output ; #X text 573 188 a counter that counts up by three instead of one; #X text 591 201 can you design a counter that counts down?; #X floatatom 103 388 5 0 0 0 - - -; #X text 298 342 change the range of the random values produced; #X obj 103 366 random 1001; #X obj 198 366 random 11; #X text 270 366 produce random integers from zero to ten; #X text 147 415 produce random rational numbers from zero to ten; #X obj 483 638 select 1 2 3 4; #X obj 559 664 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 589 638 select is a comparison test; #X text 581 664 reset counter on every fifth value; #X text 579 438 remember the distinction between run and edit modes ; #X text 579 452 and notice the visual difference between; #X text 580 465 objects \, number boxes \, and messages; #X connect 0 0 5 0; #X connect 1 0 4 0; #X connect 1 0 0 0; #X connect 2 0 4 1; #X connect 2 0 0 1; #X connect 3 0 7 0; #X connect 4 0 3 0; #X connect 6 0 4 0; #X connect 8 0 12 0; #X connect 8 0 61 0; #X connect 8 0 62 0; #X connect 9 0 8 1; #X connect 10 0 8 0; #X connect 11 0 8 0; #X connect 12 0 26 0; #X connect 12 0 43 0; #X connect 13 0 62 1; #X connect 14 0 16 0; #X connect 17 0 18 0; #X connect 19 0 17 1; #X connect 20 0 17 0; #X connect 21 0 17 0; #X connect 22 0 25 0; #X connect 23 0 22 0; #X connect 25 0 24 0; #X connect 25 0 22 1; #X connect 26 0 28 0; #X connect 26 0 27 0; #X connect 27 0 65 0; #X connect 28 0 26 1; #X connect 29 0 26 1; #X connect 43 0 45 0; #X connect 45 0 44 0; #X connect 45 0 43 1; #X connect 46 0 43 1; #X connect 59 0 14 0; #X connect 61 0 59 0; #X connect 62 0 15 0; #X connect 65 0 30 0; #X connect 65 1 31 0; #X connect 65 2 32 0; #X connect 65 3 66 0; #X connect 66 0 29 0;