This commit is contained in:
Gianpaolo Coro 2014-02-03 13:35:11 +00:00
parent c5220c4ab5
commit 01a355420b
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ public class SignalConversions {
return Math.round(frequency * fftSize / samplingRate); return Math.round(frequency * fftSize / samplingRate);
} }
static double[] generateSinSignal(int signalLength, float timeShift, float frequency) { public static double[] generateSinSignal(int signalLength, float timeShift, float frequency) {
//final float frequency = 0.3f;// 1f; //final float frequency = 0.3f;// 1f;
double samples[] = new double[signalLength]; double samples[] = new double[signalLength];
@ -185,7 +185,7 @@ public class SignalConversions {
return samples; return samples;
} }
private static double inverseMel(double x) { public static double inverseMel(double x) {
double temp = Math.pow(10, x / 2595) - 1; double temp = Math.pow(10, x / 2595) - 1;
return 700 * (temp); return 700 * (temp);
} }