Liking cljdoc? Tell your friends :D

audio.AudioBufferSourceNode

The AudioBufferSourceNode interface is an audio.AudioScheduledSourceNode represents an audio source consisting of in-memory audio data, in an audio.AudioBuffer. It's especially useful for playing audio which has particularly stringent timing accuracy requirements, as for sounds that must match a specific rhythm and can be kept memory rather than being played from disk or the network.

The AudioBufferSourceNode interface is an `audio.AudioScheduledSourceNode`
represents an audio source consisting of in-memory audio data,
in an `audio.AudioBuffer`. It's especially useful for playing
audio which has particularly stringent timing accuracy requirements,
as for sounds that must match a specific rhythm and can be kept
memory rather than being played from disk or the network.
raw docstring

buffercljs

(buffer this)

Property.

The buffer property of the audio.AudioBufferSourceNode interface the ability to play back audio using an audio.AudioBuffer as source of the sound data.

AudioBufferSourceNode.buffer = soundBuffer;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer

Property.

The buffer property of the `audio.AudioBufferSourceNode` interface
the ability to play back audio using an `audio.AudioBuffer` as
source of the sound data.

`AudioBufferSourceNode.buffer = soundBuffer;`

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

constructorcljs

Constructor.

The AudioBufferSourceNode() constructor creates a new audio.AudioBufferSourceNode object instance.

Inherits parameters from the audio.AudioNodeOptions dictionary.

context A reference to an audio.AudioContext. options Optional Options are as follows:

buffer: An instance of audio.AudioBuffer to be played. detune: A value in cents to modulate the speed of audio stream rendering. Its nominal range is (-∞ to ∞). The default is 0. loop: A boolean indicating whether the audio should play in a loop. The default is false. If the loop is dynamically modified during playback, the new value will take effect on the next processing block of audio. loopEnd: An optional value, in seconds, where looping should end if the loop attribute is true. The default is 0. Its value is exclusive to the content of the loop. The sample frames, comprising the loop, run from the values loopStart to loopEnd-(1/sampleRate). It's sensible to set this to a value between 0 and the duration of the buffer. If loopEnd is less than 0, looping will end at 0. If loopEnd is greater than the duration of the buffer, looping will end at the end of the buffer. This attribute is converted to an exact sample frame offset within the buffer, by multiplying by the buffer's sample rate and rounding to the nearest integer value. Thus, its behavior is independent of the value of the playbackRate parameter.

loopStart: An optional value in seconds, where looping should end if the loop attribute is true. The default is 0. It's sensible to set this to a value between 0 and the duration of the buffer. If loopStart is less than 0, looping will begin at 0. If loopStart is greater than the duration of the buffer, looping will begin at the end of the buffer. This attribute is converted to an exact sample frame offset within the buffer, by multiplying by the buffer's sample rate and rounding to the nearest integer value. Thus, its behavior is independent of the value of the playbackRate parameter. playbackRate: The speed at which to render the audio stream. Its default value is 1. This parameter is k-rate. This is a compound parameter with detune. Its nominal range is (-∞ to ∞).

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

Constructor.

The AudioBufferSourceNode() constructor creates a new `audio.AudioBufferSourceNode` object instance.

Inherits parameters from the `audio.AudioNodeOptions` dictionary.


context
A reference to an `audio.AudioContext`.
options Optional
Options are as follows:

buffer: An instance of `audio.AudioBuffer` to be played.
detune: A value in cents to modulate the speed of audio stream rendering. Its nominal range is (-∞ to ∞). The default is 0.
loop: A boolean indicating whether the audio should play in a loop. The default is false. If the loop is dynamically modified during playback, the new value will take effect on the next processing block of audio.
loopEnd: An optional value, in seconds, where looping should end if the loop attribute is true. The default is 0. Its value is exclusive to the content of the loop. The sample frames, comprising the loop, run from the values loopStart to loopEnd-(1/sampleRate). It's sensible to set this to a value between 0 and the duration of the buffer. If loopEnd is less than 0, looping will end at 0. If loopEnd is greater than the duration of the buffer, looping will end at the end of the buffer. This attribute is converted to an exact sample frame offset within the buffer, by multiplying by the buffer's sample rate and rounding to the nearest integer value. Thus, its behavior is independent of the value of the playbackRate parameter.



