nx.js
Classes

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

ParameterType
vAutomationRate

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

MDN Reference

Parameters

ParameterType
vnumber

Returns

number

Implementation of

globalThis.AudioParam.value

Methods

cancelAndHoldAtTime()

cancelAndHoldAtTime(cancelTime): AudioParam

MDN Reference

Parameters

ParameterType
cancelTimenumber

Returns

AudioParam

Implementation of

globalThis.AudioParam.cancelAndHoldAtTime


cancelScheduledValues()

cancelScheduledValues(cancelTime): AudioParam

Cancels all scheduled future changes to the parameter at or after cancelTime.

Parameters

ParameterType
cancelTimenumber

Returns

AudioParam

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

ParameterType
valuenumber
endTimenumber

Returns

AudioParam

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

ParameterType
valuenumber
endTimenumber

Returns

AudioParam

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

ParameterType
targetnumber
startTimenumber
timeConstantnumber

Returns

AudioParam

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

ParameterType
valuenumber
startTimenumber

Returns

AudioParam

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

ParameterType
valuesIterable<number, any, any> | number[] | Float32Array
startTimenumber
durationnumber

Returns

AudioParam

Implementation of

globalThis.AudioParam.setValueCurveAtTime

See

https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime

On this page