public abstract class LXClipLane extends Object implements LXSerializable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
LXClip |
clip |
List<LXClipEvent> |
events |
protected static String |
KEY_LANE_TYPE |
protected List<LXClipEvent> |
mutableEvents |
MutableParameter |
onChange |
protected static String |
VALUE_LANE_TYPE_MIDI_NOTE |
protected static String |
VALUE_LANE_TYPE_PARAMETER |
protected static String |
VALUE_LANE_TYPE_PATTERN |
Modifier | Constructor and Description |
---|---|
protected |
LXClipLane(LXClip clip) |
Modifier and Type | Method and Description |
---|---|
protected LXClipLane |
appendEvent(LXClipEvent event) |
LXClipLane |
clearSelection(double fromBasis,
double toBasis) |
abstract String |
getLabel() |
protected LXClipLane |
insertEvent(LXClipEvent event) |
void |
load(LX lx,
JsonObject obj)
Restores this instance from a JSON object
|
protected abstract LXClipEvent |
loadEvent(LX lx,
JsonObject eventObj) |
LXClipLane |
moveEvent(LXClipEvent event,
double basis) |
LXClipLane |
removeEvent(LXClipEvent event) |
void |
save(LX lx,
JsonObject obj)
Serializes this instance into the JSON object
|
public final MutableParameter onChange
public final LXClip clip
protected final List<LXClipEvent> mutableEvents
public final List<LXClipEvent> events
protected static final String KEY_LANE_TYPE
protected static final String VALUE_LANE_TYPE_PARAMETER
protected static final String VALUE_LANE_TYPE_PATTERN
protected static final String VALUE_LANE_TYPE_MIDI_NOTE
protected LXClipLane(LXClip clip)
protected LXClipLane appendEvent(LXClipEvent event)
protected LXClipLane insertEvent(LXClipEvent event)
public LXClipLane moveEvent(LXClipEvent event, double basis)
public abstract String getLabel()
public LXClipLane clearSelection(double fromBasis, double toBasis)
public LXClipLane removeEvent(LXClipEvent event)
public void load(LX lx, JsonObject obj)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobj
- Object to deserializeprotected abstract LXClipEvent loadEvent(LX lx, JsonObject eventObj)
public void save(LX lx, JsonObject obj)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobj
- Object to serialize intoLX library by Mark C. Slee. © 2012-2020