From 111ef5570f28f282675da03c58c43bb89f7acbeb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 17 Jan 2006 05:06:52 +0000 Subject: some objects used for generating PWM signals within Pd. These were used with a MIDI->relay board to control the speed of a motor. svn path=/trunk/externals/hcs/; revision=4431 --- pwm~.pd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pwm~.pd (limited to 'pwm~.pd') diff --git a/pwm~.pd b/pwm~.pd new file mode 100644 index 0000000..81ac158 --- /dev/null +++ b/pwm~.pd @@ -0,0 +1,23 @@ +#N canvas 451 182 489 527 10; +#X obj 29 49 inlet; +#X obj 113 405 outlet~; +#X obj 113 198 phasor~; +#X obj 113 172 sig~ \$1; +#X text 79 10 after an idea from Roman Haefeli; +#X text 15 10 [pwm~]; +#X obj 366 47 inlet; +#X obj 113 226 >~; +#X text 143 229 zexy object; +#X obj 31 94 t b f; +#X msg 31 114 1; +#X obj 45 135 -; +#X text 77 113 invert so 1 = full power; +#X connect 0 0 9 0; +#X connect 2 0 7 0; +#X connect 3 0 2 0; +#X connect 6 0 2 1; +#X connect 7 0 1 0; +#X connect 9 0 10 0; +#X connect 9 1 11 1; +#X connect 10 0 11 0; +#X connect 11 0 7 1; -- cgit v1.2.1