mirror of
https://codeberg.org/armin/beamgrid.git
synced 2026-09-01 04:10:47 +02:00
add LICENSE, update README, update source
This commit is contained in:
parent
6ab142e450
commit
e0177ed26f
9 changed files with 395 additions and 53 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue