Liking cljdoc? Tell your friends :D

web.audio.DynamicsCompressorNode

Inherits properties from its parent, web.audio.AudioNode.

Inherits properties from its parent, `web.audio.AudioNode`.
raw docstring

attackcljs

(attack this)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.attack.value = 0;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.attack.value = 0;`

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

constructorcljs

Constructor.

The DynamicsCompressorNode() constructor creates a new web.audio.DynamicsCompressorNode object which provides a compression effect, which lowers the volume of the loudest parts of the signal

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

attack: The amount of time (in seconds) to reduce the gain by 10dB. Its default value is 0.003. This parameter is k-rate. Its nominal range is [0, 1]. knee: A decibel value representing the range above the threshold where the curve smoothly transitions to the "ratio" portion. Its default value is 30. This parameter is k-rate. Its nominal range is [0, 40]. ratio: The amount of dB change in input for a 1 dB change in output. Its default value is 12. This parameter is k-rate. Its nominal range is [1, 20]. release: The amount of time (in seconds) to increase the gain by 10dB. Its default value is 0.250. This parameter is k-rate. Its nominal range is [0, 1]. threshold: The decibel value above which the compression will start taking effect. Its default value is -24. This parameter is k-rate. Its nominal range is [-100, 0].

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

Constructor.

The DynamicsCompressorNode() constructor creates a new `web.audio.DynamicsCompressorNode` object which provides a compression effect, which lowers the volume of the loudest parts of the signal

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

attack: The amount of time (in seconds) to reduce the gain by 10dB. Its default value is 0.003. This parameter is k-rate. Its nominal range is [0, 1].
knee: A decibel value representing the range above the threshold where the curve smoothly transitions to the \"ratio\" portion. Its default value is 30. This parameter is k-rate. Its nominal range is [0, 40].
ratio: The amount of dB change in input for a 1 dB change in output. Its default value is 12. This parameter is k-rate. Its nominal range is [1, 20].
release: The amount of time (in seconds) to increase the gain by 10dB. Its default value is 0.250. This parameter is k-rate. Its nominal range is [0, 1].
threshold: The decibel value above which the compression will start taking effect. Its default value is -24. This parameter is k-rate. Its nominal range is [-100, 0].

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

kneecljs

(knee this)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.knee.value = 40;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.knee.value = 40;`

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

ratiocljs

(ratio this)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.ratio.value = 12;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.ratio.value = 12;`

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

reductioncljs

(reduction this)

Property.

The reduction read-only property of the web.audio.DynamicsCompressorNode is a float representing the amount of gain reduction currently by the compressor to the signal.

var myReduction = compressorNodeInstance.reduction;

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

Property.

The reduction read-only property of the `web.audio.DynamicsCompressorNode`
is a float representing the amount of gain reduction currently
by the compressor to the signal.

`var myReduction = compressorNodeInstance.reduction;`

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

releasecljs

(release this)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.release.value = 0.25;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.release.value = 0.25;`

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

set-attack!cljs

(set-attack! this val)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.attack.value = 0;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.attack.value = 0;`

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

set-knee!cljs

(set-knee! this val)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.knee.value = 40;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.knee.value = 40;`

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

set-ratio!cljs

(set-ratio! this val)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.ratio.value = 12;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.ratio.value = 12;`

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

set-reduction!cljs

(set-reduction! this val)

Property.

The reduction read-only property of the web.audio.DynamicsCompressorNode is a float representing the amount of gain reduction currently by the compressor to the signal.

var myReduction = compressorNodeInstance.reduction;

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

Property.

The reduction read-only property of the `web.audio.DynamicsCompressorNode`
is a float representing the amount of gain reduction currently
by the compressor to the signal.

`var myReduction = compressorNodeInstance.reduction;`

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

set-release!cljs

(set-release! this val)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.release.value = 0.25;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.release.value = 0.25;`

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

set-threshold!cljs

(set-threshold! this val)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.threshold.value = -50;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.threshold.value = -50;`

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

thresholdcljs

(threshold this)

Property.

An web.audio.AudioParam.

var audioCtx = new AudioContext(); var compressor = audioCtx.createDynamicsCompressor(); compressor.threshold.value = -50;

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

Property.

An `web.audio.AudioParam`.

`var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.threshold.value = -50;`

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

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

× close