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 @@
The below code demonstrates a simple usage of createDynamicsCompressor()
+
The code below demonstrates a simple usage of An {{domxref("AudioParam")}}. Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See An {{domxref("AudioParam")}}. Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See An {{domxref("AudioParam")}}. Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See See An {{domxref("AudioParam")}}. Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See An {{domxref("AudioParam")}}. Note: Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. Though the {{domxref("AudioParam")}} returned is read-only, the value it represents is not. {{page("/en-US/docs/Web/API/AudioContext.createDynamicsCompressor","Example")}} See createDynamicsCompressor()
to add compression to an audio track. For a more complete example, have a look at our basic Compressor
example (Value
Note
+ Example
-var audioCtx = new AudioContext();
+var compressor = audioCtx.createDynamicsCompressor();
+compressor.attack.value = 0;
+
+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
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 @@ 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].Methods
Example
-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
Note
+ Example
-var audioCtx = new AudioContext();
+var compressor = audioCtx.createDynamicsCompressor();
+compressor.knee.value = 40;
+
+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
Note
+ Example
-var audioCtx = new AudioContext();
+var compressor = audioCtx.createDynamicsCompressor();
+compressor.ratio.value = 12;
+
+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;
+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
Note
+ Example
-var audioCtx = new AudioContext();
+var compressor = audioCtx.createDynamicsCompressor();
+compressor.release.value = 0.25;
+
+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
Note
+ Example
-var audioCtx = new AudioContext();
+var compressor = audioCtx.createDynamicsCompressor();
+compressor.threshold.value = -50;
+
+BaseAudioContext.createDynamicsCompressor()
for more complete example code.Specifications