public class MidiShortMessageEvent extends MidiMessageEvent<ShortMessage>
MidiMessageEvent.Category| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_CHANNEL
The MIDI channel attribute name.
|
static String |
ATTR_COMMAND
The MIDI command attribute name.
|
static String |
ATTR_DATA1
The MIDI data1 attribute name.
|
static String |
ATTR_DATA2
The MIDI data2 attribute name.
|
ATTR_MESSAGE, ATTR_TIME_STAMPclonePolicy, DEFAULT_PRIORITY, id, name, time| Constructor and Description |
|---|
MidiShortMessageEvent(String name,
org.openksavi.sponge.event.EventClonePolicy clonePolicy,
ShortMessage message)
Creates a new MIDI ShortMessage Sponge event.
|
MidiShortMessageEvent(String name,
org.openksavi.sponge.event.EventClonePolicy clonePolicy,
ShortMessage message,
Long timeStamp)
Creates a new MIDI ShortMessage Sponge event.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doGet(String name,
boolean useDefault,
T defaultValue) |
Map<String,Object> |
getAll() |
MidiMessageEvent.Category |
getCategory() |
int |
getChannel()
Returns the MIDI short message channel.
|
int |
getCommand()
Returns the MIDI short message command.
|
int |
getData1()
Returns the MIDI short message data1.
|
int |
getData2()
Returns the MIDI short message data2.
|
String |
getMessageString() |
boolean |
has(String name) |
MidiShortMessageEvent |
set(String name,
Object value) |
void |
setChannel(int channel)
Sets the MIDI short message channel.
|
void |
setCommand(int command)
Sets the MIDI short message command.
|
void |
setData1(int data1)
Sets the MIDI short message data1.
|
void |
setData2(int data2)
Sets the MIDI short message data2.
|
getMessage, getTimeStamp, setMessage, setTimeStampclone, equalsByAttributes, equalsById, get, get, getDefaultAttributeValue, getId, getName, getOrDefault, getPriority, getTime, setId, setTime, toString, toStringBase, valudateAttributepublic static final String ATTR_COMMAND
public static final String ATTR_CHANNEL
public static final String ATTR_DATA1
public static final String ATTR_DATA2
public MidiShortMessageEvent(String name, org.openksavi.sponge.event.EventClonePolicy clonePolicy, ShortMessage message, Long timeStamp)
name - the event name.clonePolicy - the event clone policy.message - the MIDI ShortMessage.timeStamp - the MIDI timeStamp.public MidiShortMessageEvent(String name, org.openksavi.sponge.event.EventClonePolicy clonePolicy, ShortMessage message)
name - the event name.clonePolicy - the event clone policy.message - the MIDI ShortMessage.public int getCommand()
public void setCommand(int command)
command - the MIDI short message command.public int getChannel()
public void setChannel(int channel)
channel - the MIDI short message channel.public int getData1()
public void setData1(int data1)
data1 - the MIDI short message data1.public int getData2()
public void setData2(int data2)
data2 - the MIDI short message data2.public <T> T doGet(String name, boolean useDefault, T defaultValue)
doGet in class MidiMessageEvent<ShortMessage>public MidiShortMessageEvent set(String name, Object value)
set in interface org.openksavi.sponge.event.Eventset in class MidiMessageEvent<ShortMessage>public boolean has(String name)
has in interface org.openksavi.sponge.event.Eventhas in class MidiMessageEvent<ShortMessage>public Map<String,Object> getAll()
getAll in interface org.openksavi.sponge.event.EventgetAll in class MidiMessageEvent<ShortMessage>public MidiMessageEvent.Category getCategory()
getCategory in class MidiMessageEvent<ShortMessage>public String getMessageString()
getMessageString in class MidiMessageEvent<ShortMessage>Copyright © 2016–2018 Softelnet. All rights reserved.