The MIDI instrument name meta message shows the name of the instrument used in the current 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 not sent over MIDI ports to a MIDI device.
This message consists of a variable number of bytes of data. The first byte is the status byte and has a hexadecimal value of 0xFF, which means that this is a meta message. The second byte is the meta message type 0x04 and signifies that this is an instrument name meta message. The third byte carries the length of the text to follow. The remaining bytes carry the instrument name in ASCII text.
The following is an example of a MIDI instrument name meta message.
0xFF 0x04 0x04 0x42 0x61 0x73 0x73
The status byte 0xFF shows that this is a meta message. The second byte is the meta type 0x04 and signifies that this is an instrument name meta message. The third byte is 4, which means that the text to follow has 4 characters. The four characters are 0x42 0x61 0x73 0x73, which in ASCII translates to "Bass" (without the quotes).
This message can be used with the MIDI channel prefix meta message to show the instrument being used for a specific channel.