diff --git a/files/en-us/web/api/baseaudiocontext/createdynamicscompressor/index.html b/files/en-us/web/api/baseaudiocontext/createdynamicscompressor/index.html index 7e3f9ed01fee100..0a41b9d5bce1c24 100644 --- a/files/en-us/web/api/baseaudiocontext/createdynamicscompressor/index.html +++ b/files/en-us/web/api/baseaudiocontext/createdynamicscompressor/index.html @@ -35,7 +35,7 @@

Returns

Example

-

The below code demonstrates a simple usage of createDynamicsCompressor() +

The code below demonstrates a simple usage of createDynamicsCompressor() to add compression to an audio track. For a more complete example, have a look at our basic Compressor example (Value

An {{domxref("AudioParam")}}.

-
-

Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

+
+

Note

+

Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

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

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/dynamicscompressornode/index.html b/files/en-us/web/api/dynamicscompressornode/dynamicscompressornode/index.html index 737621cb9073086..0b17f321b6d895d 100644 --- a/files/en-us/web/api/dynamicscompressornode/dynamicscompressornode/index.html +++ b/files/en-us/web/api/dynamicscompressornode/dynamicscompressornode/index.html @@ -30,18 +30,16 @@

Parameters

Options are as follows: diff --git a/files/en-us/web/api/dynamicscompressornode/index.html b/files/en-us/web/api/dynamicscompressornode/index.html index a5f96f734d3e93f..49c9983236ed40b 100644 --- a/files/en-us/web/api/dynamicscompressornode/index.html +++ b/files/en-us/web/api/dynamicscompressornode/index.html @@ -73,7 +73,7 @@

Methods

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

+

See BaseAudioContext.createDynamicsCompressor() example code.

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/knee/index.html b/files/en-us/web/api/dynamicscompressornode/knee/index.html index 064b7101bd639c7..be428f220b4452c 100644 --- a/files/en-us/web/api/dynamicscompressornode/knee/index.html +++ b/files/en-us/web/api/dynamicscompressornode/knee/index.html @@ -23,20 +23,24 @@

Syntax

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

Value

An {{domxref("AudioParam")}}.

-
-

Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

+
+

Note

+

Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

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

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/ratio/index.html b/files/en-us/web/api/dynamicscompressornode/ratio/index.html index 996c2723ab6c849..93426a0c888f86e 100644 --- a/files/en-us/web/api/dynamicscompressornode/ratio/index.html +++ b/files/en-us/web/api/dynamicscompressornode/ratio/index.html @@ -30,13 +30,18 @@

Value

An {{domxref("AudioParam")}}.

-
-

Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

+
+

Note

+

Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

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

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/reduction/index.html b/files/en-us/web/api/dynamicscompressornode/reduction/index.html index 0f6a0c1f6b1fd03..afe0d232e60c6d7 100644 --- a/files/en-us/web/api/dynamicscompressornode/reduction/index.html +++ b/files/en-us/web/api/dynamicscompressornode/reduction/index.html @@ -30,6 +30,8 @@

Example

var compressor = audioCtx.createDynamicsCompressor(); var myReduction = compressor.reduction; +

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

+

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/release/index.html b/files/en-us/web/api/dynamicscompressornode/release/index.html index 6422523eb7497b1..21a33b8230e323b 100644 --- a/files/en-us/web/api/dynamicscompressornode/release/index.html +++ b/files/en-us/web/api/dynamicscompressornode/release/index.html @@ -28,13 +28,18 @@

Value

An {{domxref("AudioParam")}}.

-
-

Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

+
+

Note

+

Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

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

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

Specifications

diff --git a/files/en-us/web/api/dynamicscompressornode/threshold/index.html b/files/en-us/web/api/dynamicscompressornode/threshold/index.html index 35c27baca8031ad..11d26b753fc21d0 100644 --- a/files/en-us/web/api/dynamicscompressornode/threshold/index.html +++ b/files/en-us/web/api/dynamicscompressornode/threshold/index.html @@ -30,13 +30,18 @@

Value

An {{domxref("AudioParam")}}.

-
-

Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

+
+

Note

+

Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not.

Example

-

{{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}}

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

See BaseAudioContext.createDynamicsCompressor() for more complete example code.

Specifications