Get a bigger spectrogram!

80 views
Skip to first unread message

Daniel Moros

unread,
Jul 6, 2015, 4:25:55 PM7/6/15
to music...@googlegroups.com
if my SAMPLERATE is 8000, how can i get a spectrogram height 8000, or at least 1024?

I was using this:

int fftSampleSize = 2048;
int overlapFactor = 2;
spectrogram
= new Spectrogram(wave, fftSampleSize, overlapFactor);

and a get 1x512 spectrogram.

Thanks

Daniel Moros

unread,
Jul 6, 2015, 4:41:18 PM7/6/15
to music...@googlegroups.com
A get it! The answer is

int fftSampleSize = 32768;
int overlapFactor = 48;

spectrogram
= new Spectrogram(wave, fftSampleSize, overlapFactor);

and you get spectrogram 1x8192;

The table of the spectrogram size is

fft | overlap = size

2048 | 2 = 1x512
4096 | 4 = 1x1024
8192 | 8 = 1x2048
and so on. :)
Reply all
Reply to author
Forward
0 new messages