added midi library and midi output