AudioParam
An audio-related parameter of an AudioNode, which can be set to a specific value or scheduled to change over time with sample-accurate automation.
See
https://developer.mozilla.org/docs/Web/API/AudioParam
Implements
Accessors
automationRate
get automationRate(): AutomationRate
See
https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate
set automationRate(v): void
Parameters
| Parameter | Type |
|---|---|
v | AutomationRate |
Returns
AutomationRate
Implementation of
globalThis.AudioParam.automationRate
defaultValue
get defaultValue(): number
See
https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue
Returns
number
Implementation of
globalThis.AudioParam.defaultValue
maxValue
get maxValue(): number
See
https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue
Returns
number
Implementation of
globalThis.AudioParam.maxValue
minValue
get minValue(): number
See
https://developer.mozilla.org/docs/Web/API/AudioParam/minValue
Returns
number
Implementation of
globalThis.AudioParam.minValue
value
get value(): number
The current value of the parameter, taking any scheduled automation into account.
See
https://developer.mozilla.org/docs/Web/API/AudioParam/value
set value(v): void
Parameters
| Parameter | Type |
|---|---|
v | number |
Returns
number
Implementation of
globalThis.AudioParam.value
Methods
cancelAndHoldAtTime()
cancelAndHoldAtTime(cancelTime): AudioParam
Parameters
| Parameter | Type |
|---|---|
cancelTime | number |
Returns
Implementation of
globalThis.AudioParam.cancelAndHoldAtTime
cancelScheduledValues()
cancelScheduledValues(cancelTime): AudioParam
Cancels all scheduled future changes to the parameter at or after
cancelTime.
Parameters
| Parameter | Type |
|---|---|
cancelTime | number |
Returns
Implementation of
globalThis.AudioParam.cancelScheduledValues
See
https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues
exponentialRampToValueAtTime()
exponentialRampToValueAtTime(value, endTime): AudioParam
Schedules a gradual exponential change of the parameter value, ramping
from the previous event to value at endTime.
Parameters
| Parameter | Type |
|---|---|
value | number |
endTime | number |
Returns
Implementation of
globalThis.AudioParam.exponentialRampToValueAtTime
See
https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime
linearRampToValueAtTime()
linearRampToValueAtTime(value, endTime): AudioParam
Schedules a gradual linear change of the parameter value, ramping from
the previous event to value at endTime.
Parameters
| Parameter | Type |
|---|---|
value | number |
endTime | number |
Returns
Implementation of
globalThis.AudioParam.linearRampToValueAtTime
See
https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime
setTargetAtTime()
setTargetAtTime(target, startTime, timeConstant): AudioParam
Schedules the start of an exponential approach to the target value
starting at startTime, decaying with timeConstant.
Parameters
| Parameter | Type |
|---|---|
target | number |
startTime | number |
timeConstant | number |
Returns
Implementation of
globalThis.AudioParam.setTargetAtTime
See
https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime
setValueAtTime()
setValueAtTime(value, startTime): AudioParam
Schedules an instant change of the parameter value at a precise time.
Parameters
| Parameter | Type |
|---|---|
value | number |
startTime | number |
Returns
Implementation of
globalThis.AudioParam.setValueAtTime
See
https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime
setValueCurveAtTime()
setValueCurveAtTime(values, startTime, duration): AudioParam
Schedules the parameter value to follow a curve of values, scaled to fit
into the interval [startTime, startTime + duration].
Parameters
| Parameter | Type |
|---|---|
values | Iterable<number, any, any> | number[] | Float32Array |
startTime | number |
duration | number |
Returns
Implementation of
globalThis.AudioParam.setValueCurveAtTime
See
https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime