diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2007-11-30 16:36:41 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2007-11-30 16:36:41 +0300 |
commit | 6f7e83d8f46cc0f8fb220c4c21f3966c3abf1787 (patch) | |
tree | dea20c3cc1dd0eca9a046109ad82246ffa27daeb /libcelt/pitch.c | |
parent | 41af42154017e323707018d5f46feaea538da7b8 (diff) |
Pre-emphasis, plus a few minor tweaks
Diffstat (limited to 'libcelt/pitch.c')
-rw-r--r-- | libcelt/pitch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/pitch.c b/libcelt/pitch.c index 28c9b52..0cce22e 100644 --- a/libcelt/pitch.c +++ b/libcelt/pitch.c @@ -56,9 +56,9 @@ void find_spectral_pitch(void *fft, float *x, float *y, int lag, int len, int *p X[0] = X[lag-1] = 0; spx_ifft(fft, X, xx); - float max_corr=-1; + float max_corr=-1e10; //int pitch; - *pitch = -1; + *pitch = 0; for (i=0;i<lag-len;i++) { //printf ("%f ", xx[i]); |