diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 03:15:33 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-02-11 03:15:33 +0300 |
commit | b7ed44ba0a3df8a95c6e0fe9fc86245a5a6485d5 (patch) | |
tree | 41857b74a8ef5187670bf5549c9b7cee8f712ca3 /libcelt/pitch.c | |
parent | 66fa639c53c60ed0c8b3599457776a282f23752d (diff) |
minor tweak to pitch weighting function, disabled some code that doesn't
do anything yet.
Diffstat (limited to 'libcelt/pitch.c')
-rw-r--r-- | libcelt/pitch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/pitch.c b/libcelt/pitch.c index 4985a11..67c8319 100644 --- a/libcelt/pitch.c +++ b/libcelt/pitch.c @@ -58,7 +58,7 @@ void find_spectral_pitch(kiss_fftr_cfg fft, float *x, float *y, int lag, int len float n; //n = 1.f/(1e1+sqrt(sqrt((X[2*i-1]*X[2*i-1] + X[2*i ]*X[2*i ])*(Y[2*i-1]*Y[2*i-1] + Y[2*i ]*Y[2*i ])))); //n = 1; - n = 1.f/pow(1+curve[i],.5)/(i+60); + n = 1.f/sqrt(1+curve[i]); //n = 1.f/(1+curve[i]); float tmp = X[2*i]; X[2*i] = (X[2*i ]*Y[2*i ] + X[2*i+1]*Y[2*i+1])*n; |