Package heronarts.lx.midi
Class LXMidiMapping
java.lang.Object
heronarts.lx.midi.LXMidiMapping
- All Implemented Interfaces:
LXSerializable
- Direct Known Subclasses:
LXMidiMapping.ControlChange,LXMidiMapping.Note
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enumNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BooleanParameterfinal intfinal DiscreteParameterfinal booleanfinal booleanfinal LXNormalizedParameterfinal LXMidiMapping.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLXMidiMapping(LX lx, int channel, LXMidiMapping.Type type, LXNormalizedParameter parameter) protectedLXMidiMapping(LX lx, JsonObject object, LXMidiMapping.Type type) -
Method Summary
Modifier and TypeMethodDescriptionstatic LXMidiMappingcreate(LX lx, JsonObject object) static LXMidiMappingcreate(LX lx, LXShortMessage message, LXNormalizedParameter parameter) abstract Stringvoidload(LX lx, JsonObject object) Restores this instance from a JSON objectprotected static BoundedParametermakeBoundedRangeParameter(LXNormalizedParameter parameter, boolean on, String label, String description) protected static DiscreteParametermakeDiscreteRangeParameter(DiscreteParameter parameter, boolean on, String label, String description) voidsave(LX lx, JsonObject object) Serializes this instance into the JSON objectprotected voidsetValue(boolean value)
-
Field Details
-
channel
public final int channel -
type
-
parameter
-
isDiscrete
public final boolean isDiscrete -
discreteParameter
-
isBoolean
public final boolean isBoolean -
booleanParameter
-
-
Constructor Details
-
LXMidiMapping
protected LXMidiMapping(LX lx, int channel, LXMidiMapping.Type type, LXNormalizedParameter parameter) -
LXMidiMapping
-
-
Method Details
-
create
-
create
-
getDescription
-
setValue
protected void setValue(boolean value) -
save
Description copied from interface:LXSerializableSerializes this instance into the JSON object- Specified by:
savein interfaceLXSerializable- Parameters:
lx- LX instanceobject- Object to serialize into
-
load
Description copied from interface:LXSerializableRestores this instance from a JSON object- Specified by:
loadin interfaceLXSerializable- Parameters:
lx- LX instanceobject- Object to deserialize
-
makeDiscreteRangeParameter
protected static DiscreteParameter makeDiscreteRangeParameter(DiscreteParameter parameter, boolean on, String label, String description) -
makeBoundedRangeParameter
protected static BoundedParameter makeBoundedRangeParameter(LXNormalizedParameter parameter, boolean on, String label, String description)
-