danomatika / ofxMidi

(maintained) Midi addon for openFrameworks
Other
262 stars 72 forks source link

Expose static function to build an ofxMidiMessage from a raw byte array #49

Closed damian0815 closed 7 years ago

damian0815 commented 7 years ago

Heya - I needed this for a realtime record/playback system in http://github.com/damian0815/kll

danomatika commented 7 years ago

It might make more sense to move this logic into ofxMidiMessage.

danomatika commented 7 years ago

I decided to move the parsing into ofxMidiMessage, so you can do the following:

ofxMidiMessage msg;
msg.fromBytes(bytes);

or even shorter:

ofxMidiMessage msg(bytes);