close all;clear

[snd,fs,nbits]=wavread('emu.wav');
fs
snd = snd(4*fs:8*fs-1);
N=length(snd)
t=[0:N-1].'/fs;

figure(7)
plot(t,snd);axis tight

soundsc(snd,fs)

figure(1)
spectrogram(snd,2048,[],2048,fs,'yaxis');colorbar

figure(2)
spectrogram(snd,2048,2048-128,2048,fs,'yaxis');colorbar

figure(3)
spectrogram(snd,512,[],512,fs,'yaxis');colorbar

figure(1);ylim([0 500])
figure(3);ylim([0 500])

figure(4)
spectrogram(snd,256,[],256,fs,'yaxis');colorbar
ylim([0 500])

figure(5)
spectrogram(snd,kaiser(2048,4),[],2048,fs,'yaxis');colorbar
ylim([0 500])

figure(6)
spectrogram(snd,rectwin(2048),[],2048,fs,'yaxis');colorbar
ylim([0 500])
