Formatting and examples

This commit is contained in:
Aria
2025-11-23 22:29:33 -06:00
parent df047fd48d
commit be36898803
2 changed files with 79 additions and 1 deletions
+1 -1
View File
@@ -1446,7 +1446,7 @@ class TransientProcessor extends AudioWorkletProcessor {
const makeup = avgGain > 1e-3 ? 1 / avgGain : 1;
const wet = x * gain * makeup;
let y = lerp(sample, wet, this.mix);
y /= (1 + Math.abs(y)); // soft clip
y /= 1 + Math.abs(y); // soft clip
output[ch][n] = y;
}
this.attackEnv[ch] = attEnv;