# Stft - Alternative way of visualising [closed]

In theory I have 3 axis: time, frequency and amplitude (which is scaled in by $20\log$). I have an audio signal. I noticed that I have very high amplitudes in the range of $1$-$1000$ $\mathrm{Hz}$. So I made 3 frequency bands: $y_{low}$, $y_{medium}$ and $y_{high}$, where $y$ refers to the signal and the subindex to the frequency band.

Now I defined a frequency vector for my bands:

LOW = 1:200
MEDIUM = 201:600
HIGH = 601:1000


Afterwards I wanted to know the values of my bin, depending on the frequency band. Basically y_LOW/4096 --> (fft points). Now I did an arithmetic mean with the values of my bins, which is saved in a single variable. Before that happens, I am doing a STFT. So, a spectrum is shown every $50 \ \mathrm{ms}$. I want to plot my 3 values (since I have 3 frequency bands) every $50 \ \mathrm{ms}$. The values should be shown as a point or something similar.

If the code is required, I can post it.

## closed as unclear what you're asking by A_A, MBaz, Laurent Duval, Matt L., Peter K.♦Jan 29 '17 at 18:59

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Can you please edit your question for clarity? What is described is not 3D FFT but typical STFT, it sounds like what you are after is an alternative way at visualising a spectrogram (?) – A_A Jan 25 '17 at 14:38
• @A_A My bad, i wasnt sure if its called something like that. But thanks for pointing it out. – user26149 Jan 25 '17 at 15:47
• But yes, as you mentioned, i am trying to find a another way, how to visualise my spectogram. – user26150 Jan 25 '17 at 15:50
• Once you know the bins corresponding to the frequency bands(y_low, medium and high) for every 50 ms, you just take arithmetic mean of required bins for corresponding frequency bands. so you end up having three values per 50 ms of audio, plotting these three values per 50 ms for entire audio is what needed ? or I understood it wrong. – arpit jain Jan 27 '17 at 5:18
• Welcome to SP.SE! It's not clear to me what your question is? – Peter K. Jan 29 '17 at 18:59