Package heronarts.lx.midi
Class MidiFilterParameter
java.lang.Object
heronarts.lx.parameter.LXListenableParameter
heronarts.lx.parameter.AggregateParameter
heronarts.lx.midi.MidiFilterParameter
- All Implemented Interfaces:
LXPath
,LXParameter
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units
-
Field Summary
Modifier and TypeFieldDescriptionfinal BooleanParameter
final DiscreteParameter
final DiscreteParameter
final DiscreteParameter
final DiscreteParameter
Fields inherited from class heronarts.lx.parameter.AggregateParameter
subparameters
Fields inherited from class heronarts.lx.parameter.LXListenableParameter
description
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
ConstructorDescriptionMidiFilterParameter
(String label) MidiFilterParameter
(String label, boolean enabled) -
Method Summary
Modifier and TypeMethodDescriptionboolean
filter
(LXShortMessage message) Check whether this MIDI note passes through the filterprotected void
Subclasses should update the main parameter value when a sub-parameter has changedsetDescription
(String description) protected void
updateSubparameters
(double value) Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.Methods inherited from class heronarts.lx.parameter.AggregateParameter
addSubparameter, dispose, getRemoteControl, onUpdateValue, updateValue
Methods inherited from class heronarts.lx.parameter.LXListenableParameter
addListener, addListener, bang, getDescription, getFormatter, getLabel, getParent, getParentParameter, getPath, getPolarity, getUnits, getValue, incrementValue, isDefault, isMappable, removeListener, reset, reset, setComponent, setFormatter, setMappable, setPolarity, setUnits, setValue, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getValuef
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
enabled
-
channel
-
minNote
-
noteRange
-
minVelocity
-
velocityRange
-
-
Constructor Details
-
MidiFilterParameter
-
MidiFilterParameter
-
-
Method Details
-
setDescription
- Overrides:
setDescription
in classLXListenableParameter
-
updateSubparameters
protected void updateSubparameters(double value) Description copied from class:AggregateParameter
Subclasses should update the subparameter values based upon the raw parameter value if it has been set directly.- Specified by:
updateSubparameters
in classAggregateParameter
-
onSubparameterUpdate
Description copied from class:AggregateParameter
Subclasses should update the main parameter value when a sub-parameter has changed- Specified by:
onSubparameterUpdate
in classAggregateParameter
- Parameters:
p
- Subparameter that has changed
-
resetNoteStack
-
filter
Check whether this MIDI note passes through the filter- Parameters:
message
- MIDI message- Returns:
- True if this MIDI message passes the filter
-