#N canvas 430 33 681 665 12;
#X floatatom 131 71 0 0 0 0 - - -;
#X obj 131 97 mtof;
#X obj 32 332 output~;
#X msg 131 45 60;
#X obj 89 163 osc~;
#X obj 131 139 * 2;
#X obj 131 163 osc~;
#X obj 195 163 osc~;
#X obj 195 139 * 3;
#X obj 259 163 osc~;
#X obj 259 139 * 4;
#X obj 195 188 *~ 0.2;
#X obj 90 298 +~;
#X obj 131 268 *~;
#X obj 166 269 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 131 219 +~;
#X obj 131 243 +~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array tab.01.07 882 float 0;
#X coords 0 1.02 881 -1.02 200 130 1;
#X restore 417 241 graph;
#X msg 136 304 bang;
#X text 318 138 frequencies of harmonics;
#X text 318 162 four oscillators;
#X text 322 187 adjust amplitudes;
#X text 166 242 add the three overtones together;
#X obj 136 333 tabwrite~ tab.01.07;
#X text 413 610 updated for Pd version 0.40.;
#X text 420 379 ---- 0.02 seconds ----;
#X obj 131 188 *~ 0.1;
#X obj 259 188 *~ 0.5;
#X text 70 558 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., f 76;
#X text 70 422 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. Of the overtones are "off" you
hear only a sinusoid from the first oscillator. If on \, you hear all
four., f 76;
#X text 174 303 <= click to graph;
#X text 186 268 <= overtones ON/OFF;
#X text 166 74 <= choose a pitch;
#X text 167 45 <= reset to middle C;
#X text 105 9 ADDING SINUSOIDS TO MAKE A COMPLEX TONE;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 1 0 5 0;
#X connect 1 0 8 0;
#X connect 1 0 10 0;
#X connect 3 0 0 0;
#X connect 4 0 12 0;
#X connect 5 0 6 0;
#X connect 6 0 26 0;
#X connect 7 0 11 0;
#X connect 8 0 7 0;
#X connect 9 0 27 0;
#X connect 10 0 9 0;
#X connect 11 0 15 1;
#X connect 12 0 2 0;
#X connect 12 0 2 1;
#X connect 12 0 23 0;
#X connect 13 0 12 1;
#X connect 14 0 13 1;
#X connect 15 0 16 0;
#X connect 16 0 13 0;
#X connect 18 0 23 0;
#X connect 26 0 15 0;
#X connect 27 0 16 1;
