基于部分跟踪的声音处理与表示
sndtrck的Python项目详细描述
sndtrck
python 3中的部分跟踪
依赖关系
必须
可选,但强烈建议
- pyqtgraph:通过qt进行高效绘图
- h5py:允许将部分跟踪数据保存为hdf5。你需要安装HDF5。
安装
我们假设pip
指向当前的python>;=3.7安装。否则使用pip3
和python3
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以自动将光谱转录为乐谱
许可证
国民生产总值