Dart SDK
dart:web_audio
OscillatorNode
class
OscillatorNode
Constants
Properties
Methods
Constants
endedEvent
Properties
detune
frequency
type
onEnded
on
channelCount
channelCountMode
channelInterpretation
context
numberOfInputs
numberOfOutputs
Methods
noteOff
noteOn
setPeriodicWave
start
stop
addEventListener
removeEventListener
dispatchEvent
disconnect
connectNode
connectParam
(Not documented.)
Annotations
DocsEditable()
DomName('OscillatorNode')
Experimental()
Extends
Object
EventTarget
AudioNode
AudioSourceNode
OscillatorNode
Constants
EventStreamProvider
<
Event
>
endedEvent
=
const
EventStreamProvider
<
Event
>
('ended')
const
Static factory designed to expose ended events to event handlers that are not necessarily instances of
OscillatorNode
.
Properties
AudioParam
detune
read-only
AudioParam
frequency
read-only
String
type
read / write
Stream
<
Event
>
onEnded
read-only
Stream of ended events handled by this [OscillatorNode].
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
int
channelCount
read / write ,
inherited
String
channelCountMode
read / write ,
inherited
String
channelInterpretation
read / write ,
inherited
AudioContext
context
read-only ,
inherited
int
numberOfInputs
read-only ,
inherited
int
numberOfOutputs
read-only ,
inherited
Methods
noteOff
(
num
when
) →
void
noteOn
(
num
when
) →
void
setPeriodicWave
(
PeriodicWave
periodicWave
) →
void
start
(
[
num
when
]) →
void
stop
(
[
num
when
]) →
void
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited
disconnect
(
int
output
) →
void
inherited
connectNode
(
AudioNode
destination
, [
int
output
=
0
,
int
input
=
0
]) →
void
inherited
connectParam
(
AudioParam
destination
, [
int
output
=
0
]) →
void
inherited