#N canvas 235 82 1008 648 10; #X floatatom 55 -74 5 0 0 0 - - -; #X floatatom 113 -96 5 0 0 0 - - -; #X obj 31 79 f; #X obj 71 77 + 1; #X floatatom 31 102 5 0 0 0 - - -; #X obj 71 97 mod 8; #X obj 37 159 route 0 1 2 3 4 5 6 7; #X obj 55 -8 unpack; #X obj 56 16 t b f; #X obj 56 -30 pack 0 1000; #X text 124 32 the mod-8 counter at left decides which of the 8 voices below will play the note.; #X text 182 162 split off the leading number and send the remaining 2 to one of the voices below; #X obj 145 191 002_03_sampling; #X obj 662 92 soundfiler; #X text 659 47 reading from a file; #X msg 662 14 \; mtable normalize; #X floatatom 663 117 8 0 0 0 - - -; #X obj 734 118 / 44.1; #X floatatom 787 121 8 0 0 0 - - -; #X msg 662 68 read -resize 2.wav mtable; #X obj 732 169 s duration; #X obj 659 160 s sample; #X obj 22 36 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 88 126 pack 0 0 0 0; #X floatatom 159 3 8 0 0 0 - - -; #X text -4 -177 A more involved example in which the pitch \, duration (envelope) and reading points are controlled with a packed message. ; #X text 43 -100 pitch; #X text 102 -127 duration (envelope); #X text 220 -111 reaing point (samples); #X text 176 117 Pack the voice number \, pitch \, duration and reading point into a single message for "route" below; #X obj 225 -93 hsl 128 15 0 242868 0 0 empty rsampler empty -2 -8 0 10 -262144 -1 -1 5400 1; #X msg 672 236 \; rsampler range 0 \$1 \;; #X obj 218 -66 t b f; #X obj 129 211 002_03_sampling; #X obj 113 231 002_03_sampling; #X obj 100 253 002_03_sampling; #X obj 78 274 002_03_sampling; #X obj 66 297 002_03_sampling; #X obj 54 319 002_03_sampling; #X obj 39 344 002_03_sampling; #X msg -23 -43 bang; #X obj 882 76 loadbang; #X msg 884 106 \; pd dsp 1 \;; #X obj 684 -84 qlist; #X msg 425 -148 next; #X msg 723 -84 rewind; #X msg 475 -150 write empty.txt cr; #X msg 685 -132 read empty.txt cr; #X floatatom 728 -51 8 0 0 0 - - -; #X msg 364 -92 add \$1; #X msg 628 -148 clear; #X obj 687 -151 loadbang; #X obj 378 -61 t b b; #X floatatom 234 81 8 0 0 0 - - -; #X obj 257 10 ==; #X obj 253 -11 t f f; #X obj 291 -11 pipe; #X obj 288 11 sel 0 1; #X obj 791 31 table mtable; #X connect 0 0 9 0; #X connect 0 0 52 0; #X connect 1 0 9 1; #X connect 2 0 4 0; #X connect 2 0 3 0; #X connect 3 0 5 0; #X connect 4 0 23 0; #X connect 5 0 2 1; #X connect 6 0 39 0; #X connect 6 1 38 0; #X connect 6 2 37 0; #X connect 6 3 36 0; #X connect 6 4 35 0; #X connect 6 5 34 0; #X connect 6 6 33 0; #X connect 6 7 12 0; #X connect 7 0 8 0; #X connect 7 1 23 2; #X connect 8 0 2 0; #X connect 8 1 23 1; #X connect 9 0 7 0; #X connect 13 0 16 0; #X connect 16 0 17 0; #X connect 16 0 21 0; #X connect 16 0 31 0; #X connect 17 0 18 0; #X connect 17 0 20 0; #X connect 19 0 13 0; #X connect 22 0 2 0; #X connect 23 0 6 0; #X connect 24 0 23 3; #X connect 24 0 55 0; #X connect 30 0 32 0; #X connect 30 0 49 0; #X connect 32 0 9 0; #X connect 32 1 24 0; #X connect 40 0 23 0; #X connect 41 0 42 0; #X connect 43 0 48 0; #X connect 43 0 53 0; #X connect 43 1 45 0; #X connect 44 0 43 0; #X connect 45 0 43 0; #X connect 46 0 43 0; #X connect 47 0 43 0; #X connect 49 0 43 0; #X connect 50 0 43 0; #X connect 51 0 47 0; #X connect 52 0 44 0; #X connect 52 1 46 0; #X connect 53 0 23 3; #X connect 54 0 57 0; #X connect 55 0 54 0; #X connect 55 1 56 0; #X connect 56 0 54 1; #X connect 57 1 50 0;