detecting peaks, determining note name, drawing on spectrogram