Liking cljdoc? Tell your friends :D

web.audio.AudioBufferSourceNode

The AudioBufferSourceNode interface is an web.audio.AudioScheduledSourceNode represents an audio source consisting of in-memory audio data, in an web.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 `web.audio.AudioScheduledSourceNode`
represents an audio source consisting of in-memory audio data,
in an `web.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 web.audio.AudioBufferSourceNode provides the ability to play back audio using an web.audio.AudioBuffer the 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 `web.audio.AudioBufferSourceNode`
provides the ability to play back audio using an `web.audio.AudioBuffer`
the 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 & args)

Constructor.

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

Inherits parameters from the web.audio.AudioNodeOptions dictionary.

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

buffer: An instance of web.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 `web.audio.AudioBufferSourceNode` object instance.

Inherits parameters from the `web.audio.AudioNodeOptions` dictionary.


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

buffer: An instance of `web.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 web.audio.AudioBufferSourceNode is a k-rate web.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 `web.audio.AudioBufferSourceNode`
is a k-rate `web.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 AudioBufferSourceNode.loopStart). property is only used if the 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 `AudioBufferSourceNode.loopStart`).
property is only used if the `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 web.audio.AudioBufferSourceNode is a floating-point value indicating, in seconds, where in the the 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 `web.audio.AudioBufferSourceNode`
is a floating-point value indicating, in seconds, where in the
the 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 web.audio.AudioBufferSourceNode Is a k-rate web.audio.AudioParam that defines the speed at the 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 `web.audio.AudioBufferSourceNode`
Is a k-rate `web.audio.AudioParam` that defines the speed at
the 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 web.audio.AudioBufferSourceNode provides the ability to play back audio using an web.audio.AudioBuffer the 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 `web.audio.AudioBufferSourceNode`
provides the ability to play back audio using an `web.audio.AudioBuffer`
the 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 web.audio.AudioBufferSourceNode is a k-rate web.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 `web.audio.AudioBufferSourceNode`
is a k-rate `web.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 AudioBufferSourceNode.loopStart). property is only used if the 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 `AudioBufferSourceNode.loopStart`).
property is only used if the `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 web.audio.AudioBufferSourceNode is a floating-point value indicating, in seconds, where in the the 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 `web.audio.AudioBufferSourceNode`
is a floating-point value indicating, in seconds, where in the
the 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 web.audio.AudioBufferSourceNode Is a k-rate web.audio.AudioParam that defines the speed at the 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 `web.audio.AudioBufferSourceNode`
Is a k-rate `web.audio.AudioParam` that defines the speed at
the 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.

js.undefined.

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

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

Method.

`js.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