[PD] Re: [PD-announce] PWM in Pd

Frank Barknecht fbar at footils.org
Fri May 26 18:16:19 CEST 2006


Hallo,

Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:

> That  example (I am looking at K01.pulse.width.mod.pd from 0.38.4)
> is very  simple, but as it is, it is not usable.  Notice how the LOW
> and HIGH  change values.  PWM needs be 0 for LOW and 1 for HIGH.

I just found a *veryvery* simple solution to get rid of the DC
wandering: Just scale the signal so that it's always larger than the
range (0,1) with e.g. [*~ 10] and then use [clip~ 0 1] to clip excess
values outside that range. Voila, DC's gone.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list