I am writing a script that will detect the new notes (onsets) in a song, and then find the frequencies at the onset occurrence. I have the following code...
y