#N canvas 570 30 647 548 10; #X obj 23 428 osc~; #X obj 62 454 *~; #X obj 144 377 line~; #X obj 62 496 throw~ sum-bus; #X obj 144 349 pack 0 10; #X obj 23 349 pack 0 10; #X obj 23 374 line~; #X text 226 164 Because the frqarray and magarray contain all the partials' data end-to-end \, we use the partial number to offset the point where we read the table; #X obj 264 141 r framecount; #X obj 192 168 * \$1; #X obj 83 190 +; #X obj 264 114 r time; #X obj 429 357 r fscale; #X obj 23 404 *~; #X obj 429 320 r fadetime; #X text 11 6 mypartial.pd; #X text 10 23 Render a single partial in an additive synthesis system ; #X obj 269 282 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X text 161 497 Send it back to the global audio output summing bus ; #X msg 218 258 0; #X msg 188 258 1; #X obj 280 222 r allon; #X obj 280 242 r alloff; #X text 351 113 Signal sets current time in table; #X text 335 242 Signals to turn all partials on or off; #X text 352 142 Constant sets size of each block in table; #X text 9 41 Reads values from frqarray and magarray \, defined in parent \, which consist of many -length sequences of control values. We render just one.; #X text 10 87 Creation arguments:; #X text 8 102 \$1: sequence number within data arrays; #X obj 165 233 loadbang; #X floatatom 326 282 5 0 0 0 - - -; #X floatatom 202 423 8 0 0 0 - - -; #X floatatom 286 282 5 0 0 0 - - -; #X obj 230 445 f; #X obj 170 445 *; #X obj 314 445 f; #X obj 83 236 t b f f; #X obj 318 302 /; #X floatatom 60 326 8 0 0 0 - - -; #X floatatom 192 325 8 0 0 0 - - -; #X obj 286 445 + 0; #X obj 202 445 + 0; #X text 397 376 Signal to scale all frequencies; #X msg 375 281 0; #X obj 503 207 r partials; #X obj 423 207 moses \$1; #X obj 82 212 moses 1000; #X obj 160 201 * 1000; #X text 424 278 Signal to reset avg freq; #X obj 427 261 r resetavg; #X obj 62 475 *~; #X floatatom 43 237 5 0 0 0 - - -; #X floatatom 208 122 5 0 0 0 - - -; #X obj 478 207 - 1; #X obj 23 304 tabread frqarray; #X obj 144 304 tabread magarray; #X text 169 462 Sum mag*freq; #X text 283 462 Sum mags; #X text 343 302 mag-weighted avg freq; #X text 399 339 Signal to adjust the interp time; #X text 420 224 Turn off partials above file limit; #X text 6 516 2011-03-08 Dan Ellis dpwe@ee.columbia.edu; #X connect 0 0 1 0; #X connect 1 0 50 0; #X connect 2 0 1 1; #X connect 4 0 2 0; #X connect 5 0 6 0; #X connect 6 0 13 0; #X connect 8 0 9 0; #X connect 9 0 10 1; #X connect 10 0 46 0; #X connect 11 0 10 0; #X connect 11 0 52 0; #X connect 12 0 13 1; #X connect 13 0 0 0; #X connect 14 0 4 1; #X connect 14 0 5 1; #X connect 17 0 47 0; #X connect 17 0 50 1; #X connect 19 0 17 0; #X connect 20 0 17 0; #X connect 21 0 20 0; #X connect 22 0 19 0; #X connect 29 0 20 0; #X connect 29 0 43 0; #X connect 31 0 37 0; #X connect 31 0 41 0; #X connect 32 0 37 1; #X connect 32 0 40 0; #X connect 33 0 31 0; #X connect 34 0 41 1; #X connect 35 0 32 0; #X connect 36 0 33 0; #X connect 36 0 35 0; #X connect 36 1 54 0; #X connect 36 2 55 0; #X connect 37 0 30 0; #X connect 40 0 35 1; #X connect 41 0 33 1; #X connect 43 0 32 0; #X connect 43 0 31 0; #X connect 44 0 53 0; #X connect 45 0 19 0; #X connect 45 1 20 0; #X connect 46 0 36 0; #X connect 46 0 51 0; #X connect 47 0 46 1; #X connect 49 0 43 0; #X connect 50 0 3 0; #X connect 53 0 45 0; #X connect 54 0 5 0; #X connect 54 0 34 0; #X connect 54 0 38 0; #X connect 55 0 34 1; #X connect 55 0 39 0; #X connect 55 0 40 1; #X connect 55 0 4 0; #X coords 0 -1 1 1 180 20 1 185 280;