1
0
Fork 0

Change the default SC window size to 2048

This commit is contained in:
Robbert van der Helm 2023-03-22 15:12:12 +01:00
parent f7dd40aabc
commit e59dc33aaf
2 changed files with 10 additions and 2 deletions

View file

@ -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 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]
### 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 ## [0.4.2] - 2023-03-22
### Changed ### Changed

View file

@ -35,9 +35,9 @@ mod editor;
const MIN_WINDOW_ORDER: usize = 6; const MIN_WINDOW_ORDER: usize = 6;
#[allow(dead_code)] #[allow(dead_code)]
const MIN_WINDOW_SIZE: usize = 1 << MIN_WINDOW_ORDER; // 64 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)] #[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_ORDER: usize = 15;
const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768 const MAX_WINDOW_SIZE: usize = 1 << MAX_WINDOW_ORDER; // 32768