Package heronarts.lx.audio
Class FourierTransform
java.lang.Object
heronarts.lx.audio.FourierTransform
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
static final int
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(float[] samples) float
get
(int i) float
getAverage
(float minHz, float maxHz) float
getBand
(int i) float
int
int
int
getSize()
setNumBands
(int numBands) setWindow
(heronarts.lx.audio.FourierTransform.Window window)
-
Field Details
-
LOG_2
public static final float LOG_2 -
BASE_BAND_HZ
public static final float BASE_BAND_HZ- See Also:
-
DEFAULT_NUM_BANDS
public static final int DEFAULT_NUM_BANDS- See Also:
-
-
Constructor Details
-
FourierTransform
public FourierTransform(int bufferSize, int sampleRate)
-
-
Method Details
-
getSize
public int getSize() -
getSampleRate
public int getSampleRate() -
setWindow
-
compute
-
get
public float get(int i) -
setNumBands
-
getNumBands
public int getNumBands() -
getBandOctaveRatio
public float getBandOctaveRatio() -
getBand
public float getBand(int i) -
getAverage
public float getAverage(float minHz, float maxHz)
-