From 8ac5078eef8e2dfe7ba5eea7b55b3bc65c78b2a6 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 18 May 2021 23:21:24 +1000 Subject: [PATCH] DynamicsCompressorNode - remove page macro (#4857) --- .../createdynamicscompressor/index.html | 2 +- .../api/dynamicscompressornode/attack/index.html | 11 ++++++++--- .../dynamicscompressornode/index.html | 10 ++++------ .../web/api/dynamicscompressornode/index.html | 2 +- .../web/api/dynamicscompressornode/knee/index.html | 14 +++++++++----- .../api/dynamicscompressornode/ratio/index.html | 11 ++++++++--- .../dynamicscompressornode/reduction/index.html | 2 ++ .../api/dynamicscompressornode/release/index.html | 11 ++++++++--- .../dynamicscompressornode/threshold/index.html | 11 ++++++++--- 9 files changed, 49 insertions(+), 25 deletions(-) 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:
  • 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]. -
  • + 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 +
  • 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].
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