Creates a Pulse object, an oscillator that implements Pulse Width Modulation. The pulse is created with two oscillators. Accepts a parameter for frequency, and to set the width between the pulses. See p5.Oscillator for a full list of methods.
Examples
Syntax
p5.Pulse([freq], [w])
Parameters
freq
Number:
Frequency in oscillations per second (Hz)
w
Number:
Width between the pulses (0 to 1.0, defaults to 0)
Methods
width
Set the width of a Pulse object (an oscillator that implements Pulse Width Modulation).
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!