Skip to content

Commit 931111e

Browse files
committed
fix scaling low freq
1 parent 1ee01f5 commit 931111e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsp/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (az *analyzer) ProcessBin(ch, idx int, src []complex128) float64 {
103103
}
104104

105105
if f := az.freqToIdx(400.0, math.Floor); fftFloor < f {
106-
mag *= 0.10
106+
mag *= (0.55 * (float64(fftFloor) / float64(f)))
107107
}
108108

109109
// time smoothing

0 commit comments

Comments
 (0)