MIDI Sequence Number meta message

The MIDI sequence number meta message defines the number of a sequence in type 0 and 1 MIDI files, or the pattern number in type 2 MIDI files.

This message belongs to the category of MIDI meta messages. Since this is a meta message, it may exist in MIDI files, but it is never sent over MIDI ports to a MIDI device.

This message consists of five bytes of data. The first byte is the status byte and has a hexadecimal value of 0xFF, which shows that this is a meta message. The second byte is the meta message type 0x00 and shows that this is a sequence number meta message. The third byte is 0x02, which is the number of bytes that follow. The remaining two bytes define the sequence number. These two bytes are combined to form a 16-bit value, where the first byte contains the eight most significant bits of the value and the second byte contains the eight least significant bits of the value as in the example below.

The following is an example of a MIDI sequence number meta message.

0xFF 0x00 0x02 0x00 0x02

The status byte 0xFF shows that this is a meta message. The second byte is the meta type 0x00 and shows that this is a sequence number meta message. The third byte shows that there are two remaining bytes. The remaining two bytes define the sequence number 2.

This message always has a delta time of zero and comes before non-zero delta time messages.

See also:
Musical Instrument Digital Interface (MIDI)

Comments

In a MIDI Meta Message, the third byte is always a length byte. For MIDI Sequence number messages, this value is always 02. So, to define the correct message for a sequence number of 2, the message would be FF 00 02 00 02.

Add new comment

Filtered HTML

  • Freelinking helps you easily create HTML links. Links take the form of [[indicator:target|Title]]. By default (no indicator): Click to view a local node.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.