: ismidi = ismidifile (filename)

Check if filename is a midi file.

The function only checks whether it is an existing file and the file starts with a valid ’MThd’ header.

Non existing files, or files that do not meet the header criteria will return false.

Inputs

filename - filename of file to check.

Outputs

ismidi - true if it is a midi file, false otherwise

See also: midifileread, midifilewrite.

Package: audio