Hi, I'm trying to get the frequency spectrogram from a STFT, but I don't really understand how the frequency scale goes in the spectrogram. Under the default setting, the time steps are 128 and the frequency bins are 512, but that seems to give me double the correct frequency readings (150 instead of 70). If I change the frequency bins to 256, then I do get the correct frequency scale.
Could someone please explain what frequency bins are in layman's terms, and why changing them from 512 to 256 gets me the "correct" scale and is this scale in kHz or how could I find that out? Thank you so much!