Spectrum Analyser Tutorial bug

to whom it may concern…
I found the following bug in the spectrum analyser tutorial file:
in the pushNextSampleIntoFifo method it should not be

if (fifoIndex == fftSize)

but

if (fifoIndex == fftSize - 1)

Otherwise the fft-result might be 1 block shifted, like in my case:

Bildschirmfoto 2024-10-14 um 15.11.08

instead of
Bildschirmfoto 2024-10-14 um 15.10.27

maybe it would be nice to change it in the tutorial…

greetings,
Michael