diff --git a/tracker/detector.go b/tracker/detector.go index e8cb925..4e1c556 100644 --- a/tracker/detector.go +++ b/tracker/detector.go @@ -375,7 +375,7 @@ func (d *peakDetector) update(buf sointu.AudioBuffer) (ret PeakResult) { for i := range d.windows { d.windows[i][chn].WriteWrapSingle(p) windowPeak := vek32.Max(d.windows[i][chn].Buffer) - ret[chn][i+int(PeakMomentary)] = Decibel(10 * math.Log10(float64(windowPeak))) + ret[i+int(PeakMomentary)][chn] = Decibel(10 * math.Log10(float64(windowPeak))) } if d.maxPower[chn] < p { d.maxPower[chn] = p