#N canvas 368 112 644 514 10;
#X floatatom 33 62 0 0 0 0 - - -;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-difference 882 float 0;
#X coords 0 1.02 882 -1.02 200 130 1;
#X restore 415 341 graph;
#X text 19 37 frequency;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-phasor1 882 float 0;
#X coords 0 1.02 882 -1.02 200 130 1;
#X restore 415 40 graph;
#X obj 49 154 phasor~ 0;
#X obj 49 130 + 0.2;
#X obj 33 204 -~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-phasor2 882 float 0;
#X coords 0 1.02 882 -1.02 200 130 1;
#X restore 415 192 graph;
#X text 24 304 This patch demonstrates pulse width modulation \, which
is accomplished simply by subtracting two sawtooth waves at a varying
phase difference. Here their frequencies are set to differ by 1/5 Hz.
so that the relative phase wanders continuously.;
#X text 420 473 ---- 0.02 seconds ----;
#X obj 34 245 output~;
#X obj 138 122 tabwrite~ \$0-phasor1;
#X obj 138 180 tabwrite~ \$0-phasor2;
#X obj 138 234 tabwrite~ \$0-difference;
#X obj 33 95 phasor~;
#X obj 138 80 metro 193;
#X obj 138 60 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X text 157 58 <-- start/stop graphing;
#X obj 1 1 cnv 15 445 20 empty \$0-pddp.cnv.header classical_pulse_width_modulation
20 10 1 18 -261139 -33289 0;
#X obj 407 2 pddp/pddplink http://puredata.info/dev/pddp -text pddp
;
#X obj 1 492 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 classical pulse width modulation;
#X restore 392 494 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 pulse width modulation- Related Help Documents;
#X text 19 37 links:;
#X restore 103 494 pd References;
#X obj 6 494 pddp/pddplink ../5.reference/pddp/help.pd -text help;
#X connect 0 0 5 0;
#X connect 0 0 14 0;
#X connect 4 0 6 1;
#X connect 4 0 12 0;
#X connect 5 0 4 0;
#X connect 6 0 10 0;
#X connect 6 0 10 1;
#X connect 6 0 13 0;
#X connect 14 0 6 0;
#X connect 14 0 11 0;
#X connect 15 0 11 0;
#X connect 15 0 12 0;
#X connect 15 0 13 0;
#X connect 16 0 15 0;
