#N canvas 376 25 605 568 10;
#X obj 137 153 wrap~;
#X obj 137 175 -~ 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 391 185 graph;
#X text 422 318 ---- 0.02 seconds ----;
#X obj 53 355 output~;
#X obj 147 389 tabwrite~ \$0-sum;
#X obj 137 131 -~;
#X obj 159 90 / 100;
#X floatatom 159 69 4 -100 100 0 - - -, f 4;
#X obj 158 240 / 100;
#X floatatom 158 219 4 -100 100 0 - - -, f 4;
#X obj 136 262 *~;
#X obj 209 154 wrap~;
#X obj 209 176 -~ 0.5;
#X obj 209 132 -~;
#X obj 231 91 / 100;
#X floatatom 231 70 4 -100 100 0 - - -, f 4;
#X obj 230 241 / 100;
#X floatatom 230 220 4 -100 100 0 - - -, f 4;
#X obj 208 263 *~;
#X obj 280 155 wrap~;
#X obj 280 177 -~ 0.5;
#X obj 280 133 -~;
#X obj 302 92 / 100;
#X floatatom 302 71 4 -100 100 0 - - -, f 4;
#X obj 301 242 / 100;
#X floatatom 301 221 4 -100 100 0 - - -, f 4;
#X obj 279 264 *~;
#X text 138 50 -- PHASES (percent) --;
#X text 164 200 AMPLITUDES (percent);
#X obj 111 288 +~;
#X obj 112 314 +~;
#X obj 158 341 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 25 97 phasor~ 88.2;
#X obj 158 363 metro 193;
#X text 19 416 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 obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header making_trapezoidal_waves...
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X text 131 27 ... from sawtooth waves;
#X obj 1 546 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.39. 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 making trapezoidal waves;
#X restore 392 548 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 trapezoidal waves- Related Help Documents;
#X text 19 37 links:;
#X restore 103 548 pd References;
#X obj 6 548 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X text 18 469 If the amplitudes sum to zero (with negative ones to
balance positive ones) \, the slope of each linear segment becomes
zero. Otherrwise \, the segments have just enough slope to make up
for the three jumps ane get to the same starting value after each cycle.
;
#X connect 0 0 1 0;
#X connect 1 0 11 0;
#X connect 6 0 0 0;
#X connect 7 0 6 1;
#X connect 8 0 7 0;
#X connect 9 0 11 1;
#X connect 10 0 9 0;
#X connect 11 0 30 0;
#X connect 12 0 13 0;
#X connect 13 0 19 0;
#X connect 14 0 12 0;
#X connect 15 0 14 1;
#X connect 16 0 15 0;
#X connect 17 0 19 1;
#X connect 18 0 17 0;
#X connect 19 0 30 1;
#X connect 20 0 21 0;
#X connect 21 0 27 0;
#X connect 22 0 20 0;
#X connect 23 0 22 1;
#X connect 24 0 23 0;
#X connect 25 0 27 1;
#X connect 26 0 25 0;
#X connect 27 0 31 1;
#X connect 30 0 31 0;
#X connect 31 0 5 0;
#X connect 31 0 4 0;
#X connect 31 0 4 1;
#X connect 32 0 34 0;
#X connect 33 0 6 0;
#X connect 33 0 14 0;
#X connect 33 0 22 0;
#X connect 34 0 5 0;
