The OscillatorNode interface represents a periodic waveform,
as a sine wave. It is an web.audio.AudioScheduledSourceNode
module that causes a specified frequency of a given wave to be
effect, a constant tone.
The OscillatorNode interface represents a periodic waveform, as a sine wave. It is an `web.audio.AudioScheduledSourceNode` module that causes a specified frequency of a given wave to be effect, a constant tone.
(detune this)
Property.
An a-rate web.audio.AudioParam
.
`var oscillator = audioCtx.createOscillator(); oscillator.detune.setValueAtTime(100, audioCtx.currentTime); // 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/OscillatorNode/detune
Property. An a-rate `web.audio.AudioParam`. `var oscillator = audioCtx.createOscillator(); oscillator.detune.setValueAtTime(100, audioCtx.currentTime); // 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/OscillatorNode/detune`
(frequency this)
Property.
An a-rate web.audio.AudioParam
.
`var oscillator = audioCtx.createOscillator(); oscillator.frequency.setValueAtTime(440, audioCtx.currentTime); // value in hertz
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/OscillatorNode/frequency
Property. An a-rate `web.audio.AudioParam`. `var oscillator = audioCtx.createOscillator(); oscillator.frequency.setValueAtTime(440, audioCtx.currentTime); // value in hertz 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/OscillatorNode/frequency`
(onended this)
Property.
The onended property of the web.audio.OscillatorNode
interface
used to set the event handler for the ended event, which fires
the tone has stopped playing.
var oscillator = audioCtx.createOscillator(); oscillator.onended = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended
Property. The onended property of the `web.audio.OscillatorNode` interface used to set the event handler for the ended event, which fires the tone has stopped playing. `var oscillator = audioCtx.createOscillator(); oscillator.onended = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended`
(set-detune! this val)
Property.
An a-rate web.audio.AudioParam
.
`var oscillator = audioCtx.createOscillator(); oscillator.detune.setValueAtTime(100, audioCtx.currentTime); // 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/OscillatorNode/detune
Property. An a-rate `web.audio.AudioParam`. `var oscillator = audioCtx.createOscillator(); oscillator.detune.setValueAtTime(100, audioCtx.currentTime); // 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/OscillatorNode/detune`
(set-frequency! this val)
Property.
An a-rate web.audio.AudioParam
.
`var oscillator = audioCtx.createOscillator(); oscillator.frequency.setValueAtTime(440, audioCtx.currentTime); // value in hertz
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/OscillatorNode/frequency
Property. An a-rate `web.audio.AudioParam`. `var oscillator = audioCtx.createOscillator(); oscillator.frequency.setValueAtTime(440, audioCtx.currentTime); // value in hertz 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/OscillatorNode/frequency`
(set-onended! this val)
Property.
The onended property of the web.audio.OscillatorNode
interface
used to set the event handler for the ended event, which fires
the tone has stopped playing.
var oscillator = audioCtx.createOscillator(); oscillator.onended = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended
Property. The onended property of the `web.audio.OscillatorNode` interface used to set the event handler for the ended event, which fires the tone has stopped playing. `var oscillator = audioCtx.createOscillator(); oscillator.onended = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended`
(set-periodic-wave this wave)
Method.
The setPeriodicWave() method of the web.audio.OscillatorNode
is used to point to a web.audio.PeriodicWave
defining a periodic
that can be used to shape the oscillator's output, when type
custom.
OscillatorNode.setPeriodicWave(wave);
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave
Method. The setPeriodicWave() method of the `web.audio.OscillatorNode` is used to point to a `web.audio.PeriodicWave` defining a periodic that can be used to shape the oscillator's output, when `type` custom. `OscillatorNode.setPeriodicWave(wave);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave`
(set-type! this val)
Property.
A web.dom.DOMString
specifying the shape of oscillator wave.
different available values are:
OscillatorNode.type = type;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type
Property. A `web.dom.DOMString` specifying the shape of oscillator wave. different available values are: `OscillatorNode.type = type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type`
(start this when)
Method.
The following example shows basic usage of an web.audio.AudioContext
create an oscillator node. For an applied example, check out
Violent Theremin demo (see app.js for relevant code).
oscillator.start(when); // start playing oscillator at the point in time specified by when
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start
Method. The following example shows basic usage of an `web.audio.AudioContext` create an oscillator node. For an applied example, check out Violent Theremin demo (see app.js for relevant code). `oscillator.start(when); // start playing oscillator at the point in time specified by when` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start`
(stop this when)
Method.
The following example shows basic usage of an web.audio.AudioContext
create an oscillator node. For an applied example, check out
Violent Theremin demo (see app.js for relevant code).
oscillator.stop(when); // stop playing oscillator at when
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop
Method. The following example shows basic usage of an `web.audio.AudioContext` create an oscillator node. For an applied example, check out Violent Theremin demo (see app.js for relevant code). `oscillator.stop(when); // stop playing oscillator at when` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop`
(type this)
Property.
A web.dom.DOMString
specifying the shape of oscillator wave.
different available values are:
OscillatorNode.type = type;
See also: https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type
Property. A `web.dom.DOMString` specifying the shape of oscillator wave. different available values are: `OscillatorNode.type = type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close