added some fonctions for spectrogram