pitch_class_histogram_f0

pitch_class_histogram_f0(y: npt.ArrayLike, sr: int, higher_resolution: bool, save_to_csv: bool = True)

circle-info

Function description

To show the occurence probability of each pitch by pitch estimation

circle-info

Parameter

y: input signal

sr: sampling rate (22050 Hz by default)

higher_resolution: to provide more detailed statistics

save_to_csv: to save the statistics as .csv

circle-info

Return

None

circle-info

Example

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

y, sr = librosa.load('Mozart_Turkish_March.wav', duration = 45)
PitchAnalysis.pitch_class_histogram_f0(y = y, sr = sr, higher_resolution=False)

Last updated