loopStart: An optional value in seconds, where looping should end if the loop attribute is true. The default is 0. It's sensible to set this to a value between 0 and the duration of the buffer. If loopStart is less than 0, looping will begin at 0. If loopStart is greater than the duration of the buffer, looping will begin at the end of the buffer. This attribute is converted to an exact sample frame offset within the buffer, by multiplying by the buffer's sample rate and rounding to the nearest integer value. Thus, its behavior is independent of the value of the playbackRate parameter.
playbackRate: The speed at which to render the audio stream. Its default value is 1. This parameter is k-rate. This is a compound parameter with detune. Its nominal range is (-∞ to ∞).

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

detunecljs

(detune this)

Property.

The detune property of the audio.AudioBufferSourceNode interface a k-rate audio.AudioParam representing detuning of oscillation cents.

`var source = audioCtx.createBufferSource(); source.detune.value = 100; // value in cents

Note: Though the AudioParam returned is read-only, the value it represents is not.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune

Property.

The detune property of the `audio.AudioBufferSourceNode` interface
a k-rate `audio.AudioParam` representing detuning of oscillation
cents.

`var source = audioCtx.createBufferSource();
source.detune.value = 100; // value in cents


Note: Though the AudioParam returned is read-only, the value it represents is not.`

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

loopcljs

(loop this)

Property.

The loop property's default value is false.

var loopingEnabled = AudioBufferSourceNode.loop; AudioBufferSourceNode.loop = true | false;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop

Property.

The loop property's default value is false.

`var loopingEnabled = AudioBufferSourceNode.loop;
AudioBufferSourceNode.loop = true | false;`

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

loop-endcljs

(loop-end this)

Property.

A floating-point number indicating the offset, in seconds, into audio buffer at which each loop will loop return to the beginning the loop (that is, the current play time gets reset to audio.AudioBufferSourceNode.loopStart). property is only used if the web.loop property is true.

`AudioBufferSourceNode.loopEnd = endOffsetInSeconds;

var endOffsetInSeconds = AudioBufferSourceNode.loopEnd;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd

Property.

A floating-point number indicating the offset, in seconds, into
audio buffer at which each loop will loop return to the beginning
the loop (that is, the current play time gets reset to `audio.AudioBufferSourceNode.loopStart`).
property is only used if the `web.loop` property is true.

`AudioBufferSourceNode.loopEnd = endOffsetInSeconds;

var endOffsetInSeconds = AudioBufferSourceNode.loopEnd;`

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

loop-startcljs

(loop-start this)

Property.

The loopStart property of the audio.AudioBufferSourceNode interface a floating-point value indicating, in seconds, where in the audio.AudioBuffer restart of the play must happen.

`AudioBufferSourceNode.loopStart = startOffsetInSeconds;

startOffsetInSeconds = AudioBufferSourceNode.loopStart;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart

Property.

The loopStart property of the `audio.AudioBufferSourceNode` interface
a floating-point value indicating, in seconds, where in the `audio.AudioBuffer`
restart of the play must happen.

`AudioBufferSourceNode.loopStart = startOffsetInSeconds;

