|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.hogent.tarsos.dsp.ConstantQ
public class ConstantQ
Implementation of the Constant Q Transform.
References:
Judith C. Brown, Calculation of a constant Q spectral transform, J. Acoust. Soc. Am., 89(1): 425-434, 1991.
Judith C. Brown and Miller S. Puckette, An efficient algorithm for the calculation of a constant Q transform, J. Acoust. Soc. Am., Vol. 92, No. 5, November 1992
Benjamin Blankertz, The Constant Q Transform
Constructor Summary | |
---|---|
ConstantQ(float sampleRate,
float minFreq,
float maxFreq,
float binsPerOctave)
|
|
ConstantQ(float sampleRate,
float minFreq,
float maxFreq,
float binsPerOctave,
float threshold,
float spread)
|
Method Summary | |
---|---|
void |
calculate(float[] inputBuffer)
Take an input buffer with audio and calculate the constant Q coefficients. |
void |
calculateMagintudes(float[] inputBuffer)
Take an input buffer with audio and calculate the constant Q magnitudes. |
float[] |
getCoefficients()
Return the Constant Q coefficients calculated for the previous audio buffer. |
int |
getFFTlength()
|
float[] |
getFreqencies()
|
float[] |
getMagnitudes()
Returns the Constant Q magnitudes calculated for the previous audio buffer. |
int |
getNumberOfOutputBands()
|
boolean |
process(AudioEvent audioEvent)
Process the audio event. |
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing has finished. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantQ(float sampleRate, float minFreq, float maxFreq, float binsPerOctave)
public ConstantQ(float sampleRate, float minFreq, float maxFreq, float binsPerOctave, float threshold, float spread)
Method Detail |
---|
public void calculate(float[] inputBuffer)
inputBuffer
- The input buffer with audio.public void calculateMagintudes(float[] inputBuffer)
inputBuffer
- The input buffer with audio.public boolean process(AudioEvent audioEvent)
AudioProcessor
process
in interface AudioProcessor
audioEvent
- The audio event that contains audio data.
public void processingFinished()
AudioProcessor
processingFinished
in interface AudioProcessor
public float[] getFreqencies()
public float[] getMagnitudes()
public float[] getCoefficients()
public int getNumberOfOutputBands()
public int getFFTlength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |