AbstractSet this debug flag to log all events that happen in this class.
ReadonlyisAbstractlatencyAbstractlookReadonlynameThe name of the class
StaticversionThe version number semver
AbstractcurrentThe currentTime read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.
AbstractdestinationIndicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.
AbstractdrawAbstractlistenerAbstractrawAbstractsampleThe sampleRate property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.
AbstractstateThe state read-only property of the BaseAudioContext interface returns the current state of the AudioContext.
AbstracttransportAbstractaddAbstractclearAbstractclearAbstractcreateThe createAnalyser() method of the can be used to expose audio time and frequency data and create data visualizations.
AbstractcreateOptional_options: Partial<AudioWorkletNodeOptions>AbstractcreateThe createBiquadFilter() method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types.
AbstractcreateThe createBuffer() method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode.
AbstractcreateThe createBufferSource() method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object.
AbstractcreateThe createChannelMerger() method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream.
Optional_numberOfInputs: numberAbstractcreateThe createChannelSplitter() method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately.
Optional_numberOfOutputs: numberAbstractcreateThe createConstantSource() property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value.
AbstractcreateThe createConvolver() method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio.
AbstractcreateThe createDelay() method of the which is used to delay the incoming audio signal by a certain amount of time.
Optional_maxDelayTime: numberAbstractcreateThe createDynamicsCompressor() method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal.
AbstractcreateThe createGain() method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.
AbstractcreateThe createIIRFilter() method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general infinite impulse response (IIR) filter which can be configured to serve as various types of filter.
AbstractcreateAbstractcreateAbstractcreateAbstractcreateThe createOscillator() method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.
AbstractcreateThe createPanner() method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space.
AbstractcreateThe createPeriodicWave() method of the BaseAudioContext interface is used to create a PeriodicWave.
Optional_constraints: PeriodicWaveConstraintsAbstractcreateThe createStereoPanner() method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source.
AbstractcreateThe createWaveShaper() method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion.
AbstractdecodeThe decodeAudioData() method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise.
Clean up
Invoke all of the callbacks bound to the event with any arguments passed in.
The name of the event.
The arguments to pass to the functions listening.
AbstractgetAbstractimmediateProtectedlogPrints the outputs to the console log for debugging purposes.
Prints the contents only if either the object has a property
called debug set to true, or a variable called TONE_DEBUG_CLASS
is set to the name of the class.
AbstractnowRemove the event listener.
The event to stop listening to.
Optionalcallback: (...args: any[]) => void
The callback which was bound to the event with Emitter.on. If no callback is given, all callbacks events are removed.
Bind a callback to a specific event.
The name of the event to listen for.
The callback to invoke when the event is emitted
Bind a callback which is only invoked once
The name of the event to listen for.
The callback to invoke when the event is emitted
AbstractresumeAbstractsetAbstractsetStaticgetReturns all of the default options belonging to the class.
StaticmixinAdd Emitter functions (on/off/emit) to the object
Emitter gives classes which extend it the ability to listen for and emit events. Inspiration and reference from Jerome Etienne's MicroEvent. MIT (c) 2011 Jerome Etienne.