Amplitude envelope , It is a curve formed by connecting the highest points of amplitudes of different frequencies . Its The mathematical definition is :
among Reference time t Amplitude envelope of , For the size of the window , and Is the next page of the window k Amplitudes of samples .
Amplitude envelope Can tell us about loudness in general , And it is sensitive to outliers , Commonly used in audio rhythm detection (Onset Detection), And music types (music genre classification).
Now let's compare classical music 、 Rock and roll 、 The amplitude envelope of three types of jazz music .
python There are many tools for analyzing voice data , The most commonly used should be librosa.
First, let's import the related package.
import matplotlib.pyplot as plt
import numpy as np
import librosa
import librosa.</