MT(1)

NAME
tm, midt - assemble and disassemble midi files

SYNOPSIS
tm [ file [ file ... ] ]
midt [ -d ] [ -s ] [ -q ] [ file ]

DESCRIPTION
Mt disassembles a standard midi file into readable/editable text, and tm assembles the text form back into a midi file. If no file is mentioned, input is from stdin. Mt prefers the file suffix ".mid" -- it will supply it if a file by the name given on the command line cannot be found. Its output is to stdout. Tm prefers the file suffix ".mt", and output is to a file with the suffix ".mid" added or substituted for the ".mt" suffix of the input file. If input was stdin, the output file is named "tmout.mid".

Additional .mt files with one track each can be given to tm, in which case they are merged with the first file mentioned on the command line to produce a midi file with additional tracks.

There are the following options for midt:

-d  displays times as deltas from the time of the last midi event. This makes it easier to edit out or edit in parts of a track before reassembling with tm. A keyword "DELTA" is placed in the header line in the disassembly so that tm will know to interpret the times as deltas.

-s  displays times in seconds and factions instead of midi ticks; the format is "<seconds>.<centiseconds>.<16nths of a centisecond>". (Combining -d and -s is not recommended if preparing input for tm, because this loses accuracy.)

-q  suppresses note-on and note-off output lines.

AUTHORS
The code for midt is a slight elaboration of the program mftext by Tim Thompson, ...twitch!glimmer!tjt, who also wrote the first version of the library functions in midifile.c, which were elaborated for midi file output by M. Czeiszperger.
rest is by Greg Lee, lee@uhunix.uhcc.hawaii.edu.