#N canvas 371 54 782 709 12;
#X obj 30 230 r trigger;
#X obj 30 451 *~;
#X obj 30 344 *~ 0.01;
#X obj 30 379 *~;
#X obj 30 409 *~;
#X obj 77 373 r pitch;
#X obj 77 423 mtof;
#X floatatom 77 398 4 0 0 0 - - -;
#X floatatom 49 285 4 0 0 0 - - -;
#X obj 49 260 r level;
#X floatatom 112 285 4 0 0 0 - - -;
#X obj 112 260 r attack;
#X floatatom 180 285 4 0 0 0 - - -;
#X obj 180 260 r decay;
#X floatatom 244 285 4 0 0 0 - - -;
#X floatatom 320 285 4 0 0 0 - - -;
#X obj 244 260 r sustain;
#X obj 320 260 r release;
#X obj 457 187 r note;
#X msg 458 265 \; trigger 1;
#X obj 560 254 del;
#X msg 559 278 \; trigger 0;
#X obj 50 186 qlist;
#X obj 50 27 r qlist;
#X msg 62 54 bang;
#X msg 68 79 rewind;
#X obj 78 108 r tempo;
#X floatatom 78 133 4 0 0 0 - - -;
#X msg 78 158 tempo \$1;
#X obj 457 230 t b f;
#X obj 508 227 s pitch;
#X obj 578 204 r duration;
#X floatatom 578 229 4 0 0 0 - - -;
#X floatatom 457 210 4 0 0 0 - - -;
#X obj 286 333 r trigger;
#X floatatom 305 389 4 0 0 0 - - -;
#X floatatom 365 419 4 0 0 0 - - -;
#X floatatom 455 419 4 0 0 0 - - -;
#X floatatom 541 419 4 0 0 0 - - -;
#X floatatom 637 419 4 0 0 0 - - -;
#X obj 305 364 r level2;
#X obj 365 394 r attack2;
#X obj 455 394 r decay2;
#X obj 541 394 r sustain2;
#X obj 637 394 r release2;
#X obj 77 448 tabosc4~ array1;
#X floatatom 236 379 4 0 0 0 - - -;
#X obj 225 565 vcf~;
#X floatatom 333 516 4 0 0 0 - - -;
#X obj 333 491 r q;
#X obj 286 457 adsr 0 0 0 0 0;
#X obj 305 414 / 69.23;
#X obj 236 404 mtof;
#X obj 236 429 sqrt;
#X obj 236 454 sqrt;
#X obj 194 349 r filter;
#X obj 237 507 *~;
#X obj 237 532 *~;
#X obj 286 482 +~ 1;
#X obj 236 479 *~;
#X text 107 230 ADSR for amplitude:;
#N canvas 0 258 703 380 otherstuff 0;
#X obj 289 86 loadbang;
#X obj 418 85 loadbang;
#N canvas 0 0 450 300 (subpatch) 0;
#X array array1 67 float 1;
#A 0 0 0 0 0 0.714286 0.742857 0.757143 0.771429 0.778571 0.785714
0.785714 0.785714 0.785714 0.790476 0.795238 0.614286 0.585714 0.442857
0.271429 -0.128571 -0.142857 -0.157143 -0.171429 -0.642857 -0.528571
-0.614286 -0.685714 -0.828571 -0.828571 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0.557143 0.571429 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 1 66 -1 200 140 1;
#X restore 62 81 graph;
#X msg 418 115 \; qlist read qlist2.txt;
#X msg 289 111 \; level 100 \; attack 20 \; decay 300 \; sustain 70
\; release 300 \; duration 300 \; pitch 72 \; filter 38 \; level2 49
\; attack2 19 \; decay2 300 \; sustain2 17 \; release2 700 \; q 3 \;
tempo 4;
#X connect 0 0 4 0;
#X connect 1 0 3 0;
#X restore 417 500 pd otherstuff;
#X msg 402 573 \; qlist read qlist2.txt;
#X text 396 549 click to reload qlist2.txt;
#X obj 208 612 output~;
#X text 247 46 This is an analog-synth sound made using a wavetable
oscillator and a "vcf~" object. Unlike the "floyd" example earlier
\, we use a qlist object to do the sequencing. This can also be adapted
to make a keyboard synth.;
#X text 245 114 The qlist reads the file \, "qlist2.txt" \, which contains
four "note" messages and a message at the end that restarts the qlist
at the beginning. The "note" messages are translated into a pitch change
and triggers for the ADSRs.;
#X text 496 644 updated for Pd version 0.39;
#X text 392 324 ADSR for filter. Here \, it works better to make the
envelope modify a constant "filter pitch"--so the "filter" receive
gets the "mtof" treatment and the ADSR is an offset in halftones.,
f 50;
#X text 243 17 ANALOG_STYLE SYNTH USING QLIST;
#X text 519 499 <= loadbangs and table;
#X text 100 53 <= start loop;
#X text 117 79 <= stop loop;
#X text 118 133 <= set tempo;
#X obj 30 318 adsr 0 0 0 0 0;
#X connect 0 0 74 0;
#X connect 1 0 47 0;
#X connect 2 0 3 0;
#X connect 2 0 3 1;
#X connect 3 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 1 0;
#X connect 5 0 7 0;
#X connect 6 0 45 0;
#X connect 7 0 6 0;
#X connect 8 0 74 1;
#X connect 9 0 8 0;
#X connect 10 0 74 2;
#X connect 11 0 10 0;
#X connect 12 0 74 3;
#X connect 13 0 12 0;
#X connect 14 0 74 4;
#X connect 15 0 74 5;
#X connect 16 0 14 0;
#X connect 17 0 15 0;
#X connect 18 0 33 0;
#X connect 20 0 21 0;
#X connect 23 0 22 0;
#X connect 24 0 22 0;
#X connect 25 0 22 0;
#X connect 26 0 27 0;
#X connect 27 0 28 0;
#X connect 28 0 22 0;
#X connect 29 0 20 0;
#X connect 29 0 19 0;
#X connect 29 1 30 0;
#X connect 31 0 32 0;
#X connect 32 0 20 1;
#X connect 33 0 29 0;
#X connect 34 0 50 0;
#X connect 35 0 51 0;
#X connect 36 0 50 2;
#X connect 37 0 50 3;
#X connect 38 0 50 4;
#X connect 39 0 50 5;
#X connect 40 0 35 0;
#X connect 41 0 36 0;
#X connect 42 0 37 0;
#X connect 43 0 38 0;
#X connect 44 0 39 0;
#X connect 45 0 1 1;
#X connect 46 0 52 0;
#X connect 47 0 64 0;
#X connect 47 0 64 1;
#X connect 48 0 47 2;
#X connect 49 0 48 0;
#X connect 50 0 58 0;
#X connect 51 0 50 1;
#X connect 52 0 53 0;
#X connect 53 0 54 0;
#X connect 54 0 59 0;
#X connect 55 0 46 0;
#X connect 56 0 57 0;
#X connect 56 0 57 1;
#X connect 57 0 47 1;
#X connect 58 0 59 1;
#X connect 59 0 56 0;
#X connect 59 0 56 1;
#X connect 74 0 2 0;
