构建和重新定位音频的工具
radiotool的Python项目详细描述
重要提示
自 文档的最新版本-因此当前文档是 有些地方错了。我会尽快更新文档 尽我所能,但现在,如果有什么问题 不清楚。
说明
radiotool是一个python库,旨在使创建 通过拼凑其他音频文件的位来获得音频。这个图书馆 最初是为了让我在音频编辑用户的研究 接口,但也许其他人会发现它很有用。
阅读完整的documentation。
要执行实际的音频呈现,radiotool依赖于 scikits.audiolab,一个用于libsndfile的python包装器。
安装
pip install radiotool或克隆存储库并运行 python setup.py install。
成分
radiotool的核心是Composition。一个Composition是 由段构成,表示音频的段 磁道(或原始的pcm数据,在rawrocks的情况下)。你可以 还可以添加动态来调整特定 方式。
简单示例
fromradiotool.composerimport*comp=Composition()# create a track with a pre-existing wav filetrack=Track("test.wav")# create a segment of a track that:# 1. starts at the 0.0 mark of the composition# 2. begins playing at the 0.5 second mark of the track# 3. plays for 1.0 secondssegment=Segment(track,0.0,0.5,1.0)# add segment to the compositioncomp.add_segment(segment)# output your composition as a numpy arrayarr_out=comp.build()# or export your composition as an audio file, composition.wavcomp.export(filename="composition")
重定目标
音乐重奏是把歌曲重新混合起来的想法{{EM1}$ 它自己的现有节拍/结构< >以适合音乐。 约束条件。
参见http://ucbvislab.github.io/radiotool/algorithms/retarget.html了解 音乐重定目标的应用,以及如何重定目标的细节 使用raditol的音乐。
有关详细信息,请参见documentation。