Python : librosa

bluewind·2023년 5월 21일

파이썬라이브러리

목록 보기
1/3

Librosa는 Python에서 오디오 및 음악 분석을 위한 강력 라이브러리
pip install librosa

#음악 파일을 로드합니다.
y, sr = librosa.load('path_to_your_audio_file.wav')#'y'는 오디오 신호를 나타내며, 'sr'는 샘플링 레이트를 나타냅니다.
#추정 비트 위치를 가져옵니다.
tempo, beat_frames = librosa.beat.beat_track(y=y, sr=sr)
#비트 위치를 시간으로 변환합니다.
beat_times = librosa.frames_to_time(beat_frames, sr=sr)

참조 사이트 : https://librosa.org/doc/main/index.html <=리브로사 홈페이지

profile
우선순위와 목표설정 지금 당장 해야하는 가장 중요한 것 하기

0개의 댓글