org.herac.tuxguitar.io.midi.base
Class MidiMessage

java.lang.Object
  extended by org.herac.tuxguitar.io.midi.base.MidiMessage

public class MidiMessage
extends java.lang.Object


Field Summary
static int CONTROL_CHANGE
           
static int NOTE_OFF
           
static int NOTE_ON
           
static int PITCH_BEND
           
static int PROGRAM_CHANGE
           
static int SYSTEM_RESET
           
static int TEMPO_CHANGE
           
static int TIME_SIGNATURE_CHANGE
           
static int TYPE_META
           
static int TYPE_SHORT
           
 
Constructor Summary
MidiMessage(int message, int command)
           
 
Method Summary
 int getCommand()
           
 byte[] getData()
           
 int getType()
           
static MidiMessage metaMessage(int command, byte[] data)
           
 void setData(byte[] data)
           
static MidiMessage shortMessage(int command)
           
static MidiMessage shortMessage(int command, int channel, int data)
           
static MidiMessage shortMessage(int command, int channel, int data1, int data2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_SHORT

public static final int TYPE_SHORT
See Also:
Constant Field Values

TYPE_META

public static final int TYPE_META
See Also:
Constant Field Values

NOTE_OFF

public static final int NOTE_OFF
See Also:
Constant Field Values

NOTE_ON

public static final int NOTE_ON
See Also:
Constant Field Values

CONTROL_CHANGE

public static final int CONTROL_CHANGE
See Also:
Constant Field Values

PROGRAM_CHANGE

public static final int PROGRAM_CHANGE
See Also:
Constant Field Values

PITCH_BEND

public static final int PITCH_BEND
See Also:
Constant Field Values

SYSTEM_RESET

public static final int SYSTEM_RESET
See Also:
Constant Field Values

TEMPO_CHANGE

public static final int TEMPO_CHANGE
See Also:
Constant Field Values

TIME_SIGNATURE_CHANGE

public static final int TIME_SIGNATURE_CHANGE
See Also:
Constant Field Values
Constructor Detail

MidiMessage

public MidiMessage(int message,
                   int command)
Method Detail

setData

public void setData(byte[] data)

getData

public byte[] getData()

getType

public int getType()

getCommand

public int getCommand()

shortMessage

public static MidiMessage shortMessage(int command,
                                       int channel,
                                       int data1,
                                       int data2)

shortMessage

public static MidiMessage shortMessage(int command,
                                       int channel,
                                       int data)

shortMessage

public static MidiMessage shortMessage(int command)

metaMessage

public static MidiMessage metaMessage(int command,
                                      byte[] data)