max v2; #N vpatcher 10 59 637 420; #P window setfont Times 10.; #P comment 244 265 85 1310730 key number (pitch); #P comment 343 265 39 1310730 velocity; #P comment 427 265 39 1310730 channel; #P comment 232 297 324 1310730 combines channel \, velocity \, and pitch and sends it out as a MIDI note message; #P comment 210 237 71 1310730 show the results; #P comment 191 208 71 1310730 add to the input; #P comment 213 179 85 1310730 key number (pitch); #P comment 347 179 39 1310730 velocity; #P comment 481 181 39 1310730 channel; #P comment 456 157 125 1310730 gets incoming MIDI note data; #P comment 386 109 190 1310730 combine with velocity 120 \, then combine same pitch with a velocity of 0 after 500 ms; #P comment 319 93 136 1310730 number box \, shows the number; #P comment 352 72 171 1310730 chooses a random number from 0 to 127; #P comment 346 49 113 1310730 sends 'bang' every 500 ms; #P window setfont "Fixedwidth Serif" 10.; #P newex 283 112 103 1441802 makenote 120 500; #P number 283 93 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 283 70 69 1441802 random 128; #P toggle 283 29 15 0; #P newex 283 48 63 1441802 metro 500; #P number 37 240 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 26 210 33 1441802 + 22; #P number 83 239 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 72 209 33 1441802 + 15; #P number 129 238 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 118 208 33 1441802 - 12; #P number 175 237 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 164 207 27 1441802 + 7; #P newex 256 279 175 1441802 noteout; #P number 178 179 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 312 179 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P number 446 180 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 178 156 278 1441802 notein; #P window setfont Times 10.; #P comment 300 30 150 1310730 toggle switch (on/off) \, sends 1 or 0; #P connect 4 0 12 0; #P connect 12 0 13 0; #P connect 4 0 10 0; #P connect 10 0 11 0; #P connect 4 0 8 0; #P connect 8 0 9 0; #P connect 4 0 6 0; #P connect 6 0 7 0; #P connect 1 0 4 0; #P connect 18 0 4 0; #P connect 7 0 5 0; #P connect 9 0 5 0; #P connect 11 0 5 0; #P connect 13 0 5 0; #P connect 15 0 14 0; #P connect 14 0 16 0; #P connect 16 0 17 0; #P connect 17 0 18 0; #P connect 1 1 3 0; #P connect 18 1 3 0; #P connect 3 0 5 1; #P connect 2 0 5 2; #P connect 1 2 2 0; #P pop;