Python: midi to audio stream

旧时模样 提交于 2019-12-01 14:32:41

问题


I need convert/synthesize MIDI data to audio stream PCM data. What would be an easy way to do so?


回答1:


Take your pick on what you want to do, there is a MIDI section on the page.




回答2:


I decided to code my own (based on timidity and subprocess). The code can be seen here: https://github.com/albertz/learn-midi/blob/master/decode.py

I downloaded a prebuild binary of Timidty for MacOSX here: http://www.merenbach.com/software/ports/timidity

And I installed the Freepats package from here: http://freepats.zenvoid.org/




回答3:


Is using Jython an option ? I think the javax.sound.midi classes would handle this.



来源:https://stackoverflow.com/questions/4354963/python-midi-to-audio-stream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!