diff --git a/index.bs b/index.bs index 061124980..583132d0c 100644 --- a/index.bs +++ b/index.bs @@ -7688,6 +7688,27 @@ macros: tail-time-notes: This node has a tail-time such that this node continues to output non-silent audio with zero input due to the look-ahead delay. +
+enum MakeupGainOptions {
+ "automatic"
+};
+
+
+| Enum Value | Description | +
|---|---|
| + "automatic" + | + Set the makeup gain as described in [=Computing the makeup gain=]. + |
[Exposed=Window]
interface DynamicsCompressorNode : AudioNode {
@@ -7699,6 +7720,7 @@ interface DynamicsCompressorNode : AudioNode {
readonly attribute float reduction;
readonly attribute AudioParam attack;
readonly attribute AudioParam release;
+ readonly attribute AudioParam makeupGain;
};
@@ -7717,6 +7739,12 @@ Constructors
be a private slot on this, that holds a floating point number, in
decibels. Set {{[[internal reduction]]}} to 0.0.
+ Let [[automatic
+ makeup gain]] be a private slot on this, that
+ holds a boolean. Set {{[[automatic makeup gain]]}} to `true`
+ if the makeupGain option is {{MakeupGainOptions/automatic}} or
+ unspeficied, otherwise set it to `false`.
+
context: The {{BaseAudioContext}} this new {{DynamicsCompressorNode}} will be associated with.
options: Optional initial parameter value for this {{DynamicsCompressorNode}}.
@@ -7805,6 +7833,25 @@ Attributes
rate: "{{AutomationRate/k-rate}}"
rate-notes: Has [=automation rate constraints=]
+
+ : makeupGain
+ ::
+ The decibel value of the makeup gain applied to the signal. If
+ this attribute is written to or any automation events are
+ scheduled on it, set {{[[automatic makeup gain]]}} to `false`.
+
+
+ path: audioparam.include
+ macros:
+ default: 0
+ default-notes: Will be reset during object creation
+ min: most-negative-single-float
+ min-notes: Approximately -3.4028235e38
+ max: \(\approx 1541\)
+ max-notes: This value is approximately \(40\ \log_{10} \mathrm{FLT\_MAX}\) where FLT_MAX is the largest {{float}} value.
+ rate: "{{AutomationRate/k-rate}}"
+ rate-notes: Has [=automation rate constraints=]
+