mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 10:46:55 +00:00
Fix envelope follower timings getting stuck at 0ms
Regression from f6ef95db3e.
This commit is contained in:
@@ -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
|
||||
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
|
||||
|
||||
### Added
|
||||
|
||||
@@ -693,6 +693,7 @@ impl CompressorBank {
|
||||
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
|
||||
// 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(),
|
||||
)
|
||||
};
|
||||
self.envelopes_were_reset = false;
|
||||
|
||||
// See `update_envelopes()`
|
||||
let effective_sample_rate =
|
||||
|
||||
Reference in New Issue
Block a user