aboutsummaryrefslogtreecommitdiff
path: root/pwm.pd
diff options
context:
space:
mode:
Diffstat (limited to 'pwm.pd')
-rw-r--r--pwm.pd90
1 files changed, 44 insertions, 46 deletions
diff --git a/pwm.pd b/pwm.pd
index 227960c..e8ed634 100644
--- a/pwm.pd
+++ b/pwm.pd
@@ -1,30 +1,22 @@
-#N canvas 217 60 497 563 10;
+#N canvas 240 53 501 567 10;
#X msg 208 411 0;
#X msg 157 412 1;
#X text 281 361 duty cycle;
-#X obj 184 441 f;
-#X obj 56 30 inlet;
+#X obj 6 30 inlet;
#X obj 256 31 inlet;
-#X text 96 30 start/stop;
+#X text 46 30 start/stop;
#X obj 226 384 delay;
#X obj 157 146 select 1;
#X obj 208 168 bang;
-#X obj 56 105 t f f;
-#X obj 157 232 oneshot;
-#X msg 165 209 clear;
-#X obj 49 332 spigot;
-#X obj 49 290 bang;
-#X obj 304 246 /;
-#X obj 290 201 t b f;
+#X obj 7 332 spigot;
+#X obj 7 290 bang;
+#X obj 328 254 /;
#X msg 290 222 1000;
#X obj 290 130 loadbang;
-#X obj 49 310 delay 100;
+#X obj 7 310 delay 100;
#X obj 256 361 *;
#X obj 256 88 max 0;
#X obj 256 66 min 1;
-#X obj 272 336 r \$0-cycle_ms;
-#X obj 304 285 s \$0-cycle_ms;
-#X obj 107 289 r \$0-cycle_ms;
#X text 27 8 argument = pwm rate in Hz;
#X obj 290 177 abs;
#X obj 184 493 outlet;
@@ -33,35 +25,41 @@
;
#X text 299 32 pulse width (0-1);
#X obj 290 154 purepd/float_argument \$1 30;
-#X connect 0 0 3 0;
-#X connect 1 0 3 0;
-#X connect 1 0 14 0;
-#X connect 3 0 28 0;
-#X connect 4 0 10 0;
-#X connect 5 0 22 0;
-#X connect 7 0 0 0;
-#X connect 8 0 11 0;
-#X connect 8 1 9 0;
-#X connect 9 0 0 0;
-#X connect 9 0 12 0;
-#X connect 10 0 8 0;
-#X connect 10 1 13 1;
-#X connect 11 0 1 0;
-#X connect 11 0 7 0;
+#X obj 290 201 trigger bang float;
+#X obj 184 441 float;
+#X obj 328 293 send \$0-ms;
+#X obj 272 336 receive \$0-ms;
+#X obj 65 289 receive \$0-ms;
+#X obj 6 104 trigger float float;
+#X obj 157 232 purepd/once;
+#X connect 0 0 26 0;
+#X connect 1 0 10 0;
+#X connect 1 0 26 0;
+#X connect 3 0 30 0;
+#X connect 4 0 17 0;
+#X connect 6 0 0 0;
+#X connect 7 0 31 0;
+#X connect 7 1 8 0;
+#X connect 8 0 0 0;
+#X connect 8 0 31 1;
+#X connect 9 0 6 0;
+#X connect 9 0 1 0;
+#X connect 10 0 14 0;
+#X connect 11 0 27 0;
#X connect 12 0 11 0;
-#X connect 13 0 7 0;
-#X connect 13 0 1 0;
-#X connect 14 0 19 0;
-#X connect 15 0 24 0;
-#X connect 16 0 17 0;
-#X connect 16 1 15 1;
-#X connect 17 0 15 0;
-#X connect 18 0 32 0;
-#X connect 19 0 13 0;
-#X connect 20 0 7 1;
-#X connect 21 0 20 0;
-#X connect 22 0 21 0;
-#X connect 23 0 20 1;
-#X connect 25 0 19 1;
-#X connect 27 0 16 0;
-#X connect 32 0 27 0;
+#X connect 13 0 24 0;
+#X connect 14 0 9 0;
+#X connect 15 0 6 1;
+#X connect 16 0 15 0;
+#X connect 17 0 16 0;
+#X connect 19 0 25 0;
+#X connect 24 0 19 0;
+#X connect 25 0 12 0;
+#X connect 25 1 11 1;
+#X connect 26 0 20 0;
+#X connect 28 0 15 1;
+#X connect 29 0 14 1;
+#X connect 30 0 7 0;
+#X connect 30 1 9 1;
+#X connect 31 0 1 0;
+#X connect 31 0 6 0;