Hans-Christoph Steiner wrote:
Aliasing is not so relevant for the quick and dirty PWM control
signal. But it would be nice to have a clean signal. I suppose I
should put a low pass to prevent that.Or does someone have a better algorithm for a bandwidth limited PWM?
I'm thinking of an object that uses something like a tanh curve output at the desired frequency. (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/tanh.html) Something based on osc~, it would have inputs for frequency, phase, pulsewidth and bandwidth; has that been done yet?
Martin