Referencia p5.Pulse

p5.Pulse

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.

Ejemplos

Sintaxis

p5.Pulse([freq], [w])

Parámetros

freq
Number:

Frequency in oscillations per second (Hz)

w
Number:

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

Métodos

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!

Referencias Relacionadas