uk.org.toot.midi.message
Class SysexMsg
java.lang.Object
uk.org.toot.midi.message.MidiMsg
uk.org.toot.midi.message.SysexMsg
- Direct Known Subclasses:
- ControlSysexMsg, UniversalSysexMsg
public class SysexMsg
- extends MidiMsg
The class for creating accessing and mutating arbitrary length MidiMessages
representing System Exclusive messages without knowledge of the
implementation class.
Field Summary |
static int |
END_OF_EXCLUSIVE
Status byte for End of System Exclusive message (0xF7, or 247). |
static int |
ID_NON_COMMERCIAL
ID byte for Non-commercial/Educational/Research System Exclusive |
static int |
SPECIAL_SYSTEM_EXCLUSIVE
Status byte for Special System Exclusive message (0xF7, or 247), which is used
in MIDI files. |
static int |
SYSTEM_EXCLUSIVE
Status byte for System Exclusive message (0xF0, or 240). |
Method Summary |
static javax.sound.midi.MidiMessage |
createSysex(byte[] data,
int length)
|
static boolean |
isSysex(int status)
|
static boolean |
isSysex(javax.sound.midi.MidiMessage msg)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_EXCLUSIVE
public static final int SYSTEM_EXCLUSIVE
- Status byte for System Exclusive message (0xF0, or 240).
- See Also:
- Constant Field Values
SPECIAL_SYSTEM_EXCLUSIVE
public static final int SPECIAL_SYSTEM_EXCLUSIVE
- Status byte for Special System Exclusive message (0xF7, or 247), which is used
in MIDI files. It has the same value as END_OF_EXCLUSIVE, which
is used in the real-time "MIDI wire" protocol.
- See Also:
- Constant Field Values
END_OF_EXCLUSIVE
public static final int END_OF_EXCLUSIVE
- Status byte for End of System Exclusive message (0xF7, or 247).
- See Also:
- Constant Field Values
ID_NON_COMMERCIAL
public static final int ID_NON_COMMERCIAL
- ID byte for Non-commercial/Educational/Research System Exclusive
- See Also:
- Constant Field Values
SysexMsg
public SysexMsg()
isSysex
public static boolean isSysex(javax.sound.midi.MidiMessage msg)
isSysex
public static boolean isSysex(int status)
createSysex
public static javax.sound.midi.MidiMessage createSysex(byte[] data,
int length)
throws javax.sound.midi.InvalidMidiDataException
- Throws:
javax.sound.midi.InvalidMidiDataException
Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.