Class AudioSpectrumFunctions.LogFrequencySpectrumToPitchAveraging
- java.lang.Object
-
- com.tagtraum.audiokern.audioprocessor.AudioSpectrumFunctions.LogFrequencySpectrumToPitchAveraging
-
- All Implemented Interfaces:
MapFunction<LogFrequencySpectrum>
- Enclosing class:
- AudioSpectrumFunctions
public static class AudioSpectrumFunctions.LogFrequencySpectrumToPitchAveraging extends Object implements MapFunction<LogFrequencySpectrum>
Effectively down-samples the bin resolution of a
LogFrequencySpectrum
to one bin per semitone by calculating a weighted average.The
LogFrequencySpectrum.getBinsPerSemitone()
of the source spectrum should contain an integer for this to work.
-
-
Constructor Summary
Constructors Constructor Description LogFrequencySpectrumToPitchAveraging()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
LogFrequencySpectrum
map(LogFrequencySpectrum data)
String
toString()
-
-
-
Method Detail
-
map
public LogFrequencySpectrum map(LogFrequencySpectrum data)
- Specified by:
map
in interfaceMapFunction<LogFrequencySpectrum>
-
-