Referencia freq()

freq()

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
This page is generated from the comments in lib/addons/p5.sound.js . Please feel free to edit it and submit a pull request!

Referencias Relacionadas