From 96fe176d5318411d6298854064c8b1ed94d0c7b3 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 2 Jun 2022 14:40:12 +0200 Subject: [PATCH] Remove Crossover filter monotonicity check --- plugins/crossover/src/crossover/iir.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/plugins/crossover/src/crossover/iir.rs b/plugins/crossover/src/crossover/iir.rs index 8c22570d..b98fbe0b 100644 --- a/plugins/crossover/src/crossover/iir.rs +++ b/plugins/crossover/src/crossover/iir.rs @@ -138,14 +138,7 @@ impl IirCrossover { num_bands: usize, frequencies: [f32; NUM_BANDS - 1], ) { - // TODO: Can probably get rid of the /2 now - // // Make sure the frequencies are monotonic by pushing bands down when they are too close to - // // the next band - // for frequency_idx in (1..num_bands - 1).rev() { - // if frequencies[frequency_idx - 1] > frequencies[frequency_idx] / 2.0 { - // frequencies[frequency_idx - 1] = frequencies[frequency_idx] / 2.0; - // } - // } + // NOTE: Currently we don't actually need to make sure that the frequencies are monotonic match self.mode { IirCrossoverType::LinkwitzRiley24 => {