aboutsummaryrefslogtreecommitdiff
path: root/pwm-help.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 10:02:22 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 10:02:22 +0000
commit686772d4cf8bc0bec4a9ac33e0a23fd6c6d1c4de (patch)
tree880f771504b2d6533f492ed7cee183d0a512fb5d /pwm-help.pd
parent6960854d997b46424411c6c569a3aa3270e7014f (diff)
updated [pwm] to have default frequency if none is specified; added help file with visualization
svn path=/trunk/externals/hcs/; revision=5117
Diffstat (limited to 'pwm-help.pd')
-rw-r--r--pwm-help.pd54
1 files changed, 54 insertions, 0 deletions
diff --git a/pwm-help.pd b/pwm-help.pd
new file mode 100644
index 0000000..13cd764
--- /dev/null
+++ b/pwm-help.pd
@@ -0,0 +1,54 @@
+#N canvas 172 95 530 434 10;
+#X text 140 148 the argument sets the frequency;
+#X obj 88 102 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 1 1
+;
+#X obj 142 96 hsl 128 15 0 1 0 0 empty empty amount -2 -6 1 12 -261681
+-1 -1 11100 1;
+#X floatatom 149 118 5 0 0 0 - - -;
+#X text 14 20 this object does Pulse Width Modulation at the message
+rate:;
+#X text 3 101 turn on/off;
+#X obj 77 397 pddp/pddplink http://en.wikipedia.org/wiki/Pulse-width_modulation
+;
+#X text 17 376 for more info:;
+#N canvas 0 0 450 300 graph1 0;
+#X array \$0-pwm 200 float 0;
+#X coords 0 1.2 199 -0.2 200 140 1;
+#X restore 284 202 graph;
+#N canvas 727 94 454 304 display 0;
+#X obj 115 35 inlet;
+#X obj 117 265 tabwrite \$0-pwm;
+#X obj 238 127 float;
+#X obj 281 127 + 1;
+#X obj 275 157 arraysize \$0-pwm;
+#X obj 250 31 inlet;
+#X obj 356 110 bang;
+#X obj 258 181 mod;
+#X obj 116 103 spigot;
+#X obj 118 239 float;
+#X obj 194 204 trigger bang float;
+#X obj 237 105 metro 3;
+#X connect 0 0 8 0;
+#X connect 2 0 7 0;
+#X connect 3 0 2 1;
+#X connect 4 0 7 1;
+#X connect 5 0 6 0;
+#X connect 5 0 8 1;
+#X connect 5 0 11 0;
+#X connect 6 0 4 0;
+#X connect 7 0 3 0;
+#X connect 7 0 10 0;
+#X connect 8 0 9 1;
+#X connect 9 0 1 0;
+#X connect 10 0 9 0;
+#X connect 10 1 1 1;
+#X connect 11 0 2 0;
+#X restore 95 310 pd display guts;
+#X obj 195 283 tgl 15 0 empty empty display 0 -6 0 8 -225271 -1 -1
+1 1;
+#X obj 96 147 pwm 10;
+#X connect 1 0 11 0;
+#X connect 2 0 3 0;
+#X connect 2 0 11 1;
+#X connect 10 0 9 1;
+#X connect 11 0 9 0;