#N canvas 355 84 656 495 10; #X floatatom 99 -133 5 0 0 0 - - -; #X obj 195 -195 keyup; #X floatatom 214 -175 5 0 0 0 - - -; #N canvas 0 22 450 300 (subpatch) 0; #X array kbdmap 255 float 3; #A 0 0 63 0 0 0 0 0 0 77 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 93 0 0 0 0 0 0 158 0 0 0 0 72 0 74 76 63 0 49 51 0 54 56 58 0 61 0 75 123 66 120 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 65 0 67 0 0 0 0 67 64 63 52 170 66 68 60 70 160 73 71 69 62 64 48 53 61 55 59 65 50 62 57 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0; #X coords 0 0 255 255 200 50 1; #X restore 364 -144 graph; #X obj 90 -194 key; #X floatatom 99 -173 5 0 0 0 - - -; #X obj 90 -154 tabread kbdmap; #X obj 90 -107 outlet; #X obj 195 -106 outlet; #X obj 195 -154 tabread kbdmap; #X text 32 -194 Key down; #X text -4 -154 Convert to MIDI; #X text 7 -107 Note on event; #X text 240 -197 Key released; #X text 240 -107 Note off event; #X text 360 -197 Hand-build mapping from keycodes; #X text 358 -183 to midi note numbers; #X text -24 -252 Generate MIDI-like note events from the computer keyboard ; #X text 17 176 2010-02-08 Dan Ellis dpwe@ee.columbia.edu; #X obj 376 25 key; #X obj 357 94 f; #X obj 386 94 + 1; #X floatatom 309 123 5 0 0 0 - - -; #X obj 357 174 tabwrite kbdmap; #X obj 357 149 pack 48 122; #X obj 376 68 t b b f; #X obj 357 125 f; #X floatatom 437 150 5 0 0 0 - - -; #X msg 338 -36 48; #X msg 338 -11 60; #X obj 414 25 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 999; #X obj 376 48 moses; #X msg 414 5 999; #X obj 383 -14 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 3 -39 LEARN KEYBOARD MAPPING; #X text 432 25 Learning Active; #X text 212 123 Next MIDI note; #X text 474 149 Last key code; #X msg 338 15 0; #X text 185 14 Click to stop learning-->; #X text 185 -12 Click to start from C4-->; #X text 185 -38 Click to start from C3-->; #X text 3 -16 Click a start note \,; #X text 3 -1 then press keys in; #X text 2 51 Click stop when done.; #X text 3 13 a chromatic scale; #X text 3 28 to rewrite map table.; #X text -4 -228 ** REMEMBER TO TURN OFF KEYBOARD AUTO REPEAT **; #X connect 1 0 2 0; #X connect 1 0 9 0; #X connect 4 0 5 0; #X connect 4 0 6 0; #X connect 6 0 0 0; #X connect 6 0 7 0; #X connect 9 0 8 0; #X connect 19 0 31 0; #X connect 20 0 21 0; #X connect 20 0 26 1; #X connect 20 0 22 0; #X connect 21 0 20 1; #X connect 24 0 23 0; #X connect 25 0 20 0; #X connect 25 1 26 0; #X connect 25 2 24 1; #X connect 25 2 27 0; #X connect 26 0 24 0; #X connect 28 0 20 0; #X connect 28 0 33 0; #X connect 29 0 20 0; #X connect 29 0 33 0; #X connect 30 0 31 1; #X connect 31 0 25 0; #X connect 32 0 30 0; #X connect 33 0 32 0; #X connect 38 0 30 0; #X coords 0 495 1 494 0 0 0;