Class SpectralFluxProcessor<T extends AudioBuffer>
- java.lang.Object
-
- com.tagtraum.jipes.AbstractSignalProcessor<T,Float>
-
- com.tagtraum.audiokern.audioprocessor.AbstractFluxProcessor<T>
-
- com.tagtraum.audiokern.audioprocessor.SpectralFluxProcessor<T>
-
- All Implemented Interfaces:
SignalProcessor<T,Float>
,SignalPullProcessor<T,Float>
,SignalSource<Float>
public class SpectralFluxProcessor<T extends AudioBuffer> extends AbstractFluxProcessor<T>
Computes the spectral flux between twoLinearFrequencySpectrum
. Flux is defined as some kind of distance between the powers/magnitudes of the spectra. To calculate the distance, aDistanceFunction
is used. To create the actualAbstractFluxProcessor.FluxCalculator
you can use the provided convenience methodscreateMagnitudeFluxCalculator(com.tagtraum.jipes.math.DistanceFunction, boolean)
andcreatePowerFluxCalculator(com.tagtraum.jipes.math.DistanceFunction, boolean)
.- Author:
- Hendrik Schreiber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tagtraum.audiokern.audioprocessor.AbstractFluxProcessor
AbstractFluxProcessor.AbstractFluxCalculator<T extends AudioBuffer>, AbstractFluxProcessor.FluxCalculator<T extends AudioBuffer>
-
-
Field Summary
-
Fields inherited from class com.tagtraum.audiokern.audioprocessor.AbstractFluxProcessor
EUCLIDEAN_DATA_FLUX_CALCULATOR
-
Fields inherited from class com.tagtraum.jipes.AbstractSignalProcessor
lastOut, signalProcessorSupport
-
-
Constructor Summary
Constructors Constructor Description SpectralFluxProcessor()
SpectralFluxProcessor(AbstractFluxProcessor.FluxCalculator<T> fluxCalculator)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends AudioBuffer>
AbstractFluxProcessor.FluxCalculator<E>createMagnitudeFluxCalculator(DistanceFunction<float[]> distanceFunction, boolean normalizeSpectra)
static <E extends AudioBuffer>
AbstractFluxProcessor.FluxCalculator<E>createPowerFluxCalculator(DistanceFunction<float[]> distanceFunction, boolean normalizeSpectra)
-
Methods inherited from class com.tagtraum.audiokern.audioprocessor.AbstractFluxProcessor
equals, flush, getFluxCalculator, hashCode, process, processNext, read, reset, setFluxCalculator, toString
-
Methods inherited from class com.tagtraum.jipes.AbstractSignalProcessor
connectTo, connectTo, connectTo, disconnectFrom, getConnectedProcessors, getConnectedSource, getId, getOutput, setId
-
-
-
-
Constructor Detail
-
SpectralFluxProcessor
public SpectralFluxProcessor(AbstractFluxProcessor.FluxCalculator<T> fluxCalculator)
-
SpectralFluxProcessor
public SpectralFluxProcessor()
-
-
Method Detail
-
createPowerFluxCalculator
public static <E extends AudioBuffer> AbstractFluxProcessor.FluxCalculator<E> createPowerFluxCalculator(DistanceFunction<float[]> distanceFunction, boolean normalizeSpectra)
-
createMagnitudeFluxCalculator
public static <E extends AudioBuffer> AbstractFluxProcessor.FluxCalculator<E> createMagnitudeFluxCalculator(DistanceFunction<float[]> distanceFunction, boolean normalizeSpectra)
-
-