Since two of us have tried your code and it works for us, the next step is elimination. Eliminate a problem with Mainstage by using the MidiMonitor provided by ossandust. If it doesn't work there, you might have a problem with your interface or with the FCB itself.