#N canvas 553 23 755 681 12;
#X declare -stdpath ./;
#X obj 132 178 wrap~;
#X obj 132 207 -~ 0.5;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-sum 882 float 0;
#X coords 0 1.02 881 -1.02 200 130 1;
#X restore 414 304 graph;
#X text 429 444 ---- 0.02 seconds ----;
#X text 508 585 updated for Pd version 0.39;
#X obj 129 415 output~;
#X obj 238 417 tabwrite~ \$0-sum;
#X obj 132 150 -~;
#X obj 150 101 / 100;
#X floatatom 150 75 4 -100 100 0 - - - 0;
#X obj 150 264 / 100;
#X floatatom 150 238 4 -100 100 0 - - - 0;
#X obj 132 291 *~;
#X obj 204 178 wrap~;
#X obj 204 207 -~ 0.5;
#X obj 204 150 -~;
#X obj 222 102 / 100;
#X floatatom 222 76 4 -100 100 0 - - - 0;
#X obj 222 264 / 100;
#X floatatom 222 238 4 -100 100 0 - - - 0;
#X obj 204 292 *~;
#X obj 275 178 wrap~;
#X obj 275 207 -~ 0.5;
#X obj 275 150 -~;
#X obj 293 103 / 100;
#X floatatom 293 77 4 -100 100 0 - - - 0;
#X obj 293 264 / 100;
#X floatatom 293 238 4 -100 100 0 - - - 0;
#X obj 275 293 *~;
#X text 155 49 -- PHASES (percent) --;
#X text 330 238 AMPLITUDES (percent);
#X obj 186 328 +~;
#X obj 187 354 +~;
#X obj 238 357 tgl 17 0 empty empty empty 0 -6 0 8 #dfdfdf #000000
#000000 0 1;
#X obj 44 96 phasor~ 88.2;
#X obj 238 381 metro 193;
#X text 41 567 If the amplitudes sum to zero (with negative ones to
balance positive ones) \, the slope of each linear segment becomes
zero. Otherwise \, the segments have just enough slope to make up for
the three jumps and get to the same starting value after each cycle.
;
#X text 41 499 Here we combine three sawtooth waves with controllable
relative phases and amplitudes (in percent \, between -100 and 100.)
Each sawtooth wave gives rise to one jump (upward or downward) per
cycle.;
#X text 38 13 MAKING TRAPEZOIDAL WAVES FROM SAWTOOTH WAVES;
#X obj 514 31 declare -stdpath ./;
#X connect 0 0 1 0;
#X connect 1 0 12 0;
#X connect 7 0 0 0;
#X connect 8 0 7 1;
#X connect 9 0 8 0;
#X connect 10 0 12 1;
#X connect 11 0 10 0;
#X connect 12 0 31 0;
#X connect 13 0 14 0;
#X connect 14 0 20 0;
#X connect 15 0 13 0;
#X connect 16 0 15 1;
#X connect 17 0 16 0;
#X connect 18 0 20 1;
#X connect 19 0 18 0;
#X connect 20 0 31 1;
#X connect 21 0 22 0;
#X connect 22 0 28 0;
#X connect 23 0 21 0;
#X connect 24 0 23 1;
#X connect 25 0 24 0;
#X connect 26 0 28 1;
#X connect 27 0 26 0;
#X connect 28 0 32 1;
#X connect 31 0 32 0;
#X connect 32 0 6 0;
#X connect 32 0 5 0;
#X connect 32 0 5 1;
#X connect 33 0 35 0;
#X connect 34 0 7 0;
#X connect 34 0 15 0;
#X connect 34 0 23 0;
#X connect 35 0 6 0;
