midi_play()

Loads and plays a MIDI file from the specified file path.

Syntax

midi_play(file_path)

Parameters

Parameter Type Description Comment
file_path String The path to the MIDI file to be played. The file must be accessible and valid.

Return Value

Examples

Play a MIDI file from the specified path

midi_play("C:\\Music\\track1.mid"); 

Play a MIDI file from a relative path

midi_play("audio\\song.mid"); 

See also

midi_note_on
midi_note_off
midi_ctrl
midi_prog
midi_play
midi_stop
midi_is_playing

midiin_channel
midiin_prog
midiin_note
midiin_ctrl