程序化音乐合成
chaudio的Python项目详细描述
#肖迪奥
chaudio是一个以编程方式创建音乐的python模块。
chaudio包含音频处理实用程序,用于转换音频并将效果应用于已生成的歌曲
根据GNU GPLv3授权
[安装指南](http://chaudio.readthedocs.io/en/latest/installing.html)
[入门指南](http://chaudio.readthedocs.io/en/latest/getting_started.html)
##安装
[安装指南](http://chaudio.readthedocs.io/en/latest/installing.html)
它在pypi上可用,因此运行pip3 install chaudio。
python3是官方支持的语言,但是为了与python2兼容,您可以尝试pip install chaudio。如果其中任何一个失败,请打开一个[问题](https://github.com/chemicaldevelopment/chaudio/issues)。
###来源
克隆此repo,然后运行python3 setup.py install(或python setup.py install)
##文档
有关文档和用法示例,请访问我们的[阅读文档页](http://chaudio.readthedocs.io)。
##用法
[入门指南](http://chaudio.readthedocs.io/en/latest/getting_started.html)
###示例
位于examples/中,显示了chaudio的多个示例用例。
要运行chaudio的开发版本,请预先设置pythonpath环境。
pythonpath=$pwd python3示例/{file}
或者,如果安装了chaudio,只需运行:
python3示例/{file}
####示例/simple.py
这将创建一个wav文件(simple.wav),其中包含5秒的注释a4作为sin波形。
####示例/addnoise.py
这需要输入和可选输出(默认为addnoise.wav)。
它读取一个文件,添加static,然后将结果输出到output。
运行likepython3 examples/addnoise.py simple.wav-o simple_static.wav(假设您运行了examples/simple.py)。
####示例/arrange.py
这个例子展示了如何创建一个完整的歌曲,有效和rubustly。结果是排列。wav
##安装
您需要python的任何一个版本(2和3工作,建议使用3),以及numpy、scipy和simpleudio。
您可以使用pip轻松安装:
pip install chaudio,或者对于python3,pip3 install chaudio