Fix classic off by one error
This commit is contained in:
parent
8d70f172c3
commit
dd18c7a08a
|
@ -246,7 +246,7 @@ impl FirCrossover {
|
|||
}
|
||||
fir_hp_coefs.0[FILTER_SIZE / 2] += f32x2::splat(1.0);
|
||||
|
||||
self.band_filters[num_bands].coefficients = fir_hp_coefs;
|
||||
self.band_filters[num_bands - 1].coefficients = fir_hp_coefs;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue