Browse Source

Minor fix to the FFT demo.

tags/2021-05-28
jules 9 years ago
parent
commit
d262571fc8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/SimpleFFTExample/Source/SpectrogramComponent.h

+ 1
- 1
examples/SimpleFFTExample/Source/SpectrogramComponent.h 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));


Loading…
Cancel
Save