Class AudioSpectrumFunctions.LinearBackgroundRemoval
- java.lang.Object
-
- com.tagtraum.audiokern.audioprocessor.AudioSpectrumFunctions.LinearBackgroundRemoval
-
- All Implemented Interfaces:
MapFunction<LinearFrequencySpectrum>
- Enclosing class:
- AudioSpectrumFunctions
public static class AudioSpectrumFunctions.LinearBackgroundRemoval extends Object implements MapFunction<LinearFrequencySpectrum>
Implements a noise reduction/whitening scheme for linear-frequency spectra.
-
-
Constructor Summary
Constructors Constructor Description LinearBackgroundRemoval()
LinearBackgroundRemoval(boolean standardize)
LinearBackgroundRemoval(boolean standardize, float meanFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinearFrequencySpectrum
map(LinearFrequencySpectrum spectrum)
-
-
-
Constructor Detail
-
LinearBackgroundRemoval
public LinearBackgroundRemoval(boolean standardize, float meanFactor)
- Parameters:
standardize
- standardize resultsmeanFactor
- factor a peak must be above average, so that it is not cancelled out
-
LinearBackgroundRemoval
public LinearBackgroundRemoval(boolean standardize)
-
LinearBackgroundRemoval
public LinearBackgroundRemoval()
-
-
Method Detail
-
map
public LinearFrequencySpectrum map(LinearFrequencySpectrum spectrum)
- Specified by:
map
in interfaceMapFunction<LinearFrequencySpectrum>
-
-