From 224824b01724f0568d7726fe592d5714f58ccb6a Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 29 Jun 2009 17:35:41 -0400 Subject: [PATCH] ietf doc: pitch description --- doc/ietf/draft-valin-celt-codec.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/ietf/draft-valin-celt-codec.xml b/doc/ietf/draft-valin-celt-codec.xml index 5cb8ab99..09afe065 100644 --- a/doc/ietf/draft-valin-celt-codec.xml +++ b/doc/ietf/draft-valin-celt-codec.xml @@ -443,9 +443,16 @@ transmission of any allocation information.
-The pitch period is computed by find_spectral_pitch() -(pitch.c) and the pitch gain is computed by -compute_pitch_gain() (bands.c). +The pitch period T is computed in the frequency domain using a generalized +cross-correlation, as implemented in find_spectral_pitch() +(pitch.c). An MDCT is then computed on the +synthsis signal memory using the offset T. If there is sufficient energy in this +part of the signal, the pitch gain for each pitch band +is computed as g = X^T*P, where X is the normalised (unquantised) signal and +P is the normalised pitch signal. +The gain is computed by compute_pitch_gain() (bands.c) +and if a sufficient number of bands have a high enough gain, then the pitch bit is set. +Otherwise, no use of pitch is made.