Liking cljdoc? Tell your friends :D

web.audio.AudioBuffer

The AudioBuffer interface represents a short audio asset residing memory, created from an audio file using the AudioContext.decodeAudioData() or from raw data using AudioContext.createBuffer(). Once put an AudioBuffer, the audio can then be played by being passed an web.audio.AudioBufferSourceNode.

The AudioBuffer interface represents a short audio asset residing
memory, created from an audio file using the `AudioContext.decodeAudioData()`
or from raw data using `AudioContext.createBuffer()`. Once put
an AudioBuffer, the audio can then be played by being passed
an `web.audio.AudioBufferSourceNode`.
raw docstring

copy-from-channelcljs

(copy-from-channel this destination channel-number start-in-channel)

Method.

The copyFromChannel() method of the web.audio.AudioBuffer interface the audio sample data from the specified channel of the AudioBuffer a specified js.Float32Array.

myArrayBuffer.copyFromChannel(destination, channelNumber, startInChannel);

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel

Method.

The copyFromChannel() method of the `web.audio.AudioBuffer` interface
the audio sample data from the specified channel of the AudioBuffer
a specified `js.Float32Array`.

`myArrayBuffer.copyFromChannel(destination, channelNumber, startInChannel);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel`
sourceraw docstring

copy-to-channelcljs

(copy-to-channel this source channel-number start-in-channel)

Method.

The copyToChannel() method of the web.audio.AudioBuffer interface the samples to the specified channel of the AudioBuffer, from source array.

myArrayBuffer.copyToChannel(source, channelNumber, startInChannel);

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel

Method.

The copyToChannel() method of the `web.audio.AudioBuffer` interface
the samples to the specified channel of the AudioBuffer, from
source array.

`myArrayBuffer.copyToChannel(source, channelNumber, startInChannel);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel`
sourceraw docstring

durationcljs

(duration this)

Property.

[Read Only]

A double.

var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); myArrayBuffer.duration;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration

Property.

[Read Only]

A double.

`var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
myArrayBuffer.duration;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration`
sourceraw docstring

get-channel-datacljs

(get-channel-data this & args)

Method.

The getChannelData() method of the web.audio.AudioBuffer Interface a js.Float32Array containing the PCM data associated with the defined by the channel parameter (with 0 representing the first

var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); var nowBuffering = myArrayBuffer.getChannelData(channel);

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData

Method.

The getChannelData() method of the `web.audio.AudioBuffer` Interface
a `js.Float32Array` containing the PCM data associated with the
defined by the channel parameter (with 0 representing the first

`var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
var nowBuffering = myArrayBuffer.getChannelData(channel);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData`
sourceraw docstring

lengthcljs

(length this)

Property.

[Read Only]

The length property of the web.audio.AudioBuffer interface an integer representing the length, in sample-frames, of the data stored in the buffer.

var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); myArrayBuffer.length;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length

Property.

[Read Only]

The length property of the `web.audio.AudioBuffer` interface
an integer representing the length, in sample-frames, of the
data stored in the buffer.

`var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
myArrayBuffer.length;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length`
sourceraw docstring

number-of-channelscljs

(number-of-channels this)

Property.

[Read Only]

An integer.

var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); myArrayBuffer.numberOfChannels;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels

Property.

[Read Only]

An integer.

`var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
myArrayBuffer.numberOfChannels;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels`
sourceraw docstring

sample-ratecljs

(sample-rate this)

Property.

[Read Only]

A floating-point value indicating the current sample rate of buffers data, in samples per second.

var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); myArrayBuffer.sampleRate;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate

Property.

[Read Only]

A floating-point value indicating the current sample rate of
buffers data, in samples per second.

`var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
myArrayBuffer.sampleRate;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close