Added MIDI event class, useful methods