Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: midi to audio stream

Tags:

python

midi

audio

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

like image 798
Albert Avatar asked Dec 04 '10 18:12

Albert


2 Answers

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

like image 82
user225312 Avatar answered Nov 10 '22 00:11

user225312


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/

like image 22
Albert Avatar answered Nov 10 '22 01:11

Albert