for (int h = 0; h < NUM_THEORIES; ++h) {
delays[h] = THEORY_FROM + h * (THEORY_TO - THEORY_FROM) / (NUM_THEORIES - 1);
for (int h = 0; h < NUM_THEORIES; ++h) {
delays[h] = THEORY_FROM + h * (THEORY_TO - THEORY_FROM) / (NUM_THEORIES - 1);
size_t end = std::min<size_t>(i + BUFSIZE, total_end);
hypothesis *hyp = new hypothesis[NUM_THEORIES];
size_t end = std::min<size_t>(i + BUFSIZE, total_end);
hypothesis *hyp = new hypothesis[NUM_THEORIES];
fprintf(fp, "%f %f\n", i * BUFSIZE / 44100.0, best_path[i]);
}
fclose(fp);
fprintf(fp, "%f %f\n", i * BUFSIZE / 44100.0, best_path[i]);
}
fclose(fp);
fprintf(stderr, "Stretching right channel to match left... %7.2f%%", 0.0);
double inv_sd = sqrt(2.0) / sqrt(var_left + var_right);
fprintf(stderr, "Stretching right channel to match left... %7.2f%%", 0.0);
double inv_sd = sqrt(2.0) / sqrt(var_left + var_right);