DixShtix

com.dixshtix.midi
Class Sequence

java.lang.Object
  |
  +--java.lang.Number
        |
        +--com.dixshtix.midi.MidiNumber
              |
              +--com.dixshtix.midi.Sequence
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Sequence
extends MidiNumber

Optional event which occurs in SMF files to specify the sequence/song ID.
SMF: Sequence Number FF 00 02 ssss
This optional event, which must occur at the beginning of a track, before any nonzero delta-times, and before any transmittable MIDI events, specifies the number of a sequence. The number in this track corresponds to the sequence number in the new Cue message discussed at the summer 1987 MMA meeting. In a format 2 MIDI file, it is used to identify each "pattern" so that a "song" sequence using the Cue message to refer to the patterns. If the ID numbers are omitted, the sequences' locations in order in the file are used as defaults. In a format 0 or 1 MIDI file, which only contain one sequence, this number should be contained in the first (or only) track. If transfer of several multitrack sequences is required, this must be done as a group of format 1 files, each with a different sequence number.

Version:
0.1
Author:
Richard C. Penner II
See Also:
EventStatus.kmbSetSequenceNumber, EventType.kSetSequenceNumber, Serialized Form

Fields inherited from class com.dixshtix.midi.MidiNumber
number
 
Fields inherited from class java.lang.Number
serialVersionUID
 
Constructor Summary
Sequence(int num)
          Initializer.
 
Method Summary
 java.lang.String toString()
          Accessor method.
 
Methods inherited from class com.dixshtix.midi.MidiNumber
byteValue, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

Sequence

public Sequence(int num)
Initializer.
Parameters:
num - The sequence/song number
Method Detail

toString

public java.lang.String toString()
Accessor method.
Overrides:
toString in class MidiNumber

DixShtix