public class MidiCommand extends Object
MidiCommand consists of a command-byte and optional some further
data bytes. The command-byte contains a command in the higher nibble (four
bytes) and a channel in the lower nibble (four bytes).| Modifier and Type | Class and Description |
|---|---|
static class |
MidiCommand.Builder
Builder for
MidiCommands. |
| Constructor and Description |
|---|
MidiCommand(byte command,
byte[] data)
Create a
MidiCommand with a command-byte and optional data-bytes. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Channel |
getChannel()
Retrieve the
Channel-abstraction of the lower nibble (four bytes)
of the command-byte. |
Command |
getCommand()
Retrieve the
Command-abstraction of the higher nibble (four
bytes) of the command-byte. |
byte |
getCommandByte()
Retrieve the command-byte of the
MidiCommand. |
byte[] |
getData()
Retrieve the optional data bytes of the
MidiCommand. |
int |
hashCode() |
String |
toString() |
public MidiCommand(byte command,
byte[] data)
MidiCommand with a command-byte and optional data-bytes.command - The command-byte of the MidiCommand.data - The optiona data-bytes of the MidiCommand.public byte getCommandByte()
MidiCommand.MidiCommand.public Command getCommand()
Command-abstraction of the higher nibble (four
bytes) of the command-byte.Command-abstraction of the higher nibble (four bytes)
of the command-byte.public Channel getChannel()
Channel-abstraction of the lower nibble (four bytes)
of the command-byte.Channel-abstraction of the lower nibble (four bytes)
of the command-byte.public byte[] getData()
MidiCommand.MidiCommand.Copyright © 2016. All Rights Reserved.