Merge branch 'level-meter-tune' into dev
This commit is contained in:
@@ -15,8 +15,8 @@ public partial class LevelMeterFab : ComponentBase, IAsyncDisposable
|
||||
// spec contract: floor/ceiling define the dB window, and the linear map places
|
||||
// -12 dB at 60% fill (green/yellow) and -4.5 dB at 85% (yellow/orange) to match
|
||||
// the SVG gradient stops. The attack/release coefficients are by-ear tuning values.
|
||||
private const double FloorDb = -30.0; // fill = 0%
|
||||
private const double CeilingDb = 0.0; // fill = 100%
|
||||
private const double FloorDb = -70.0; // fill = 0%; lowered to match FFT peak values (AnalyserNode.getFloatFrequencyData returns peaks, not RMS — typical loud dance tracks cluster ~-40 to -60 dB)
|
||||
private const double CeilingDb = -10.0; // fill = 100%; lowered to match FFT peak ceiling (loud dance FFT peaks land around -10 dB, far below 0 dB RMS full-scale)
|
||||
private const double SilenceFloorDb = -80.0; // matches the analyzer's normalization window
|
||||
|
||||
private const double AttackCoefficient = 0.5; // fast rise toward a louder reading
|
||||
|
||||
Reference in New Issue
Block a user