Comparing msd and midi codeword