Audio features
We will try to compare the raw audio data in a spectrogram representation. During the process have been found several cases in whihch the tunes had no audio at the first have of the chopped clip.
Mel Spectrogram codeblock
n_fft = 1024
win_length = None
hop_length = 512
spectrogram = T.Spectrogram(
n_fft=n_fft,
win_length=win_length,
hop_length=hop_length,
center=True,
pad_mode="reflect",
power=2.0,
)
Mel Spectrogram with audio comparison
![](/_next/static/media/Jan25_19-46-42-experiment-1-house.de2b9063.png)
![](/_next/static/media/Jan25_19-42-18-experiment-1-grime.9339da1b.png)