working on the midi parsing