public class NFFTStreamSync
extends java.lang.Object
Constructor and Description |
---|
NFFTStreamSync(java.lang.String reference,
java.lang.String other) |
Modifier and Type | Method and Description |
---|---|
static int |
bestCrossCovarianceLag(float[] reference,
float[] target)
Finds the index of the best match of target in reference as defined by the cross covariance.
|
static double |
covariance(float[] reference,
float[] target,
int lag) |
static float[] |
getAudioData(java.lang.String fileName,
int sampleRate,
double startTime,
double duration) |
NFFTSyncMatch |
getMatch() |
void |
synchronize() |
public NFFTStreamSync(java.lang.String reference, java.lang.String other)
public void synchronize()
public NFFTSyncMatch getMatch()
public static float[] getAudioData(java.lang.String fileName, int sampleRate, double startTime, double duration)
public static int bestCrossCovarianceLag(float[] reference, float[] target)
reference
- The buffer with the reference time value signal.target
- The target time value signal.public static double covariance(float[] reference, float[] target, int lag)