The reason for this is that m-audio has made it such that the "sub-mode" button sends data to port 2, while everything else (for purposes of this script) arrive on port 1. Later versions of this ...