| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a clone of this instance.Overrides javax. Creates a new object of the same class and with the same contents as this object. |
| public int | getChannel()
Overrides javax. Obtains the MIDI channel associated with this event. |
| public int | getCommand()
Overrides javax. Obtains the MIDI command associated with this event. |
| public int | getData1()
Overrides javax. Obtains the first data byte in the message. |
| public int | getData2()
Overrides javax. Obtains the second data byte in the message. |
| public int | getLength()
Overrides javax. Obtains the total length of the MIDI message in bytes. |
| public byte[] | |
| pack-priv int | |
| public int | getStatus()
Overrides javax. Obtains the status byte for the MIDI message. |
| public void | setMessage(int status)
Overrides javax. Sets the parameters for a MIDI message that takes no data bytes. |
| public void | setMessage(int status, int data1, int data2)
Overrides javax. Sets the parameters for a MIDI message that takes one or two data bytes. |
| public void | setMessage(int command, int channel, int data1, int data2)
Overrides javax. Sets the short message parameters for a channel message which takes up to two data bytes. |
| packedMsg | back to summary |
|---|---|
| private int packedMsg | |
| FastShortMessage | back to summary |
|---|---|
| pack-priv FastShortMessage(int packedMsg) throws InvalidMidiDataException | |
| FastShortMessage | back to summary |
|---|---|
| pack-priv FastShortMessage(ShortMessage msg) Creates a FastShortMessage from this ShortMessage | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides javax. Creates a new object of the same class and with the same contents as this object. | |
| getChannel | back to summary |
|---|---|
| public int getChannel() Overrides javax. Doc from javax. Obtains the MIDI channel associated with this event. This method assumes that the event is a MIDI channel message; if not, the return value will not be meaningful.
| |
| getCommand | back to summary |
|---|---|
| public int getCommand() Overrides javax. Doc from javax. Obtains the MIDI command associated with this event. This method assumes that the event is a MIDI channel message; if not, the return value will not be meaningful.
| |
| getData1 | back to summary |
|---|---|
| public int getData1() Overrides javax. Doc from javax. Obtains the first data byte in the message.
| |
| getData2 | back to summary |
|---|---|
| public int getData2() Overrides javax. Doc from javax. Obtains the second data byte in the message.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Overrides javax. Doc from javax. Obtains the total length of the MIDI message in bytes. A MIDI message consists of one status byte and zero or more data bytes. The return value ranges from 1 for system real-time messages, to 2 or 3 for channel messages, to any value for meta and system exclusive messages.
| |
| getMessage | back to summary |
|---|---|
| public byte[] getMessage() Overrides javax. Doc from javax. Obtains the MIDI message data. The first byte of the returned byte array
is the status byte of the message. Any subsequent bytes up to the length
of the message are data bytes. The byte array may have a length which is
greater than that of the actual message; the total length of the message
in bytes is reported by the
| |
| getPackedMsg | back to summary |
|---|---|
| pack-priv int getPackedMsg() | |
| getStatus | back to summary |
|---|---|
| public int getStatus() Overrides javax. Doc from javax. Obtains the status byte for the MIDI message. The status "byte" is
represented as an integer; see the
discussion in the
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(int status) throws InvalidMidiDataException Overrides javax. Doc from javax. Sets the parameters for a MIDI message that takes no data bytes.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(int status, int data1, int data2) throws InvalidMidiDataException Overrides javax. Doc from javax. Sets the parameters for a MIDI message that takes one or two data bytes. If the message takes only one data byte, the second data byte is ignored; if the message does not take any data bytes, both data bytes are ignored.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(int command, int channel, int data1, int data2) throws InvalidMidiDataException Overrides javax. Doc from javax. Sets the short message parameters for a channel message which takes up to two data bytes. If the message only takes one data byte, the second data byte is ignored; if the message does not take any data bytes, both data bytes are ignored.
| |