public class AudioTools
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
N
The Constant N.
|
| Constructor and Description |
|---|
AudioTools() |
| Modifier and Type | Method and Description |
|---|---|
static float[] |
calculateDerivative(float[] chunk,
float delta_t)
Calculate derivative.
|
static float[] |
calculateEnergy(float[] chunk)
Calculate energy.
|
static double[] |
convertByteDouble(byte[] buffer,
int offset,
int length)
Convert byte double.
|
static byte[] |
convertDoubleByte(double[] buffer,
int offset,
int length)
Convert double byte.
|
static void |
main(java.lang.String[] args)
The main method.
|
static int[] |
onsetDetection(float[] chunk,
float threshold)
Encontra os poss�veis onset em um sinal de �udio.
|
private static final int N
public static float[] calculateEnergy(float[] chunk)
chunk - the chunkpublic static float[] calculateDerivative(float[] chunk,
float delta_t)
chunk - the chunkdelta_t - the delta_tpublic static int[] onsetDetection(float[] chunk,
float threshold)
chunk - the chunkthreshold - the thresholdpublic static byte[] convertDoubleByte(double[] buffer,
int offset,
int length)
buffer - the bufferoffset - the offsetlength - the lengthpublic static double[] convertByteDouble(byte[] buffer,
int offset,
int length)
buffer - the bufferoffset - the offsetlength - the lengthpublic static void main(java.lang.String[] args)
args - the arguments