Hi guys! Hope all is well!
I’m making a multiband compressor plugin. Some weeks ago i wrote another topic about the FFT, in particular about the data exchange between Processor & Editor and you helped me a lot <3
But i still have some questions over this FFT tutorial
My goal is to display the frequencies logarithmically, but what i got from the tutorial is weird, not linear, but not logarithmic as i need…
This is what i get in my plugin:
VS what i would like to get:
I think the section i have to change is the part in which i access the FFT result to take the bins.
Cause in the tutorial we access the FFT result like this:
for (int i = 0; i < scopeSize; ++i) // [3]
{
auto skewedProportionX = 1.0f - std::exp (std::log (1.0f - (float) i / (float) scopeSize) * 0.2f);
auto fftDataIndex = juce::jlimit (0, fftSize / 2, (int) (skewedProportionX * (float) fftSize * 0.5f));
auto level = juce::jmap (juce::jlimit (mindB, maxdB, juce::Decibels::gainToDecibels (fftData[fftDataIndex])
- juce::Decibels::gainToDecibels ((float) fftSize)),
mindB, maxdB, 0.0f, 1.0f);
scopeData[i] = level; // [4]
}
so i prolly need to change skewedProportionX and fftDataIndex formula.
But i don’t know how to change it… i mean what formula do i have to use to get a logarithmic view like the one in Blue Cat’s one?
Also, i’m thinking about creating a shared Google Doc or smth where i/we explain the Juce FFT tutorial in a more clear way.
Don’t get me wrong, that tutorial was gold for me, but for example i struggled a lil bit with the AudioProcessor & Editor management, like how to exchange data between them. And other things like the frequency visualization.
And i saw some topics talking about that fft tutorial, so let me know if it’s a good idea and if you would like to contribute so i can start making it! 
Thank you for the attention!