update to new mido and add time conversion