max v2; #N vpatcher 10 59 918 586; #P origin -184 0; #P window setfont Times 10.; #P comment 568 393 68 1310730 stop metro; #P comment 589 343 88 1310730 look for number 72 \, bang if true; #P comment 536 411 147 1310730 (counter will stop after sending out 72 \, so its next number will be 60); #P comment 696 238 184 1310730 count bangs \, starting at 60 and ending at 72; #P comment 65 449 68 1310730 reset int to 60 \, and stop metro; #P comment 25 393 88 1310730 look for number 72 \, bang if true; #P comment 254 408 29 1310730 pitch; #P comment 316 408 41 1310730 velocity; #P comment 255 365 29 1310730 pitch; #P comment 339 365 41 1310730 velocity; #P comment 399 365 41 1310730 duration; #P comment 306 332 74 1310730 show the output; #P comment 153 361 79 1310730 add 1 to the input; #P comment 262 250 135 1310730 show values as they go into int; #P comment 153 162 27 1310730 bang; #P comment 15 281 132 1310730 store and recall a single integer; #P comment 222 282 80 1310730 initial value is 60; #P comment 31 142 115 1310730 bang five times per second; #P comment 255 143 149 1310730 initial argument 1/5 of a second; #P comment 267 63 149 1310730 <-- three ways to turn metro on/off; #P comment 171 94 101 1310730 toggle between 1 and 0; #P comment 2 45 81 1310730 bang = start metro; #P window setfont "Fixedwidth Serif" 18.; #P number 693 281 46 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P message 34 454 31 1441810 60; #P newex 250 379 185 1441810 makenote 127 100; #P newex 250 422 185 1441810 noteout; #P toggle 156 94 15 0; #P message 166 25 19 1441810 0; #P message 142 25 19 1441810 1; #P message 71 59 53 1441810 stop; #P message 7 59 53 1441810 bang; #P newex 147 137 108 1441810 metro 200; #P newex 570 369 108 1441810 select 72; #N counter 60 72; #X flags 0 0; #P newobj 544 232 152 1441810 counter 60 72; #P newex 34 419 108 1441810 select 72; #P newex 147 337 42 1441810 + 1; #P number 212 246 50 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 260 328 46 18 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 147 276 75 1441810 int 60; #P newex 699 369 185 1441810 makenote 127 100; #P toggle 674 100 15 0; #P message 684 31 19 1441810 0; #P message 660 31 19 1441810 1; #P message 582 66 53 1441810 stop; #P message 525 65 53 1441810 bang; #P newex 674 127 108 1441810 metro 200; #P newex 699 410 86 1441810 noteout; #P window setfont Times 10.; #P comment 186 24 118 1310730 1 = true = yes = start = on \, 0 = false = no = stop = off; #P connect 12 0 13 0; #P connect 13 0 24 0; #P connect 17 0 16 0; #P connect 18 0 16 0; #P connect 21 0 16 0; #P connect 16 0 9 0; #P connect 9 0 12 0; #P connect 19 0 21 0; #P connect 20 0 21 0; #P connect 13 0 20 0; #P connect 24 0 11 0; #P connect 12 0 11 0; #P connect 11 0 9 1; #P connect 9 0 23 0; #P connect 23 0 22 0; #P fasten 9 0 10 0 150 300; #P connect 23 1 22 1; #P connect 2 0 14 0; #P connect 14 0 15 0; #P connect 6 0 7 0; #P connect 5 0 7 0; #P connect 4 0 2 0; #P connect 3 0 2 0; #P connect 7 0 2 0; #P connect 15 0 6 0; #P connect 14 0 25 0; #P connect 14 0 8 0; #P connect 8 0 1 0; #P connect 8 1 1 1; #P pop;