my midi fucntion