This argument selects instance for sound source.
This class (static) method retrieves resource on web by Ajax.
Optional
timeout?: numberOptional
type?: XMLHttpRequestResponseTypeThis class (static) method computes frequency from index that corresponds to 12 equal temperament.
This argument is index that corresponds to 12 equal temperament. For example, this value is between 0 and 88 in case of piano.
Return value is frequency.
This class (static) method computes frequency from frequency
property and detune
property (@see https://www.w3.org/TR/webaudio/#computedoscfrequency or https://www.w3.org/TR/webaudio/#computedfrequency).
This argument is frequency
property as instance of AudioParam
.
This argument is detune
property as instance of AudioParam
.
Return value is computed frequency (Hz).
This class (static) method computes index by octave and PitchChar
string.
This argument is octave.
This argument is PitchChar
string.
Return value is index that is computed by octave and pitch character.
This class (static) method computes playback rate from playbackRate
property and detune
property (@see https://www.w3.org/TR/webaudio/#computedplaybackrate).
This argument is playbackRate
property as instance of AudioParam
.
This argument is detune
property as instance of AudioParam
.
Return value is computed playback rate.
This class (static) method calculates minutes, seconds and milliseconds from designated time (seconds).
This argument is time (seconds).
Return value is converted time as associative array
This class (static) method decodes instance of ArrayBuffer
to instance of AudioBuffer
.
This argument is instance of AudioContext
for decodeAudioData
method.
This argument is decoded to instance of AudioBuffer
.
Optional
successCallback: ((buffer: AudioBuffer) => void)This argument is invoked on success.
Optional
errorCallback: ((error: Error) => void)This argument is invoked on failure.
Return value is instance of Promise
that has instance of AudioBuffer
.
This class (static) method gets instance of File
from DataTransfer
.
Return value is Object URL or instance of File
on success. Otherwise, it is null
.
This class (static) method shows Document
in original size from full screen.
Return value is instance of Promise
.
This class (static) method executes FFT.
This argument is instance of Float32Array
for real number.
This argument is instance of Float32Array
for imaginary number.
This argument is FFT size (power of two).
This class (static) method gets instance of File
.
Return value is Object URL or instance of File
on success. Otherwise, it is null
.
This class (static) method executes IFFT.
This argument is instance of Float32Array
for real number.
This argument is instance of Float32Array
for imaginary number.
This argument is IFFT size (power of two).
This class (static) method reads file.
This class (static) method shows designated Element
in full screen.
This argument is instance of Element
that is target of full screen.
Return value is instance of Promise
.
Class (Static) properties
This class (static) method calculates frequency from index that corresponds to 12 equal temperament.
This argument is array that contains index that corresponds to 12 equal temperament. For example, this value is between 0 and 88 in case of piano.
Return value is array that contains frequency.
This class (static) method creates text file.
This argument is string.
This argument is true
in case of getting text file as Object URL.
Return value is text file as Data URL or Object URL.
This class (static) method returns closure that gets cloned instance of Source
.
This class (static) method releases memory of unused instances.
This argument is array that contains unused instance of Source
.
This function gets instance of
Source
. This functions is overloaded for type interface and type check.