startOffsetInSeconds = AudioBufferSourceNode.loopStart;`

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

playback-ratecljs

(playback-rate this)

Property.

The playbackRate property of the audio.AudioBufferSourceNode Is a k-rate audio.AudioParam that defines the speed at which audio asset will be played.

AudioBufferSourceNode.playbackRate.value = playbackRateProportion;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate

Property.

The playbackRate property of the `audio.AudioBufferSourceNode`
Is a k-rate `audio.AudioParam` that defines the speed at which
audio asset will be played.

`AudioBufferSourceNode.playbackRate.value = playbackRateProportion;`

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

set-buffer!cljs

(set-buffer! this val)

Property.

The buffer property of the audio.AudioBufferSourceNode interface the ability to play back audio using an audio.AudioBuffer as source of the sound data.

AudioBufferSourceNode.buffer = soundBuffer;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer

Property.

The buffer property of the `audio.AudioBufferSourceNode` interface
the ability to play back audio using an `audio.AudioBuffer` as
source of the sound data.

`AudioBufferSourceNode.buffer = soundBuffer;`

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

set-detune!cljs

(set-detune! this val)

Property.

The detune property of the audio.AudioBufferSourceNode interface a k-rate audio.AudioParam representing detuning of oscillation cents.

`var source = audioCtx.createBufferSource(); source.detune.value = 100; // value in cents

Note: Though the AudioParam returned is read-only, the value it represents is not.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune

Property.

The detune property of the `audio.AudioBufferSourceNode` interface
a k-rate `audio.AudioParam` representing detuning of oscillation
cents.

`var source = audioCtx.createBufferSource();
source.detune.value = 100; // value in cents


Note: Though the AudioParam returned is read-only, the value it represents is not.`

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

set-loop!cljs

(set-loop! this val)

Property.

The loop property's default value is false.

var loopingEnabled = AudioBufferSourceNode.loop; AudioBufferSourceNode.loop = true | false;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop

Property.

The loop property's default value is false.

`var loopingEnabled = AudioBufferSourceNode.loop;
AudioBufferSourceNode.loop = true | false;`

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

set-loop-end!cljs

(set-loop-end! this val)

Property.

A floating-point number indicating the offset, in seconds, into audio buffer at which each loop will loop return to the beginning the loop (that is, the current play time gets reset to audio.AudioBufferSourceNode.loopStart). property is only used if the web.loop property is true.

`AudioBufferSourceNode.loopEnd = endOffsetInSeconds;

var endOffsetInSeconds = AudioBufferSourceNode.loopEnd;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd

Property.

A floating-point number indicating the offset, in seconds, into
audio buffer at which each loop will loop return to the beginning
the loop (that is, the current play time gets reset to `audio.AudioBufferSourceNode.loopStart`).
property is only used if the `web.loop` property is true.

`AudioBufferSourceNode.loopEnd = endOffsetInSeconds;

var endOffsetInSeconds = AudioBufferSourceNode.loopEnd;`

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

set-loop-start!cljs

(set-loop-start! this val)

Property.

The loopStart property of the audio.AudioBufferSourceNode interface a floating-point value indicating, in seconds, where in the audio.AudioBuffer restart of the play must happen.

`AudioBufferSourceNode.loopStart = startOffsetInSeconds;

startOffsetInSeconds = AudioBufferSourceNode.loopStart;`

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart

Property.

The loopStart property of the `audio.AudioBufferSourceNode` interface
a floating-point value indicating, in seconds, where in the `audio.AudioBuffer`
restart of the play must happen.

`AudioBufferSourceNode.loopStart = startOffsetInSeconds;

startOffsetInSeconds = AudioBufferSourceNode.loopStart;`

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

set-playback-rate!cljs

(set-playback-rate! this val)

Property.

The playbackRate property of the audio.AudioBufferSourceNode Is a k-rate audio.AudioParam that defines the speed at which audio asset will be played.

AudioBufferSourceNode.playbackRate.value = playbackRateProportion;

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate

Property.

The playbackRate property of the `audio.AudioBufferSourceNode`
Is a k-rate `audio.AudioParam` that defines the speed at which
audio asset will be played.

`AudioBufferSourceNode.playbackRate.value = playbackRateProportion;`

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

startcljs

(start this & args)

Method.

web.undefined.

AudioBufferSourceNode.start([when][, offset][, duration]);

See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start

Method.

`web.undefined`.

`AudioBufferSourceNode.start([when][, offset][, duration]);`

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

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

× close