AudioParam class

The Web Audio API's interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). An can be set to a specific value or a change in value, and can be scheduled to happen at a specific time and following a specific pattern. Each has a list of events, initially empty, that define when and how values change. When this list is not empty, changes using the AudioParam.value attributes are ignored. This list of events allows us to schedule changes that have to happen at very precise times, using arbitrary timeline-based automation curves. The time used is the one defined in AudioContext.currentTime.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

AudioParam()
factory

Properties

automationRate AutomationRate

Available on AudioParam, provided by the PropsAudioParam extension

getter/setter pair
defaultValue double

Available on AudioParam, provided by the PropsAudioParam extension

no setter
hashCode int
The hash code for this object.
no setterinherited
maxValue double

Available on AudioParam, provided by the PropsAudioParam extension

no setter
minValue double

Available on AudioParam, provided by the PropsAudioParam extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value double

Available on AudioParam, provided by the PropsAudioParam extension

getter/setter pair

Methods

cancelAndHoldAtTime(double cancelTime) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

cancelScheduledValues(double cancelTime) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

exponentialRampToValueAtTime(double value, double endTime) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

linearRampToValueAtTime(double value, double endTime) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTargetAtTime(double target, double startTime, double timeConstant) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

setValueAtTime(double value, double startTime) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

setValueCurveAtTime(Iterable<double> values, double startTime, double duration) AudioParam

Available on AudioParam, provided by the PropsAudioParam extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited