#N canvas 254 352 622 359 10; #X obj -43 68 notein; #X obj -45 330 noteout; #X floatatom 86 145 5 0 0 0 - - -; #X floatatom 147 124 5 0 0 0 - - -; #X floatatom 21 175 5 0 0 0 - - -; #X obj -83 209 sel 1; #X floatatom -208 108 5 0 0 0 - - -; #X text -369 198 translate all notes of MIDI pitch 45 to 12; #X text -280 91 just for manually testing; #X text -267 0 an example patch for Midi pitch (MIDI note number) conversion ; #X text 85 162 velocity; #X text 20 191 MIDI pitch; #X text 145 139 MIDI channel; #X text -267 32 right-click objects to open a help patch; #X text -246 226; #X obj -137 184 == 45; #X obj -137 210 sel 1; #X msg -137 241 12; #X obj -143 302 print; #X text -249 210 and pitch 32 to 62; #X obj -83 183 == 32; #X msg -83 240 62; #X text -378 260 add more conditional translations as required; #X floatatom -183 301 5 0 0 0 - - -; #X obj 50 260 print; #X text -331 222 all other note numbers are dropped; #X connect 0 0 4 0; #X connect 0 0 20 0; #X connect 0 0 15 0; #X connect 0 1 2 0; #X connect 0 1 1 1; #X connect 0 2 3 0; #X connect 0 2 1 2; #X connect 4 0 24 0; #X connect 5 0 21 0; #X connect 6 0 15 0; #X connect 6 0 20 0; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 17 0 1 0; #X connect 17 0 18 0; #X connect 17 0 23 0; #X connect 20 0 5 0; #X connect 21 0 1 0; #X connect 21 0 18 0; #X connect 21 0 23 0;