Patent ID: 7328162

Claim:
A method for transposition by a transposer, wherein a first signal is either expanded in time by duplicating segments of the first signal and downsampling, or is compressed in time by discarding segments of the first signal and up-sampling, comprising the following steps: performing a transient detection on a portion of the first signal, the portion including an input segment; determining a codebook based on which a signal segment of the first signal is used when duplicating or discarding parts of the first signal to obtain an output segment, depending on an outcome of the step of performing a transient detection; wherein the step of determining includes the following steps: when a transient in a current portion of the input signal is not detected or a transient detected in an earlier portion of the input signal is not yet processed, determining the codebook such that an end of the codebook is (with respect to time) to the left of a current input segment of the first signal; when a transient in a portion of the input signal is detected and when the detected transient in the input signal is already processed, determining the codebook such that the codebook (with respect to time) extends to the right of a current input segment of the first signal so that a search for a synchronization point in the determined codebook prior to the transient is not allowed; searching for a synchronization point in a codebook as determined in the step of determining by correlating a comparation segment of a previous output segment with the codebook as determined in the step of determining; and generating a current output segment by using samples from the codebook for the current input segment starting from the synchronization point obtained in the step of searching, wherein a transposition factor is determined by a length of the current input segment and a length of the current output segment.