Optimal looping for wavetable synthesis
First Claim
1. A method for looping a signal to form a synthesized signal comprising:
- transforming the signal into a sinusoidal representation comprising a plurality of frequency components, wherein each of the frequency components has a signal characteristic having a beginning value and an ending value; and
adjusting the signal characteristic of at least one frequency component so that the beginning value and the ending value match, wherein an adjusted sinusoidal representation is formed.
0 Assignments
0 Petitions
Accused Products
Abstract
In accordance with the present invention, a method and apparatus are provided wherein loop discontinuities are eliminated. In the case of amplitude discontinuities, the harmonic amplitudes contained in the loop are progressively scaled over the duration of the loop, so that for each harmonic the loop end amplitude matches the loop beginning amplitude. In the case of phase discontinuities, the harmonic phases are progressively shifted over the duration of the loop, so that for each harmonic the loop end phase matches the loop beginning phase. Shifting the phase is accomplished by slightly altering the frequency of the harmonics to produce the desired amount of phase-shift at the loop end. In accordance with the present invention, the method also provides a technique to select loop begin and end points to minimize the amount of phase adjustment.
10 Citations
10 Claims
-
1. A method for looping a signal to form a synthesized signal comprising:
-
transforming the signal into a sinusoidal representation comprising a plurality of frequency components, wherein each of the frequency components has a signal characteristic having a beginning value and an ending value; and
adjusting the signal characteristic of at least one frequency component so that the beginning value and the ending value match, wherein an adjusted sinusoidal representation is formed. - View Dependent Claims (2, 3, 4, 5)
selecting a loop start and a loop end for the sinusoidal representation so that the difference between the signal characteristic of the at least one frequency component at the loop start and the loop end is limited to a threshold value;
defining the sinusoidal representation to begin at the loop start and end at the loop end; and
adjusting the signal characteristic of the at least one frequency component so that the beginning value and the ending value match, wherein the adjusted sinusoidal representation is formed.
-
-
4. The method of claim 1 wherein the signal further comprises a last signal portion and the method further comprises steps of:
-
defining a release time period within the last signal portion, wherein the release time period has a begin release time and an end release time;
transforming the last portion to a last sinusoidal representation comprising the at least one frequency component having the signal characteristic;
adjusting the signal characteristic of the at least one frequency component of the last sinusoidal representation, wherein the value of the signal characteristic at the begin release time matches the ending value to form an adjusted last portion.
-
-
5. The method of claim 4, further comprising steps of:
-
converting the adjusted last portion to a time domain last portion; and
concatenating the time domain last portion to the end of the plurality of loops to form the synthesized signal.
-
-
6. Apparatus for forming a loop signal used to create a synthesized signal comprising:
-
a loop processor having logic to output a sinusoidal signal to be looped;
a harmonic processor coupled to the loop processor and having logic to receive the sinusoidal signal, wherein the harmonic processor includes a harmonic detector having logic to detect harmonics in the sinusoidal signal and a harmonic adjuster having logic to adjust the detected harmonics to form adjusted harmonics; and
a transformer coupled to the loop processor and the harmonic processor and having logic to transform and combine the detected harmonics and the adjusted harmonics to form the loop signal. - View Dependent Claims (7, 8, 9, 10)
a memory for storing a first representation of the loop signal;
a processor coupled to the memory and having logic to store and retrieve the first representation of the loop signal; and
a sinusoidal transformer coupled to the memory and having logic to receive and transform the first representation of the loop signal to a sinusoidal signal.
-
-
8. The apparatus of claim 6 wherein the transformer comprises:
-
a first inverse transformer having logic to receive the detected harmonics and the first representation and having logic to produce a residual signal; and
a second inverse transformer having logic to receive the adjusted harmonics and the residual signal to having logic to produce the loop signal.
-
-
9. The apparatus of claim 6 wherein the harmonic processor comprises logic to adjust the amplitude of at least one of the detected harmonics, to form the adjusted sinusoidal representation.
-
10. The apparatus of claim 6 wherein the harmonic processor is coupled to the transformer and comprises logic to adjust the phase of at least one of the detected harmonics, to form the adjusted sinusoidal representation.
Specification