public final class MidiConstants extends Object
Modifier and Type | Field and Description |
---|---|
static int[] |
CHANNEL_BYTE_LENGTHS
Number of bytes in a message nc from 8c to Ec
|
static byte |
STATUS_ACTIVE_SENSING |
static byte |
STATUS_CHANNEL_MASK |
static byte |
STATUS_CHANNEL_PRESSURE |
static byte |
STATUS_COMMAND_MASK |
static byte |
STATUS_CONTINUE |
static byte |
STATUS_CONTROL_CHANGE |
static byte |
STATUS_END_SYSEX |
static byte |
STATUS_MIDI_TIME_CODE |
static byte |
STATUS_NOTE_OFF |
static byte |
STATUS_NOTE_ON |
static byte |
STATUS_PITCH_BEND |
static byte |
STATUS_POLYPHONIC_AFTERTOUCH |
static byte |
STATUS_PROGRAM_CHANGE |
static byte |
STATUS_RESET |
static byte |
STATUS_SONG_POSITION |
static byte |
STATUS_SONG_SELECT |
static byte |
STATUS_START |
static byte |
STATUS_STOP |
static byte |
STATUS_SYSTEM_EXCLUSIVE |
static byte |
STATUS_TIMING_CLOCK |
static byte |
STATUS_TUNE_REQUEST |
static int[] |
SYSTEM_BYTE_LENGTHS
Number of bytes in a message Fn from F0 to FF
|
Constructor and Description |
---|
MidiConstants() |
Modifier and Type | Method and Description |
---|---|
static boolean |
allowRunningStatus(byte command) |
static boolean |
cancelsRunningStatus(byte command) |
static int |
getBytesPerMessage(byte statusByte)
MIDI messages, except for SysEx, are 1,2 or 3 bytes long.
|
static boolean |
isAllActiveSensing(byte[] msg,
int offset,
int count) |
public static final byte STATUS_COMMAND_MASK
public static final byte STATUS_CHANNEL_MASK
public static final byte STATUS_NOTE_OFF
public static final byte STATUS_NOTE_ON
public static final byte STATUS_POLYPHONIC_AFTERTOUCH
public static final byte STATUS_CONTROL_CHANGE
public static final byte STATUS_PROGRAM_CHANGE
public static final byte STATUS_CHANNEL_PRESSURE
public static final byte STATUS_PITCH_BEND
public static final byte STATUS_SYSTEM_EXCLUSIVE
public static final byte STATUS_MIDI_TIME_CODE
public static final byte STATUS_SONG_POSITION
public static final byte STATUS_SONG_SELECT
public static final byte STATUS_TUNE_REQUEST
public static final byte STATUS_END_SYSEX
public static final byte STATUS_TIMING_CLOCK
public static final byte STATUS_START
public static final byte STATUS_CONTINUE
public static final byte STATUS_STOP
public static final byte STATUS_ACTIVE_SENSING
public static final byte STATUS_RESET
public static final int[] CHANNEL_BYTE_LENGTHS
public static final int[] SYSTEM_BYTE_LENGTHS
public static int getBytesPerMessage(byte statusByte)
statusByte
- public static boolean isAllActiveSensing(byte[] msg, int offset, int count)
msg
- offset
- count
- public static boolean allowRunningStatus(byte command)
public static boolean cancelsRunningStatus(byte command)