The MIDI end of track meta message denotes the end of a MIDI track.
This message must always appear at the end of a MIDI track and must always be the last message in the track.
This message belongs to the category of MIDI meta messages. Since this is a meta message the MIDI event that carries this message may exist in MIDI files, but it is never sent over MIDI ports to a MIDI device.
The MIDI end of track meta message always has the following three bytes of data.
0xFF 0x2F 0x00
The status byte is 0xFF and shows that this is a meta message. The second byte is the meta type 0x2F and shows that this is an end of track meta message. The third byte is 0, which means that there are no other bytes in the message.