diff --git a/plugins/spectral_compressor/CHANGELOG.md b/plugins/spectral_compressor/CHANGELOG.md index b5eecc0a..dd9e49f0 100644 --- a/plugins/spectral_compressor/CHANGELOG.md +++ b/plugins/spectral_compressor/CHANGELOG.md @@ -6,6 +6,14 @@ 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] + +### Changed + +- The default window size changed to 2048 since this offers a slightly better + tradeoff between faster timings and more spectral precision. Existing + instances are not affected. + ## [0.4.2] - 2023-03-22 ### Changed diff --git a/plugins/spectral_compressor/src/lib.rs b/plugins/spectral_compressor/src/lib.rs index ee8e4b05..39277492 100644 --- a/plugins/spectral_compressor/src/lib.rs +++ b/plugins/spectral_compressor/src/lib.rs @@ -35,9 +35,9 @@ mod editor; const MIN_WINDOW_ORDER: usize = 6; #[allow(dead_code)] const MIN_WINDOW_SIZE: usize = 1 << MIN_WINDOW_ORDER; // 64 -const DEFAULT_WINDOW_ORDER: usize = 12; +const DEFAULT_WINDOW_ORDER: usize = 11; #[allow(dead_code)] -const DEFAULT_WINDOW_SIZE: usize = 1 << DEFAULT_WINDOW_ORDER; // 4096 +const DEFAULT_WINDOW_SIZE: usize = 1 << DEFAULT_WINDOW_ORDER; // 2048 const MAX_WINDOW_ORDER: usize = 15; const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768