public interface IMessageType
This interface represents a certain type of MIDI message. It can be implemented by classes representing either a single MIDI message or a certain type of messages.
It’s implemented by the following classes:
MessageTreeNode
– represents a type of MIDI messagesSingleMessage
– represents a certain MIDI messageThe implementing classes provide different kinds of options. Each option has a certain (arbitrary) ID and a value. Depending on the kind of option, the value can be a single value, a list of values or a range of values.
If the class represents a certain MIDI message, the value is always a single value and never a list or range.
Jan Trukenmüller
Modifier and Type | Field and Description |
---|---|
static int |
OPT_CHANNEL |
static int |
OPT_CONTROLLER |
static int |
OPT_LEAF_NODE |
static int |
OPT_LENGTH |
static int |
OPT_MESSAGE |
static int |
OPT_META_TYPE |
static int |
OPT_MSG_NUM |
static int |
OPT_NRPN |
static int |
OPT_RPN |
static int |
OPT_STATUS_BYTE |
static int |
OPT_SUB_ID_1 |
static int |
OPT_SUB_ID_2 |
static int |
OPT_SUMMARY |
static int |
OPT_SYSEX_CHANNEL |
static int |
OPT_TEMPO_BPM |
static int |
OPT_TEMPO_MPQ |
static int |
OPT_TEXT |
static int |
OPT_TICK |
static int |
OPT_TRACK |
static int |
OPT_VENDOR_ID |
static int |
OPT_VENDOR_NAME |
static int[] |
OPTIONS
Contains all option IDs in the right order.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDistinctOptions(int id)
Returns the given option’s value, list or null.
|
java.lang.String |
getDistinctOptions(int id,
java.lang.String separator)
Returns the given option’s value, list or null.
|
java.lang.Object |
getOption(int id)
Returns the value of a single option.
|
java.lang.String |
getRange(int id)
Returns the given option’s value, range or null.
|
static final int OPT_TICK
static final int OPT_TRACK
static final int OPT_MSG_NUM
static final int OPT_LEAF_NODE
static final int OPT_STATUS_BYTE
static final int OPT_META_TYPE
static final int OPT_VENDOR_ID
static final int OPT_VENDOR_NAME
static final int OPT_SUB_ID_1
static final int OPT_SUB_ID_2
static final int OPT_CONTROLLER
static final int OPT_MESSAGE
static final int OPT_CHANNEL
static final int OPT_LENGTH
static final int OPT_SYSEX_CHANNEL
static final int OPT_RPN
static final int OPT_NRPN
static final int OPT_TEXT
static final int OPT_TEMPO_MPQ
static final int OPT_TEMPO_BPM
static final int OPT_SUMMARY
static final int[] OPTIONS
Contains all option IDs in the right order.
java.lang.Object getOption(int id)
Returns the value of a single option.
id
- The option ID.java.lang.String getRange(int id)
Returns the given option’s value, range or null.
id
- The option ID.java.lang.String getDistinctOptions(int id)
Returns the given option’s value, list or null.
Same as getDistinctOptions(int, String)
using "**, **" as the separator.
id
- The option ID.java.lang.String getDistinctOptions(int id, java.lang.String separator)
Returns the given option’s value, list or null.
id
- The option ID.separator
- The string to be used in order to separate the values.