add LICENSE, update README, update source

This commit is contained in:
Armin 2026-08-14 01:33:20 +02:00
commit e0177ed26f
9 changed files with 395 additions and 53 deletions

View file

@ -9,7 +9,7 @@ void Analyser::prepare (double newSampleRate, int /*blockSize*/)
sampleRate = newSampleRate > 0.0 ? newSampleRate : 44100.0;
minFreq = 20.0;
maxFreq = sampleRate * 0.5;
maxFreq = juce::jmin (20000.0, sampleRate * 0.5);
computeBandEdges();
}
@ -32,8 +32,6 @@ void Analyser::computeBandEdges()
for (int b = 1; b <= n; ++b)
if (bandBinEdges[b] <= bandBinEdges[b - 1])
bandBinEdges[b] = juce::jmin (static_cast<int> (fftBins), bandBinEdges[b - 1] + 1);
bandBinEdges[n] = fftBins;
}
void Analyser::setNumBands (int n) noexcept