working on midi parser