Package heronarts.lx.audio
Class LXAudioEngine.Meter
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.LXRunnableComponent
heronarts.lx.modulator.LXModulator
heronarts.lx.audio.DecibelMeter
heronarts.lx.audio.GraphicMeter
heronarts.lx.audio.LXAudioEngine.Meter
- All Implemented Interfaces:
LXComponent.Renamable,LXLoopTask,LXPath,LXSerializable,LXOscComponent,LXNormalizedParameter,LXParameter,LXParameterListener
- Enclosing class:
LXAudioEngine
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.modulator.LXModulator
LXModulator.Device, LXModulator.Global, LXModulator.PlaceholderNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.parameter.LXNormalizedParameter
LXNormalizedParameter.OscModeNested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.UnitsNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DecibelMeterMetering of the left channel onlyfinal DecibelMeterMetering of the right channel onlyFields inherited from class heronarts.lx.audio.GraphicMeter
bands, fft, numBands, slopeFields inherited from class heronarts.lx.audio.DecibelMeter
attack, attackGain, buffer, gain, LOG_10, range, release, releaseGainFields inherited from class heronarts.lx.modulator.LXModulator
crashed, midiFilter, midiSourceFields inherited from class heronarts.lx.LXRunnableComponent
runMs, running, triggerFields inherited from class heronarts.lx.LXComponent
childArrays, children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFileFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeValue(double deltaMs) Implementation method to advance the modulator's internal state.voidonStart()Optional subclass method when start happens.voidonStop()Optional subclass method when stop happens.setBuffer(LXAudioComponent device) Methods inherited from class heronarts.lx.audio.GraphicMeter
getAverage, getAveragef, getBand, getBandf, getDecibels, getDecibelsf, getNumBands, getRaw, getSamples, getSquare, getSquarefMethods inherited from class heronarts.lx.audio.DecibelMeter
getDecibels, getDecibelsf, getExponent, getNormalized, getNormalizedf, getPeak, getPeakf, getRaw, getSquare, getSquaref, setBuffer, setNormalizedMethods inherited from class heronarts.lx.modulator.LXModulator
autostart, disableAutoStart, getCrash, getCrashStackTrace, getFormatter, getIndex, getOscAddress, getOscPath, getPath, getPolarity, getUnits, getValue, isMappingSource, loop, onSetValue, run, setComponent, setFormatter, setIndex, setMappingSource, setPolarity, setUnits, setValue, setValue, updateValueMethods inherited from class heronarts.lx.LXRunnableComponent
isRunning, onParameterChanged, onReset, onTrigger, postRun, reset, start, stop, toggle, triggerMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, dispose, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscLabel, getParameter, getParameters, getParent, handleOscMessage, hasParameter, isValidOscParameter, load, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.parameter.LXNormalizedParameter
getBaseNormalized, getBaseNormalizedf, getOscMode, getValueFromNormalized, isWrappableMethods inherited from interface heronarts.lx.osc.LXOscComponent
getOscAddress, handleOscMessageMethods inherited from interface heronarts.lx.parameter.LXParameter
dispose, getBaseValue, getBaseValuef, getFormatter, getLabel, getParentParameter, getPolarity, getUnits, getValue, getValuef, isMappable, reset, setComponent, setFormatter, setMappable, setValueMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, getPath, isDescendant
-
Field Details
-
left
Metering of the left channel only -
right
Metering of the right channel only
-
-
Method Details
-
setBuffer
-
onStart
public void onStart()Description copied from class:LXRunnableComponentOptional subclass method when start happens.- Overrides:
onStartin classLXRunnableComponent
-
onStop
public void onStop()Description copied from class:LXRunnableComponentOptional subclass method when stop happens.- Overrides:
onStopin classLXRunnableComponent
-
computeValue
public double computeValue(double deltaMs) Description copied from class:LXModulatorImplementation method to advance the modulator's internal state. Subclasses must provide and update value appropriately.- Overrides:
computeValuein classGraphicMeter- Parameters:
deltaMs- Number of milliseconds to advance by- Returns:
- Computed value
-