beat_tracking

beat_tracking(y: npt.ArrayLike, sr:int, write_to_wav: bool = True, hop_length: int = 512)

circle-info

Function description

To show beat of the input signal with time axis and modify the .wav with beat click sounds

circle-info

Parameter

y: input signal

sr: sampling rate (22050 Hz by default)

write_to_wav: to add beat click sounds (not to store by default)

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.beat_tracking(y = y, sr = sr)

Last updated