Methods
addAudioWorkletModule
(
_url:string ,
_name:string
)
=>
Promise<void >
clearInterval
(
)
=>
this
createAnalyser
(
)
=>
AnalyserNode
createAudioWorkletNode
(
_name:string ,
_options?:Partial<AudioWorkletNodeOptions >
)
=>
AudioWorkletNode
createBiquadFilter
(
)
=>
BiquadFilterNode
createBuffer
(
_numberOfChannels:number ,
_length:number ,
_sampleRate:number
)
=>
AudioBuffer
createBufferSource
(
)
=>
AudioBufferSourceNode
createChannelMerger
(
_numberOfInputs?:number | undefined
)
=>
ChannelMergerNode
createChannelSplitter
(
_numberOfOutputs?:number | undefined
)
=>
ChannelSplitterNode
createConstantSource
(
)
=>
ConstantSourceNode
createConvolver
(
)
=>
ConvolverNode
createDelay
(
_maxDelayTime?:number | undefined
)
=>
DelayNode
createDynamicsCompressor
(
)
=>
DynamicsCompressorNode
createGain
(
)
=>
GainNode
createIIRFilter
(
_feedForward:number [] | Float32Array ,
_feedback:number [] | Float32Array
)
=>
IIRFilterNode
createMediaElementSource
(
_element:HTMLMediaElement
)
=>
MediaElementAudioSourceNode
createMediaStreamDestination
(
)
=>
MediaStreamAudioDestinationNode
createMediaStreamSource
(
)
=>
MediaStreamAudioSourceNode
createOscillator
(
)
=>
OscillatorNode
createPanner
(
)
=>
PannerNode
createPeriodicWave
(
_real:number [] | Float32Array ,
_imag:number [] | Float32Array ,
_constraints?:PeriodicWaveConstraints | undefined
)
=>
PeriodicWave
createStereoPanner
(
)
=>
StereoPannerNode
createWaveShaper
(
)
=>
WaveShaperNode
decodeAudioData
(
)
=>
Promise<AudioBuffer >
Invoke all of the callbacks bound to the event
with any arguments passed in.
emit
(
...args:any [] The arguments to pass to the functions listening.
)
=>
this
getConstant
(
)
=>
AudioBufferSourceNode
Returns all of the default options belonging to the class.
Add Emitter functions (on/off/emit) to the object
Remove the event listener.
off
(
event:"statechange" | "tick" , The event to stop listening to.
callback?:undefined | (args) => void The callback which was bound to the event with Emitter.on.If no callback is given, all callbacks events are removed.
)
=>
this
Bind a callback to a specific event.
on
(
event:"statechange" | "tick" , The name of the event to listen for.
callback:(args) => void The callback to invoke when the event is emitted
)
=>
this
Bind a callback which is only invoked once
once
(
event:"statechange" | "tick" , The name of the event to listen for.
callback:(args) => void The callback to invoke when the event is emitted
)
=>
this
resume
(
)
=>
Promise<void >
setInterval
(
)
=>
number
toJSON
(
)
=>
Record<string , any >
Convert the class to a string
const osc = new Tone.Oscillator();
console.log(osc.toString());
toString
(
)
=>
string