Package soundPlayback.preprocess
Class EnvelopeTracer
java.lang.Object
soundPlayback.preprocess.EnvelopeTracer
- All Implemented Interfaces:
PamSettings,SettingsNameProvider,PlaybackPreprocess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublelongGet a component to include in the PAMGuard side panel.Get a node to include in the PAMGuard side panel.booleanisActive()return true if the preprocess is doing anything.voidvoidprocessDataUnit(RawDataUnit inputDataUnit, boolean mustCopy) Process a data unit.voidreset(double inputSampleRate, int channelMap) Reset or prepare the process
Will almost definitely need another less abstract process for setting more specific task parameters.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetMixRatio(double mixRatio)
-
Constructor Details
-
EnvelopeTracer
-
-
Method Details
-
reset
public void reset(double inputSampleRate, int channelMap) Description copied from interface:PlaybackPreprocessReset or prepare the process
Will almost definitely need another less abstract process for setting more specific task parameters.- Specified by:
resetin interfacePlaybackPreprocess- Parameters:
channelMap- map of channels that are going to get processed.
-
processDataUnit
Description copied from interface:PlaybackPreprocessProcess a data unit.- Specified by:
processDataUnitin interfacePlaybackPreprocess- Parameters:
inputDataUnit- source data unit.mustCopy- data must not be modified in place. This will be set true for the rist unit in a chain in the playback system (generally a decimator) after that it will be false meaning that processes are free to modify the data in place so long as it remains consistent in length, etc.- Returns:
- a Raw data unit which may or may not be the same as the input one.
-
getSideParComponent
Description copied from interface:PlaybackPreprocessGet a component to include in the PAMGuard side panel.- Specified by:
getSideParComponentin interfacePlaybackPreprocess- Returns:
- Component for the side panel
-
isActive
public boolean isActive()Description copied from interface:PlaybackPreprocessreturn true if the preprocess is doing anything.- Specified by:
isActivein interfacePlaybackPreprocess- Returns:
- Component for the side panel
-
getUnitName
- Specified by:
getUnitNamein interfaceSettingsNameProvider- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitTypein interfacePamSettings- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReferencein interfacePamSettings- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersionin interfacePamSettings- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettingsin interfacePamSettings- Parameters:
pamControlledUnitSettings-- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
setMixRatio
public void setMixRatio(double mixRatio) -
getMixRatio
public double getMixRatio() -
preFilterMenu
-
postFilterMenu
-
getStateText
-
getSideParPane
Description copied from interface:PlaybackPreprocessGet a node to include in the PAMGuard side panel.- Specified by:
getSideParPanein interfacePlaybackPreprocess- Returns:
- pane for the side panel
-