first implementation of midi input