Class AudioSpectrumFunctions.LogFrequencyBackgroundRemoval
- java.lang.Object
-
- com.tagtraum.audiokern.audioprocessor.AudioSpectrumFunctions.LogFrequencyBackgroundRemoval
-
- All Implemented Interfaces:
MapFunction<AudioSpectrum>
- Enclosing class:
- AudioSpectrumFunctions
public static class AudioSpectrumFunctions.LogFrequencyBackgroundRemoval extends Object implements MapFunction<AudioSpectrum>
Implements a noise reduction/whitening scheme for log-frequency spectra with an integer number of bins per semitone similar to the pre-processing defined in "Approximate note transcription for the improved identification of difficult chords" by M. Mauch and S. Dixon.
-
-
Constructor Summary
Constructors Constructor Description LogFrequencyBackgroundRemoval()
LogFrequencyBackgroundRemoval(boolean standardize)
LogFrequencyBackgroundRemoval(boolean standardize, int windowLength, float meanFactor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
float
getCoefficientOfVariation()
float
getFractionOfMax()
int
hashCode()
AudioSpectrum
map(AudioSpectrum spectrum)
void
setCoefficientOfVariation(float coefficientOfVariation)
void
setFractionOfMax(float fractionOfMax)
String
toString()
-
-
-
Constructor Detail
-
LogFrequencyBackgroundRemoval
public LogFrequencyBackgroundRemoval(boolean standardize, int windowLength, float meanFactor)
- Parameters:
standardize
- standardize resultswindowLength
- bins to average overmeanFactor
- factor a peak must be above average, so that it is not cancelled out
-
LogFrequencyBackgroundRemoval
public LogFrequencyBackgroundRemoval(boolean standardize)
-
LogFrequencyBackgroundRemoval
public LogFrequencyBackgroundRemoval()
-
-
Method Detail
-
getCoefficientOfVariation
public float getCoefficientOfVariation()
-
setCoefficientOfVariation
public void setCoefficientOfVariation(float coefficientOfVariation)
-
getFractionOfMax
public float getFractionOfMax()
-
setFractionOfMax
public void setFractionOfMax(float fractionOfMax)
-
map
public AudioSpectrum map(AudioSpectrum spectrum)
- Specified by:
map
in interfaceMapFunction<AudioSpectrum>
-
-