#N canvas 776 327 400 275 12;
#X obj 7 38 inlet;
#X obj 7 10 cnv 15 180 25 empty empty Basic_LF_Square_Wave 20 12 0
14 -228856 -66577 0;
#X text 47 38 freq;
#X obj 24 67 loadbang;
#X obj 7 94 f \$1;
#X obj 7 248 outlet~;
#X obj 7 115 phasor~;
#X obj 7 170 expr~ $v1 > $v2;
#X obj 129 76 loadbang;
#X msg 129 100 0.5;
#X obj 109 37 inlet;
#X obj 7 194 *~ 2;
#X obj 7 218 -~ 1;
#X text 120 167 This expression outputs a 1 if ture \, 0 if false.
In this case \, it outputs a 1 when the left input is bigger than the
right input. Otherwise it outpus 0 This gives us a square wave. By
changing the threshold (right value) \, we can change the duty cycle.
, f 38;
#X connect 0 0 4 0;
#X connect 3 0 4 0;
#X connect 4 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 11 0;
#X connect 8 0 9 0;
#X connect 9 0 7 1;
#X connect 10 0 7 1;
#X connect 11 0 12 0;
#X connect 12 0 5 0;
