Extracted midi event parsing to another module!