#N canvas 433 76 448 623 10;
#X floatatom 22 82 0 0 0 0 - - -;
#X obj 22 108 mtof;
#X obj 22 350 output~;
#X msg 22 56 60;
#X text 57 85 <-- choose a pitch;
#X text 58 56 <-- reset to middle C;
#X obj 22 189 osc~;
#X obj 63 165 * 2;
#X obj 63 189 osc~;
#X obj 127 189 osc~;
#X obj 127 165 * 3;
#X obj 191 190 osc~;
#X obj 191 166 * 4;
#X obj 127 214 *~ 0.2;
#X obj 23 316 +~;
#X obj 64 291 *~;
#X obj 99 292 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 64 242 +~;
#X obj 64 266 +~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array tab.01.07 882 float 0;
#X coords 0 1.02 881 -1.02 160 104 1;
#X restore 267 42 graph;
#X msg 106 322 bang;
#X text 155 321 <-- click to graph;
#X text 222 165 frequencies of harmonics;
#X text 233 190 four oscillators;
#X text 237 215 adjust amplitudes;
#X text 99 265 add the three overtones together;
#X obj 106 351 tabwrite~ tab.01.07;
#X obj 63 214 *~ 0.1;
#X obj 191 214 *~ 0.5;
#X text 119 291 <-- overtones ON/OFF;
#X text 19 545 To hear the output \, choose a pitch (at top) \, optionally
click the "overtones" control \, and mouse up the output volume. Click
the "bang" message to graph it.;
#X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header adding_sinusoids_to_make_a_complex_tone
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X obj 1 601 cnv 15 445 20 empty \$0-pddp.cnv.footer empty 20 12 0
14 -233017 -33289 0;
#N canvas 44 246 494 284 META 0;
#X text 12 125 WEBSITE http://crca.ucsd.edu/~msp/;
#X text 12 105 AUTHOR Miller Puckette;
#X text 12 85 LIBRARY PDDP;
#X text 12 5 GENRE tutorial;
#X text 12 45 LICENSE SIBSD;
#X text 12 145 HELP_PATCH_AUTHORS Updated for release 0.40. Jonathan
Wilkes revised the patch to conform to the PDDP template for Pd version
0.42.;
#X text 12 25 KEYWORDS signal;
#X text 12 65 DESCRIPTION adding sinusoids to make a complex tone;
#X restore 392 603 pd META;
#N canvas 13 202 428 190 References 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -261139 -33289 0;
#X text 7 2 additive synthesis- Related Help Documents;
#X text 19 37 Links:;
#X restore 103 603 pd References;
#X text 268 145 ------ 0.02 seconds ------;
#X text 19 404 A simple way to build non-sinusoidal \, periodic musical
tones is to sum a series of harmonically tuned sinusoids. Here the
four oscillators have frequencies in a 1:2:3:4 ratio (the three [*]
objects compute the second \, third \, and fourth one). The amplitudes
are adjusted by the [*~ 0.1] \, etc. \, objects. Note that \, since
the frequency (from the [mtof]) is a message \, a [*] box suffices
to operate on it \, but the oscillator's output \, being an audio signal
\, needs [*~] instead. The control marked "overtones ON/OFF" is a toggle
switch. Click to turn it on and off. If the overtones are "off" you
hear only a sinusoid from the first oscillator. If on \, you hear all
four.;
#X obj 6 603 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X connect 0 0 1 0;
#X connect 1 0 6 0;
#X connect 1 0 7 0;
#X connect 1 0 10 0;
#X connect 1 0 12 0;
#X connect 3 0 0 0;
#X connect 6 0 14 0;
#X connect 7 0 8 0;
#X connect 8 0 27 0;
#X connect 9 0 13 0;
#X connect 10 0 9 0;
#X connect 11 0 28 0;
#X connect 12 0 11 0;
#X connect 13 0 17 1;
#X connect 14 0 2 0;
#X connect 14 0 2 1;
#X connect 14 0 26 0;
#X connect 15 0 14 1;
#X connect 16 0 15 1;
#X connect 17 0 18 0;
#X connect 18 0 15 0;
#X connect 20 0 26 0;
#X connect 27 0 17 0;
#X connect 28 0 18 1;
