Adjusts the phase of the oscillator. Effectively, this changes the starting point of waveform. You might want to adjust the phase of an oscillator in more advanced sound design tasks when layering multiple oscillators to produce a particular instrument or timbre.
Syntax
phase(phase)
Parameters
phase
Number: phase of the oscillator in degrees (0-360).
Notice any errors or typos? Please let us know. Please feel free to edit src/sources/Oscillator.js and open a pull request!
Related References
getAudioContext
Get the window's audio context.
setAudioContext
Sets the AudioContext to a specified context to enable cross library compatibility.
userStartAudio
starts audio processing in the window when called from a user interaction (such as mousePressed()).
userStopAudio
stops audio processing in the browser window.