OscillatorNode class
The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- OscillatorNode(BaseAudioContext context, [OscillatorOptions? options])
-
factory
Properties
-
addEventListener
→ ({void Function<
K$>(AudioScheduledSourceNodeEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension
Overload accessor: $1, $2no setter - addEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
addEventListener
→ ({void Function<
K$>(AudioScheduledSourceNodeEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
Overload accessor: $1, $2no setter - channelCount ↔ num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - channelCountMode ↔ ChannelCountMode
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - channelInterpretation ↔ ChannelInterpretation
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referencegetter/setter pair - connect → ({void Function(AudioParam destinationParam, [num? output]) $1, AudioNode Function(AudioNode destinationNode, [num? output, num? input]) $2})
-
Available on AudioNode, provided by the AudioNode$Typings extension
Overload accessor: $1, $2no setter - context → BaseAudioContext
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - detune → AudioParam
-
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
MDN Referenceno setter - disconnect → ({void Function() $1, void Function(num output) $2, void Function(AudioNode destinationNode) $3, void Function(AudioParam destinationParam) $4, void Function(AudioNode destinationNode, num output) $5, void Function(AudioParam destinationParam, num output) $6, void Function(AudioNode destinationNode, num output, num input) $7})
-
Available on AudioNode, provided by the AudioNode$Typings extension
Overload accessor: $1, $2, $3, $4, $5, $6, $7no setter - dispatchEvent ↔ bool Function(Event)
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair - frequency → AudioParam
-
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
MDN Referenceno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- numberOfInputs → num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - numberOfOutputs → num
-
Available on AudioNode, provided by the AudioNode$Typings extension
MDN Referenceno setter - onended ↔ dynamic Function(Event)?
-
Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension
MDN Referencegetter/setter pair -
removeEventListener
→ ({void Function<
K$>(AudioScheduledSourceNodeEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension
Overload accessor: $1, $2no setter - removeEventListener ↔ void Function(String, [Object?, Object?])
-
Available on EventTarget, provided by the EventTarget$Typings extension
getter/setter pair -
removeEventListener
→ ({void Function<
K$>(AudioScheduledSourceNodeEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
Overload accessor: $1, $2no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setPeriodicWave ↔ void Function(PeriodicWave)
-
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
getter/setter pair - start ↔ void Function([num?])
-
Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension
getter/setter pair - stop ↔ void Function([num?])
-
Available on AudioScheduledSourceNode, provided by the AudioScheduledSourceNode$Typings extension
getter/setter pair - type ↔ OscillatorType
-
Available on OscillatorNode, provided by the OscillatorNode$Typings extension
MDN Referencegetter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited