Reference width()

width()

Set the width of a Pulse object (an oscillator that implements Pulse Width Modulation).

Syntax

width([width])

Parameters

width
Number:

Width between the pulses (0 to 1.0, defaults to 0)

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References