संदर्भ p5.Oscillator

p5.Oscillator

Generate Sine, Triangle, Square and Sawtooth waveforms.

उदाहरण

सिंटैक्स

p5.Oscillator([frequency], [type])

पैरामीटर्स

frequency
Number: frequency defaults to 440Hz
type
String: type of oscillator. Options: 'sine' (default), 'triangle', 'sawtooth', 'square'

मेथड्स

freq
Adjusts the frequency of the oscillator.
phase
Adjusts the phase of the oscillator.
setType
Sets the type of the oscillator.
amp
Adjust the amplitude of the Oscillator.
start
Starts the oscillator. Usually from user gesture.
stop
Stops the oscillator.
Notice any errors or typos? Please let us know. Please feel free to edit src/Oscillator.js and open a pull request!

संबंधित संदर्भ