initial midi parser implementation