The ConstantSourceNode interface—part of the Web Audio API—represents
audio source (based upon web.audio.AudioScheduledSourceNode
)
output is single unchanging value. This makes it useful for cases
which you need a constant value coming in from an audio source.
addition, it can be used like a constructible web.audio.AudioParam
automating the value of its offset
or by connecting another
to it; see Controlling multiple parameters with ConstantSourceNode.
The ConstantSourceNode interface—part of the Web Audio API—represents audio source (based upon `web.audio.AudioScheduledSourceNode`) output is single unchanging value. This makes it useful for cases which you need a constant value coming in from an audio source. addition, it can be used like a constructible `web.audio.AudioParam` automating the value of its `offset` or by connecting another to it; see Controlling multiple parameters with ConstantSourceNode.
(constructor & args)
Constructor.
The ConstantSourceNode() constructor creates a new web.audio.ConstantSourceNode
object instance, representing an audio source which constantly outputs samples whose values are always the same.
context
An web.audio.AudioContext
representing the audio context you want the node to be associated with.
options
A ConstantSourceOptions dictionary object defining the properties you want the ConstantSourceNode to have:
offset: A read-only web.audio.AudioParam
specifying the constant value generated by the source. The default is 1.0. The normal range is -1.0 to 1.0, but the value can be anywhere in the range from -Infinity to +Infinity.
See also: https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode
Constructor. The ConstantSourceNode() constructor creates a new `web.audio.ConstantSourceNode` object instance, representing an audio source which constantly outputs samples whose values are always the same. context An `web.audio.AudioContext` representing the audio context you want the node to be associated with. options A ConstantSourceOptions dictionary object defining the properties you want the ConstantSourceNode to have: offset: A read-only `web.audio.AudioParam` specifying the constant value generated by the source. The default is 1.0. The normal range is -1.0 to 1.0, but the value can be anywhere in the range from -Infinity to +Infinity. See also: `https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode`
(offset this)
Property.
[Read Only]
The read-only offset property of the web.audio.ConstantSourceNode
returns a web.audio.AudioParam
object indicating the numeric
value which is always returned by the source when asked for the
sample.
`let offsetParameter = ConstantAudioNode.offset;
let offset = ConstantSourceNode.offset.value; ConstantSourceNode.offset.value = newValue;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/offset
Property. [Read Only] The read-only offset property of the `web.audio.ConstantSourceNode` returns a `web.audio.AudioParam` object indicating the numeric value which is always returned by the source when asked for the sample. `let offsetParameter = ConstantAudioNode.offset; let offset = ConstantSourceNode.offset.value; ConstantSourceNode.offset.value = newValue;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/offset`
(onended this)
Property.
The onended event handler for the AudioScheduledSourceNode interface
an EventHandler
to be executed when the ended event occurs
the node. This event is sent to the node when the concrete interface
as web.audio.AudioBufferSourceNode
, web.audio.OscillatorNode
,
web.audio.ConstantSourceNode
) determines that it has stopped
AudioScheduledSourceNode.onended = EventHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended
Property. The onended event handler for the AudioScheduledSourceNode interface an `EventHandler` to be executed when the ended event occurs the node. This event is sent to the node when the concrete interface as `web.audio.AudioBufferSourceNode`, `web.audio.OscillatorNode`, `web.audio.ConstantSourceNode`) determines that it has stopped `AudioScheduledSourceNode.onended = EventHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended`
(set-onended! this val)
Property.
The onended event handler for the AudioScheduledSourceNode interface
an EventHandler
to be executed when the ended event occurs
the node. This event is sent to the node when the concrete interface
as web.audio.AudioBufferSourceNode
, web.audio.OscillatorNode
,
web.audio.ConstantSourceNode
) determines that it has stopped
AudioScheduledSourceNode.onended = EventHandler;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended
Property. The onended event handler for the AudioScheduledSourceNode interface an `EventHandler` to be executed when the ended event occurs the node. This event is sent to the node when the concrete interface as `web.audio.AudioBufferSourceNode`, `web.audio.OscillatorNode`, `web.audio.ConstantSourceNode`) determines that it has stopped `AudioScheduledSourceNode.onended = EventHandler;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended`
(start this & args)
Method.
js.undefined
AudioScheduledSourceNode.start([when [, offset [, duration]]]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start
Method. `js.undefined` `AudioScheduledSourceNode.start([when [, offset [, duration]]]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start`
(stop this & args)
Method.
The stop() method on web.audio.AudioScheduledSourceNode
schedules
sound to cease playback at the specified time. If no time is
then the sound stops playing immediately.
AudioScheduledSourceNode.stop([when]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop
Method. The stop() method on `web.audio.AudioScheduledSourceNode` schedules sound to cease playback at the specified time. If no time is then the sound stops playing immediately. `AudioScheduledSourceNode.stop([when]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close