log and db normalization put into functions,

spectrogram matches pitch&centroid