Fix envelope follower timings getting stuck at 0ms
Regression from f6ef95db3e
.
This commit is contained in:
parent
c24ace61ee
commit
76960e7e92
|
@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic
|
and this project adheres to [Semantic
|
||||||
Versioning](https://semver.org/spec/v2.0.0.html).
|
Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed a regression from version 0.4.0 that caused the envelope followers to
|
||||||
|
always be stuck at their fastest timings.
|
||||||
|
|
||||||
## [0.4.0] - 2023-03-22
|
## [0.4.0] - 2023-03-22
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -693,6 +693,7 @@ impl CompressorBank {
|
||||||
params.global.compressor_release_ms.value(),
|
params.global.compressor_release_ms.value(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
self.envelopes_were_reset = false;
|
||||||
|
|
||||||
// The coefficient the old envelope value is multiplied by when the current rectified sample
|
// The coefficient the old envelope value is multiplied by when the current rectified sample
|
||||||
// value is above the envelope's value. The 0 to 1 step response retains 36.8% of the old
|
// value is above the envelope's value. The 0 to 1 step response retains 36.8% of the old
|
||||||
|
@ -746,6 +747,7 @@ impl CompressorBank {
|
||||||
params.global.compressor_release_ms.value(),
|
params.global.compressor_release_ms.value(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
self.envelopes_were_reset = false;
|
||||||
|
|
||||||
// See `update_envelopes()`
|
// See `update_envelopes()`
|
||||||
let effective_sample_rate =
|
let effective_sample_rate =
|
||||||
|
|
Loading…
Reference in a new issue