public class FFTTools
extends java.lang.Object
Constructor and Description |
---|
FFTTools() |
Modifier and Type | Method and Description |
---|---|
static int |
computeNearestPow2(int len)
Compute the nearest pow of 2 number from the number given in parameter
|
static long |
computeNearestPow2(long len) |
static double[] |
createRealAndImaginaryArray(byte[] b)
Convert a 16 bit sample frame to a real / imaginary array for the FFT
computation
|
static int |
findMidiNote(ManagedAudioInputStream mais) |
static double |
mainFreq(double[] d,
float framerate) |
public static int computeNearestPow2(int len)
len
- public static long computeNearestPow2(long len)
public static double mainFreq(double[] d, float framerate) throws java.lang.Exception
java.lang.Exception
public static double[] createRealAndImaginaryArray(byte[] b) throws java.lang.Exception
b
- java.lang.Exception
public static int findMidiNote(ManagedAudioInputStream mais) throws java.lang.Exception
java.lang.Exception