| description |
path |
<p>Start an oscillator.</p>
<p>Starting an oscillator on a user gesture will enable audio in browsers
that have a strict autoplay policy, including Chrome and most mobile
devices. See also: <code>userStartAudio()</code>.</p>
|
p5.Oscillator/start |
|
| description |
path |
<p>Stop an oscillator. Accepts an optional parameter
to determine how long (in seconds from now) until the
oscillator stops.</p>
|
p5.Oscillator/stop |
|
| description |
path |
<p>Set the amplitude between 0 and 1.0. Or, pass in an object
such as an oscillator to modulate amplitude with an audio signal.</p>
|
p5.Oscillator/amp |
|
| description |
path |
<p>Returns the value of output gain</p>
|
p5.Oscillator/getAmp |
|
| description |
path |
<p>Set frequency of an oscillator to a value. Or, pass in an object
such as an oscillator to modulate the frequency with an audio signal.</p>
|
p5.Oscillator/freq |
|
| description |
path |
<p>Returns the value of frequency of oscillator</p>
|
p5.Oscillator/getFreq |
|
| description |
path |
<p>Set type to 'sine', 'triangle', 'sawtooth' or 'square'.</p>
|
p5.Oscillator/setType |
|
| description |
path |
<p>Returns current type of oscillator eg. 'sine', 'triangle', 'sawtooth' or 'square'.</p>
|
p5.Oscillator/getType |
|
| description |
path |
<p>Connect to a p5.sound / Web Audio object.</p>
|
p5.Oscillator/connect |
|
| description |
path |
<p>Disconnect all outputs</p>
|
p5.Oscillator/disconnect |
|
| description |
path |
<p>Pan between Left (-1) and Right (1)</p>
|
p5.Oscillator/pan |
|
| description |
path |
<p>Returns the current value of panPosition , between Left (-1) and Right (1)</p>
|
p5.Oscillator/getPan |
|
| description |
path |
<p>Set the phase of an oscillator between 0.0 and 1.0.
In this implementation, phase is a delay time
based on the oscillator's current frequency.</p>
|
p5.Oscillator/phase |
|
| description |
path |
<p>Add a value to the p5.Oscillator's output amplitude,
and return the oscillator. Calling this method again
will override the initial add() with a new value.</p>
|
p5.Oscillator/add |
|
| description |
path |
<p>Multiply the p5.Oscillator's output amplitude
by a fixed value (i.e. turn it up!). Calling this method
again will override the initial mult() with a new value.</p>
|
p5.Oscillator/mult |
|
| description |
path |
<p>Scale this oscillator's amplitude values to a given
range, and return the oscillator. Calling this method
again will override the initial scale() with new values.</p>
|
p5.Oscillator/scale |
|