public abstract class LXMidiMapping extends Object implements LXSerializable
Modifier and Type | Class and Description |
---|---|
static class |
LXMidiMapping.ControlChange |
static class |
LXMidiMapping.Note |
static class |
LXMidiMapping.Type |
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
int |
channel |
LXParameter |
parameter |
LXMidiMapping.Type |
type |
Modifier | Constructor and Description |
---|---|
protected |
LXMidiMapping(LX lx,
int channel,
LXMidiMapping.Type type,
LXParameter parameter) |
protected |
LXMidiMapping(LX lx,
JsonObject object,
LXMidiMapping.Type type) |
Modifier and Type | Method and Description |
---|---|
static LXMidiMapping |
create(LX lx,
JsonObject object) |
static LXMidiMapping |
create(LX lx,
LXShortMessage message,
LXParameter parameter) |
abstract String |
getDescription() |
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
protected void |
setNormalized(double normalized) |
protected void |
setValue(boolean value) |
protected void |
toggleValue() |
public final int channel
public final LXMidiMapping.Type type
public final LXParameter parameter
protected LXMidiMapping(LX lx, int channel, LXMidiMapping.Type type, LXParameter parameter)
protected LXMidiMapping(LX lx, JsonObject object, LXMidiMapping.Type type)
public static LXMidiMapping create(LX lx, LXShortMessage message, LXParameter parameter)
public static LXMidiMapping create(LX lx, JsonObject object)
public abstract String getDescription()
protected void setValue(boolean value)
protected void setNormalized(double normalized)
protected void toggleValue()
public void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020