basic midi api