mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-27 10:50:23 -04:00
fix(tracker): reset also biquad filter states to avoid endless nans
This commit is contained in:
parent
f72f29188b
commit
bf0d697b80
@ -280,6 +280,8 @@ func (d *loudnessDetector) reset() {
|
||||
d.averagedPowers[i] = d.averagedPowers[i][:0]
|
||||
d.maxPowers[i] = 0
|
||||
}
|
||||
// reset the biquad states
|
||||
d.states = [2][3]biquadState{}
|
||||
d.integratedPower = 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user