public class ConstantQTransform extends AbstractSignalProcessor<AudioBuffer,LogFrequencySpectrum>
ConstantQTransformFactory
.
Since constant Q transforms are often initialized with arguments from the AudioFormat
the transform is created at runtime with the first input AudioBuffer
using a ConstantQTransformFactory
.ConstantQTransformFactory
,
Transform
lastOut, signalProcessorSupport
Constructor and Description |
---|
ConstantQTransform(float minFrequency,
float maxFrequency,
int binsPerOctave) |
ConstantQTransform(float minFrequency,
float maxFrequency,
int binsPerOctave,
float threshold) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
protected LogFrequencySpectrum |
processNext(AudioBuffer buffer)
Processes the given input and returns some output.
|
void |
reset()
Calls
SignalSource.reset() , if a source is set. |
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, flush, getConnectedProcessors, getConnectedSource, getId, getOutput, process, read, setId
public ConstantQTransform(float minFrequency, float maxFrequency, int binsPerOctave)
minFrequency
- min frequencymaxFrequency
- max frequencybinsPerOctave
- bins per octavepublic ConstantQTransform(float minFrequency, float maxFrequency, int binsPerOctave, float threshold)
public void reset()
AbstractSignalProcessor
SignalSource.reset()
, if a source is set.reset
in interface SignalSource<LogFrequencySpectrum>
reset
in class AbstractSignalProcessor<AudioBuffer,LogFrequencySpectrum>
protected LogFrequencySpectrum processNext(AudioBuffer buffer) throws IOException
AbstractSignalProcessor
processNext
in class AbstractSignalProcessor<AudioBuffer,LogFrequencySpectrum>
buffer
- input guaranteed not to be null
.IOException
- if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.