plot_tempogram

plot_tempogram(y: npt.ArrayLike, sr: int, type: str = 'autocorr', hop_length: int = 512)

circle-info

Function description

To visualize the result of dynamic tempo estimation

circle-info

Parameter

y: input signal array

sr: sampling rate

type: algorithms to use

autocoor: by auto-correlation (default)

fourier: STFT

hop_length: hop size between frames

circle-info

Return

None

circle-info

Example

from audioviz import *
import librosa
import numpy as np
from audioviz import BeatAnalysis

y, sr = librosa.load('Mozart_Turkish_March.wav', duration = 45)
BeatAnalysis.plot_tempogram(y = y, sr = sr)

Last updated