PulseDPW:
Filter:
Classes (extension) | UGens > Generators

PulseDPW : Object
ExtensionExtension

super-efficient square-wave oscillator with low aliasing

Description

Use this just like the Pulse UGen - as with SawDPW, this uses the "Differentiated Parabolic Wave" technique to create a waveform extremely efficiently and with low (but not zero) aliasing.

freq - Frequency in Hertz (control rate)

width - Pulse width ratio from zero to one. 0.5 makes a square wave. This cannot be modulated.

This is actually a "pseudo-ugen" based on SawDPW rather than a separate UGen in itself, but is still very efficient. Compare the CPU usage in these examples:

Class Methods

Inherited class methods

Undocumented class methods

PulseDPW.ar(freq: 440.0, width: 0.5, mul: 1.0, add: 0.0)

PulseDPW.kr(freq: 440.0, width: 0.5, mul: 1.0, add: 0.0)

PulseDPW.new(rate: 'ar', freq: 440.0, width: 0.5, mul: 1.0, add: 0.0)

Instance Methods

Inherited instance methods

Examples