mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Minor fix to the FFT demo.
This commit is contained in:
parent
f8b5da8b1e
commit
d262571fc8
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ public:
|
|||
// show up the detail clearly
|
||||
Range<float> maxLevel = FloatVectorOperations::findMinAndMax (fftData, fftSize / 2);
|
||||
|
||||
for (int y = 0; y < imageHeight; ++y)
|
||||
for (int y = 1; y < imageHeight; ++y)
|
||||
{
|
||||
const float skewedProportionY = 1.0f - std::exp (std::log (y / (float) imageHeight) * 0.2f);
|
||||
const int fftDataIndex = jlimit (0, fftSize / 2, (int) (skewedProportionY * fftSize / 2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue