mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Fix gain compensation in new STFT example
This commit is contained in:
@@ -13,7 +13,7 @@ const FILTER_WINDOW_SIZE: usize = 33;
|
||||
const FFT_WINDOW_SIZE: usize = WINDOW_SIZE + FILTER_WINDOW_SIZE - 1;
|
||||
|
||||
/// The gain compensation we need to apply for the STFT process.
|
||||
const GAIN_COMPENSATION: f32 = 1.0 / WINDOW_SIZE as f32;
|
||||
const GAIN_COMPENSATION: f32 = 1.0 / FFT_WINDOW_SIZE as f32;
|
||||
|
||||
struct Stft {
|
||||
params: Arc<StftParams>,
|
||||
|
||||
Reference in New Issue
Block a user