#N canvas 27 173 1216 644 12; #X obj 223 502 dac~; #X msg 631 240 event e; #X msg 30 110 control kcps1 \$1; #X floatatom 170 63 5 0 0 0 - - -; #X msg 170 110 control kphs1 \$1; #X msg 30 190 control kgdur1 \$1; #X obj 416 327 print three; #X obj 470 355 print four; #X floatatom 30 142 5 0 0 0 - - -; #X obj 30 164 / 1000; #X msg 366 173 reset; #X msg 154 265 run \$1; #X obj 154 245 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X floatatom 30 63 5 0 0 0 - - -; #X obj 30 85 / 100; #X msg 86 37 280; #X msg 100 138 155; #X obj 632 -48 notein 1; #X msg 253 59 156; #X obj 791 -16 moses 0.001; #X obj 796 101 spigot; #X msg 825 75 1; #X msg 859 75 0; #X obj 632 43 spigot; #X msg 756 17 1; #X msg 791 17 0; #X obj 324 -2 loadbang; #X obj 231 392 lop~ 400; #X obj 319 391 lop~ 400; #X floatatom 160 343 5 0 0 0 - - -; #X obj 170 85 / 100; #X obj 632 68 t f f; #X obj 632 149 pack 0 0 0; #X obj 707 98 / 1000; #X obj 707 124 + 1; #X msg 796 125 control off \$1; #X msg 631 215 event i \$3 0 0.1 \$1 \$2 \, control off -999; #X obj 324 282 csoundapi~ midigrain3.csd; #X msg 324 25 set kcps1 kcps2 kcps3 kphs1 kgdur1 off offr kthresh; #X text 703 -48 MIDI through PD; #X text 920 125 noteoff message; #X text 114 322 cutoff; #X text 715 146 csound allows decimal instrument names to create different instances of the same instrument that don't interrupt each other. this pack object allows each note number to start a different instance \, as 1.06 \, 1.061 \, etc.; #X text 21 31 Formant; #X text 17 211 Grain duration; #X text 153 38 Normalized location; #X text 890 -15 noteon or noteoff?; #X text 671 449 MIDI/PD control of Csound's grain3; #X connect 1 0 37 0; #X connect 2 0 37 0; #X connect 3 0 30 0; #X connect 4 0 37 0; #X connect 5 0 37 0; #X connect 8 0 9 0; #X connect 9 0 5 0; #X connect 10 0 37 0; #X connect 11 0 37 0; #X connect 12 0 11 0; #X connect 13 0 14 0; #X connect 14 0 2 0; #X connect 15 0 14 0; #X connect 16 0 9 0; #X connect 17 0 23 0; #X connect 17 0 20 0; #X connect 17 1 19 0; #X connect 18 0 30 0; #X connect 19 0 25 0; #X connect 19 0 21 0; #X connect 19 1 24 0; #X connect 19 1 22 0; #X connect 19 1 32 1; #X connect 20 0 35 0; #X connect 21 0 20 1; #X connect 22 0 20 1; #X connect 23 0 31 0; #X connect 24 0 23 1; #X connect 25 0 23 1; #X connect 26 0 38 0; #X connect 26 0 12 0; #X connect 27 0 0 0; #X connect 28 0 0 1; #X connect 29 0 27 1; #X connect 29 0 28 1; #X connect 30 0 4 0; #X connect 31 0 32 0; #X connect 31 1 33 0; #X connect 32 0 36 0; #X connect 33 0 34 0; #X connect 34 0 32 2; #X connect 35 0 37 0; #X connect 36 0 37 0; #X connect 37 0 27 0; #X connect 37 1 28 0; #X connect 37 2 6 0; #X connect 37 3 7 0; #X connect 38 0 37 0;