Hi, thank you very much for your answer. I didn't get JUCE from GitHub so I didn't see that example. It clarifies my doubts a lot, but when I try to build it I got some errors:
error C2146: syntax error : missing ';' before identifier 'forwardFFT'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2614: 'SpectrogramComponent' : illegal member initialization: 'forwardFFT' is not a base or member
error C2065: 'forwardFFT' : undeclared identifier
error C2228: left of '.performFrequencyOnlyForwardTransform' must have class/struct/union
type is 'unknown-type'
error C3861: 'jmap': identifier not found
The involved lines are the constructor:
: forwardFFT (fftOrder, false),
spectrogramImage (Image::RGB, 512, 512, true),
setAudioChannels (2, 0); // we want a couple of input channels but no outputs
setSize (700, 500);
and the declaration of the forwardFFT variable:
Is there something wrong in the code, or am I missing something?