use new midi api