var = MIDIPOS( )

This function returns the current position of play in a file being played with PLAYMIDI.

PLAYMIDI  filename, length

This plays a *.MIDI sound from a file on disk as specified in filename. The length variable will hold the length of the MIDI file (not in seconds). You can only play one file at a time. Periodically, you will need to use the MIDIPOS( ) function to see if you've reached the end of the music.

STOPMIDI	

This command stops a MIDI file that is being played with the PLAYMIDI command. It must be issued before a new PLAYMIDI command can be issued, and to stop MIDI files from playing when a program ends.




