public interface AudioSpectrum extends AudioBuffer
| Modifier and Type | Method and Description |
|---|---|
AudioSpectrum |
derive(float[] real,
float[] imaginary)
Creates a copy of this spectrum, but replaces its values with the given real and imaginary data.
|
int |
getBin(float frequency)
Computes a bin/index number for the given frequency.
|
float[] |
getFrequencies()
Array with frequency values in Hz corresponding to the bin numbers.
|
float |
getFrequency(int bin)
Returns the frequency of a given bin.
|
clone, getAudioFormat, getData, getFrameNumber, getImaginaryData, getMagnitudes, getNumberOfSamples, getPowers, getRealData, getTimestamp, getTimestampfloat[] getFrequencies()
getFrequency(int)float getFrequency(int bin)
getFrequencies(), as it is more efficient.bin - bin numbergetFrequencies()int getBin(float frequency)
frequency - frequencyAudioSpectrum derive(float[] real, float[] imaginary)
derive in interface AudioBufferreal - real dataimaginary - imaginary dataCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.