Package heronarts.lx.audio
Class FourierTransform
java.lang.Object
heronarts.lx.audio.FourierTransform
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final intstatic final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompute(float[] samples) floatget(int i) floatgetAverage(float minHz, float maxHz) floatgetBand(int i) floatintintintgetSize()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)
-