added midi input callback