Haxe port of newgonzo's as3midilib for working with MIDI