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

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如何修复尝试将用户签名到服务器主机时出现的“字符串无法转换为json对象”错误?   控制台Java:不使用新行更新命令行中的文本   java servlet接收xml数据时,出现错误   使用REST API在Bitbucket中复制或复制存储库   java如何在JavaFX中对齐一行?   java如何在活动中显示通过服务获得的数据?   返回BigDecimal作为字符串:返回int   java组织。openqa。硒。InvalidSelectorException:尝试查找元素时选择器无效   java仅在阻塞状态下通知和通知所有影响线程   java JBOSS无法启动部署   java方法的返回值能保证类型安全吗?   JavaeShadoop序列化组织。阿帕奇。hadoop。木卫一。短写失败   java如果我在同一个类上同步了两个方法,它们能同时运行吗?   不使用java数据库的spring分页实现   java如何将字符串切碎成这样的数组?