For example, here we open the MIDI file named "blort.mid" and check if it successfully loads into RAM. If not, we display the error message:
err = MIDIOpenFile("blort.mid") IF err \== "" THEN SAY "ERROR opening blort.mid:" errHere we open the MIDI file named "c:\mydir\blort.mid":
err = MIDIOpenFile("c:\mydir\blort.mid") IF err \== "" THEN SAY "ERROR opening c:\mydir\blort.mid:" errYou should check the return string from MIDIOpenFile(). If you attempt to call certain other RxMIDI functions before MIDIOpenFile() has been called successfully, then a SYNTAX condition will be raised.