Package spectrogramNoiseReduction
Class SpecNoiseMethod
java.lang.Object
spectrogramNoiseReduction.SpecNoiseMethod
- Direct Known Subclasses:
AverageSubtraction
,KernelSmoothing
,SpectrogramMedianFilter
,SpectrogramThreshold
Interface for multiple plugins to the spectrogram noise
reduction system.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotation
(PamProcess pamProcess) Get an annotation to go with this method.abstract int
getDelay()
abstract String
Get a longer description of the method in html format for hover texts in dialogs.abstract SpecNoiseDialogComponent
Get a component to include in the overall noise reductino dialogabstract String
getName()
Get a name for the method.abstract SpecNoiseNodeFX
getNode()
Get the FX node for the spectrogram method.abstract Serializable
Get the noise params for this method for storage between eunsabstract boolean
initialise
(int channelMap) Set up the noise reduction processabstract boolean
runNoiseReduction
(FFTDataUnit fftDataUnit) Run the noise reduction on the data in place.abstract boolean
setParams
(Serializable noiseParams) Set the params for this method - will check class is OK before casting.
-
Constructor Details
-
SpecNoiseMethod
public SpecNoiseMethod()
-
-
Method Details
-
getName
Get a name for the method.- Returns:
- String
-
getDescription
Get a longer description of the method in html format for hover texts in dialogs.- Returns:
- html description
-
runNoiseReduction
Run the noise reduction on the data in place.- Parameters:
fftData
- array of fft data (half fft length)- Returns:
- true if ran OK/
-
getDelay
public abstract int getDelay()- Returns:
- the delay imposed on the data by this operation.
-
initialise
public abstract boolean initialise(int channelMap) Set up the noise reduction process- Returns:
- true if initialised OK.
-
setParams
Set the params for this method - will check class is OK before casting.- Parameters:
noiseParams
-- Returns:
- true if parameters match
-
getParams
Get the noise params for this method for storage between euns- Returns:
-
getDialogComponent
Get a component to include in the overall noise reductino dialog- Returns:
- component
-
getAnnotation
Get an annotation to go with this method.- Parameters:
pamProcess
- parent process- Returns:
- annotation
-
getNode
Get the FX node for the spectrogram method.- Returns:
- the FX node for the spectrogram method.
-