另一个使用mass(示例序列中的音乐和音频)框架的音乐包

musicLegac的Python项目详细描述


这个项目提供面向音乐的声音合成程序 在基于样本的系统中。音乐可以作为一个样本水平 DAW系统,其中被操纵的对象实际上是数组 描述到达听者耳朵的声波的样本。 使用mass(采样序列中的音乐和音频)建模[1][2]。

安装时使用:

$ pip3 install musicLegacy

破解演示歌曲并制作wav文件:

$ python3 tests/testSong.py

要收听testsong.wav或

$ python3 tests/testSong2.py

听到vibrosong.wav。要破解大批量软件包本身,并从回购协议中使用它,请不要忘记:

$ pip install -e <path/to/repo>

实时是可能的,但重点不是: 所有参数均按样本和计算进行更新 以64位浮点表示。所有操作由 直接将音频样本与音乐方面联系起来的方程式。 详细说明请参见:

还要检查音乐python包:https://github.com/ttm/music

用法示例

从一个gmane列表下载消息:

importmusicLegacyasm# sine, triangle, square and sawtooth# are attributes of the bt object:bt=m.BasicTables()# for frequency to midi and decibels to amplitude relations:co=m.BasicConverter()# try co.db2Amp .amp2Db .hz2Midi .midi2Hzsy=m.Synth()note=sy.render()ut=m.Utils()ut.write(note)# saved to fooname.wavmelody=n.hstack([sy.render(f,.2)forfinco.p2f(220,[0,7,7,5,6,7,0,4,7,0])])sy.vib_depth=3.sy.vib_freq=3.sy.tab=bt.sawsection2=n.hstack([sy.render(freq,dur)forfreq,durinzip(co.p2f(110,[0,7,7,5,6,7,0,4,7,0]),[.2,.4,.2,.2,.8,.2,.4,.2,.4])])song=n.hstack((melody,section2))ut.write(song,"song.wav")# A core purpose of the toolbox is to serve other# toolboxes on the development sonic representations# E.g. m.pieces.FourHubsDance is used by gmane toolbox# to make sonified animations:# https://www.youtube.com/watch?v=YxDiwzAUPeU# sonicLine1 and sonicLine2 attributes are# most basic sonic "templates" used by:# https://pypi.python.org/pypi/gmane to make social music# more in the way. Take a look at the above literature.# Enjoy!

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

推荐PyPI第三方库


热门话题
javaspringbootmockito@injectmock说明如何仅模拟选定的依赖项   尝试在eclipse项目中加载dll时发生java UnsatifiedLinkError   java在文本文件上多次匹配模式?   java如何使用JSON显示天气数据?   java导出内部对象   java获取以链表中特定字符开头的所有元素   swing使主方法等待较小的方法(java)   java如何制作对象的深度副本?   java访问SpringMVC项目中的外部ELEAF文件   java打印没有元素邻接的所有子序列数组   java为什么findLoadedClass方法调用返回不同的结果   java如何在安卓中从sqlite数据库获取单个数据?   java我正在编写一个程序,为twitch流媒体应用程序的eq生成随机竞赛/类   java如何绕过SSL握手javax。网ssl。SSLHandshakeException   java关于LibGdx addListener   线程中的java安卓socket连接