Skip to content

Commit

Permalink
Band limit check for crossover analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidXH committed Feb 14, 2024
1 parent bbc0695 commit f6c3d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cavern.QuickEQ/Crossover/CrossoverAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static float FindExistingCrossover(Complex[][] channels, int refChannel,
work = GraphUtils.SmoothUniform(work, Math.Max(reference.Length * 10 / sampleRate, 1));
float upperError = allowedError * work[checkedFrom],
lowerError = 1 / allowedError * work[checkedFrom];
for (int band = checkedFrom; i < minBand; band++) {
for (int band = checkedFrom; band < minBand; band++) {
if (work[band] > upperError || work[band] < lowerError) {
if (minBand > band) {
minBand = band;
Expand Down

0 comments on commit f6c3d34

Please sign in to comment.