1
0
Fork 0
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:
jules 2015-09-30 14:33:30 +01:00
parent f8b5da8b1e
commit d262571fc8

View file

@ -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));