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.
Ejemplos
Sintaxis
freq(Frequency, [rampTime], [timeFromNow])
Parámetros
Frequency
Number|Object:
Frequency in Hz or modulating signal/oscillator
rampTime
Number:
Ramp time (in seconds)
timeFromNow
Number:
Schedule this event to happen at x seconds from now
Returns
AudioParam: Frequency If no value is provided, returns the Web Audio API AudioParam that controls this oscillator's frequency
Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!