public class FourierTransform extends Object
Modifier and Type | Field and Description |
---|---|
static float |
BASE_BAND_HZ |
static int |
DEFAULT_NUM_BANDS |
static float |
LOG_2 |
Constructor and Description |
---|
FourierTransform(int bufferSize,
int sampleRate) |
Modifier and Type | Method and Description |
---|---|
FourierTransform |
compute(float[] samples) |
float |
get(int i) |
float |
getAverage(float minHz,
float maxHz) |
float |
getBand(int i) |
float |
getBandOctaveRatio() |
int |
getNumBands() |
int |
getSampleRate() |
int |
getSize() |
FourierTransform |
setNumBands(int numBands) |
FourierTransform |
setWindow(heronarts.lx.audio.FourierTransform.Window window) |
public static final float LOG_2
public static final float BASE_BAND_HZ
public static final int DEFAULT_NUM_BANDS
public int getSize()
public int getSampleRate()
public FourierTransform setWindow(heronarts.lx.audio.FourierTransform.Window window)
public FourierTransform compute(float[] samples)
public float get(int i)
public FourierTransform setNumBands(int numBands)
public int getNumBands()
public float getBandOctaveRatio()
public float getBand(int i)
public float getAverage(float minHz, float maxHz)
LX library by Mark C. Slee. © 2012-2020