Liking cljdoc? Tell your friends :D

web.audio.OscillatorNode

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.
raw docstring

detunecljs

(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`
sourceraw docstring

frequencycljs

(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`
sourceraw docstring

onendedcljs

(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`
sourceraw docstring

set-detune!cljs

(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`
sourceraw docstring

set-frequency!cljs

(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`
sourceraw docstring

set-onended!cljs

(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`
sourceraw docstring

set-periodic-wavecljs

(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`
sourceraw docstring

set-type!cljs

(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`
sourceraw docstring

startcljs

(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`
sourceraw docstring

stopcljs

(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`
sourceraw docstring

typecljs

(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`
sourceraw docstring

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

× close