问题
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