Reference p5.SqrOsc

p5.SqrOsc

Constructor: new p5.SqrOsc(). This creates a Square Wave Oscillator and is equivalent to new p5.Oscillator('square') or creating a p5.Oscillator and then calling its method setType('square'). See p5.Oscillator for methods.

Syntax

p5.SqrOsc([freq])

Parameters

freq
Number:

Set the frequency

This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Related References