org.herac.tuxguitar.io.midi.base
Class MidiMessage
java.lang.Object
org.herac.tuxguitar.io.midi.base.MidiMessage
public class MidiMessage
- extends java.lang.Object
Constructor Summary |
MidiMessage(int message,
int command)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MidiMessage
public MidiMessage(int message,
int command)
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)