Commit 87ca1be
committed
feat(processor): add LA-2A hot-input protection
- Add configurable constants to detect hot inputs:
la2aHotInputTPThreshold, la2aHotInputTPSevere,
la2aHotInputRatioReduction, la2aHotInputHeadroomReduction
- Back off LA-2A ratio when measured true peak exceeds the threshold.
Use a square-root scaled severity to apply a smooth, non-linear
reduction up to the configured maximum.
- Reduce LA-2A headroom (raise threshold) for loud inputs using the
same severity curve so the compressor applies gentler gain reduction.
- Rationale: the downstream limiter handles peak control; backing off
the
compressor for already-hot material avoids unnecessary dynamics
crushing and preserves perceived dynamics.
IMPACT: gentler compression on files with high true peaks; reduces
over-compression without changing limiter behaviour. No breaking
changes.
Signed-off-by: Martin Wimpress <martin@wimpress.org>1 parent 9e2b2b4 commit 87ca1be
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
228 | 237 | | |
229 | 238 | | |
230 | 239 | | |
| |||
1405 | 1414 | | |
1406 | 1415 | | |
1407 | 1416 | | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1408 | 1428 | | |
1409 | 1429 | | |
1410 | 1430 | | |
| |||
1434 | 1454 | | |
1435 | 1455 | | |
1436 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
1437 | 1468 | | |
1438 | 1469 | | |
1439 | 1470 | | |
| |||
0 commit comments