A typical codec extracts sinusoid information from the samples by applying a short-time Fourier transform to the samples and using that to find the important harmonic content of a single frame. By matching sinusoids across frames, the encoder is capable of grouping them into harmonic lines and individual sinusoids. The matching can take amplitude, frequency and phase into account when trying to match sinusoids across frames.