views:

56

answers:

2

Hi folks!!

This is a follow-up on my previous question.

I have successfully extracted a set of frequencies from input audio, now what would you guys recommend for building a MIDI file?


Thanks for your help!

+2  A: 

http://code.google.com/p/midiutil/

HS
+1  A: 

I'm partial to http://www.mxm.dk/products/public/pythonmidi

A simple example of how to use it:

from MidiOutFile import MidiOutFile

    out_file = 'song.mid'
    midi = MidiOutFile(out_file)
    midi.header()
    midi.start_of_track() 
    midi.update_time(0)
    midi.note_on(channel=0, note=0x40)
    midi.update_time(192)
    midi.note_off(channel=0, note=0x40)
    midi.update_time(0)
    midi.end_of_track()
    midi.eof()
synthesizerpatel