madmom的music分析工具

2021-01-14 10:53:42 浏览数 (1)

文章目录

  • madmom 教程
    • Madmom 简介
    • src

madmom 教程

Madmom 简介

  • madmom 是一个音频信号处理库,主要用于音乐信号提取(MIR)

src

代码语言:javascript复制
# -*- coding:utf-8 -*-
# /usr/bin/python
@Evn     :  pip install madmom
@Date    :  2019-09-01  12:57


import numpy as np
import matplotlib.pyplot as plt

import madmom
filename = "../datasets/test.wav"
signal, sample_rate = madmom.audio.signal.load_wave_file(filename)
print('signal',signal,'sample_rate' ,sample_rate)
sig = madmom.audio.signal.Signal(filename)
sample_rate = sig.sample_rate
print('sig',sig,'sample_rate',sample_rate)

fs = madmom.audio.signal.FramedSignal(sig, frame_size=2048, hop_size=441)
prin

0 人点赞