#N canvas 564 61 567 648 12;
#N canvas 456 42 579 692 16x 0;
#X obj 84 387 *~ 0.064;
#X obj 84 412 rpole~ 0.93538;
#X obj 84 439 *~ 0.00431;
#X obj 84 465 cpole~ 0.96559 0.05592;
#X obj 84 505 cpole~ 0.96559 -0.05592;
#X obj 84 532 *~ 0.125;
#X obj 84 559 rzero~ -1;
#X obj 84 585 rzero~ -1;
#X obj 83 613 rzero~ -1;
#X obj 82 133 phasor~;
#X obj 83 647 outlet~;
#X obj 100 202 wrap~;
#X obj 100 172 -~;
#X obj 101 246 *~;
#X obj 83 275 +~;
#X obj 169 267 phasor~;
#X obj 205 321 wrap~;
#X obj 205 297 -~;
#X obj 227 355 *~;
#X obj 169 362 +~;
#X obj 84 347 +~;
#X obj 296 469 block~ 1024 1 16;
#X obj 169 30 inlet;
#X obj 208 81 r osc-params;
#X obj 169 211 *~;
#X obj 169 239 +~;
#X msg 293 409 \; osc-params 0.5 -0.5 0.5 0.5 1 0.5;
#X obj 293 383 loadbang;
#X obj 208 108 unpack f f f f f f;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 1 4 1;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 9 0 12 0;
#X connect 9 0 14 0;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
#X connect 13 0 14 1;
#X connect 14 0 20 0;
#X connect 15 0 17 0;
#X connect 15 0 19 0;
#X connect 16 0 18 0;
#X connect 17 0 16 0;
#X connect 18 0 19 1;
#X connect 19 0 20 1;
#X connect 20 0 0 0;
#X connect 22 0 9 0;
#X connect 22 0 24 0;
#X connect 23 0 28 0;
#X connect 24 0 25 0;
#X connect 25 0 15 0;
#X connect 27 0 26 0;
#X connect 28 0 12 1;
#X connect 28 1 13 1;
#X connect 28 2 17 1;
#X connect 28 3 18 1;
#X connect 28 4 24 1;
#X connect 28 5 25 1;
#X restore 108 224 pd 16x;
#X obj 90 331 output~;
#X text 313 585 Updated for Pd version 0.39;
#X text 45 22 THE CLASSIC SUBTRACTIVE SYNTH SOUND;
#X obj 189 196 *~;
#X obj 188 166 +~ 0.2;
#X obj 188 220 *~ 2000;
#X obj 175 296 *~;
#X obj 108 292 *~;
#X obj 108 186 mtof;
#X obj 68 66 r \$0-note;
#X obj 68 121 makenote 1;
#X obj 379 233 + 20;
#X obj 379 182 metro 300;
#X obj 379 160 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 379 291 s \$0-note;
#X obj 379 205 random 70;
#X obj 108 256 vcf~ 3;
#X floatatom 265 176 3 0 0 0 - - -;
#X floatatom 265 221 7 0 0 0 - - -;
#X obj 265 197 mtof;
#X obj 175 260 adsr 2 30 200 50 500;
#X obj 188 141 adsr 1 10 200 50 500;
#X obj 379 265 pack 0 200;
#X obj 82 151 poly 1 1;
#X floatatom 439 158 3 0 0 0 - - -;
#X floatatom 446 241 3 0 0 0 - - -;
#X text 54 404 Now that we can make reasonably high-quality classic
waveforms using upsampling \, we combine an upsampled oscillator with
a "vcf" filter and ADSR generators to control the filter resonant frequency
and the amplitude to make the classic subtractive synthesis sound.
Send an "s \$0-note" object a (pitch \, duration) pair to play a note.
(Classic VC synths did not have velocity sensitive keyboards!) You
can add controls to change the parameters of the ADSR envelopes and/or
the vcf~ "Q" parameter. The oscillators' waveforms and tuning relationship
is controlled by other parameters set within the "pd 16x" window.,
f 64;
#X obj 68 92 unpack f f;
#X connect 0 0 17 0;
#X connect 4 0 6 0;
#X connect 5 0 4 0;
#X connect 5 0 4 1;
#X connect 6 0 17 1;
#X connect 7 0 8 1;
#X connect 8 0 1 0;
#X connect 8 0 1 1;
#X connect 9 0 0 0;
#X connect 10 0 28 0;
#X connect 11 0 24 0;
#X connect 11 1 24 1;
#X connect 12 0 23 0;
#X connect 13 0 16 0;
#X connect 14 0 13 0;
#X connect 16 0 12 0;
#X connect 17 0 8 0;
#X connect 18 0 20 0;
#X connect 19 0 6 1;
#X connect 20 0 19 0;
#X connect 21 0 7 0;
#X connect 21 0 7 1;
#X connect 22 0 5 0;
#X connect 23 0 15 0;
#X connect 24 1 9 0;
#X connect 24 2 22 0;
#X connect 24 2 21 0;
#X connect 25 0 13 1;
#X connect 26 0 23 1;
#X connect 28 0 11 0;
#X connect 28 1 11 2;
