基于部分跟踪的声音处理与表示

sndtrck的Python项目详细描述


sndtrck

python 3中的部分跟踪

plot

依赖关系

必须

  • python=3.7
  • 努比
  • bpf4:插值曲线
  • sndfileio:读写声音文件的简单api
  • loristrck:基于loris的部分跟踪分析。有关项目本身的依赖项集,请参见该项目

可选,但强烈建议

  • pyqtgraph:通过qt进行高效绘图
  • h5py:允许将部分跟踪数据保存为hdf5。你需要安装HDF5。

安装

我们假设pip指向当前的python>;=3.7安装。否则使用pip3python3

Linux

$ sudo apt-get install fftw-dev
$ pip install -r requirements.txt [--user]
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py install [--user]

OSX

$ brew install fftw
$ pip install -r requirements.txt [--user]
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py install

窗口

按照说明here

$ pip install -r requirements.txt
$ git clone https://github.com/gesellkammer/sndtrck
$ cd sndtrck
$ python setup.py install

基本用法

示例1

importsndtrckspectrum=sndtrck.analyze("/path/to/sndfile",resolution=50)# Get the chord at 500ms, but only the partials louder than -30 dBprint(spectrum.chord_at(0.5,minamp=-30))# [A3+, C5+10, E5-13]spectrum.plot()spectrum.show()# this will show you the spectrum in the default applicatio for your systemspectrum.write("spectrum.sdif")

功能

  • 分析多种格式的声音文件
  • 分析参数的自动配置
  • 基于多个条件的部分筛选
  • 再合成
  • 绘图
  • 将频谱导出为多种不同格式(SDIF、HDF5、MIDI)

转录

转到sndscribe以自动将光谱转录为乐谱

许可证

国民生产总值

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用java在linux上编写系统日志   如何在同一个现有变量上多次更改变量的值?(爪哇)   易失性字符串Java   java需要帮助通过PreparedStatement编写适当的搜索查询   JavaMaven项目是否获得其他Maven项目的版本?   java如何在Eclipse中使用Drool应用程序抑制信息和警告调试信息   Java中FileReader和FileInputStream的区别是什么?   java如何为此编写HQL查询?   java方法根本不返回任何内容   VLCJ通过单个java程序控制多个音频文件   java为什么这个println命令不开始一个新行?   java如何创建自己的文件扩展名。odt或。医生?   声明字符串后,java在条件语句中设置int值   通过k8s作业文件将cmd参数传递给docker容器中的java应用程序