RESIDUAL EXCITED WAVE GUIDE

Abstract: Synthesizer models for emulating musical instruments can be improved using an analysis model that compares the output signal (Y') of the model to a recording (S) of a desired sound and derives a residual signal (delta) that can be used to correct the model. When the original model is a good one, the residual signal is small and takes much less memory to store than is required for a sampled sound.

Description: RESIDUAL EXCITED WAVE GUIDE BACKGROUND OF THE INVENTION Field of the Invention This invention relates to improving sound synthesis models. In particular, a sound synthesis model is analyzed for accuracy and improved by correcting for discovered error. Description of Related Art Many sound synthesis methods attempt to emulate the sounds created by musical instruments, such as drums or pianos or horns. For example, digital sound synthesis methods attempt to mimic a sound by creating a signal which has a series of digital values that represent the amplitude of a sound wave. The most accurate digital method of emulation is sample synthesis. Sample synthesis synthesizes sound by playing a recording of a desired sound. Sample synthesis is commonly used in drum machines where only a few distinct sounds are synthesized. In some applications, sample synthesis requires too much memory to be practical. For example, in a piano emulation, a digital recording of the lowest note may last up to 30 seconds. This is more than 2 megabytes of 16-bit values if the recording is sampled at a rate of 44.1 KHz. Multiply this by the 88 keys on a standard piano and the storage goes over 200 megabytes. Pianos also have different timbres depending on how hard a key is hit. A standard Musical Instrument Digital Interface (MIDI) has 128 different velocity curves so the storage now goes up to 30 gigabytes. Even if all these sounds were recorded, you will still not have an instrument that sounds like a real piano. The effect of the damper pedal and inter-string coupling would be missing. The damper pedal couples all the strings together through the sound board. Further, when a chord is held down, with or without the damper pedal, the struck strings couple together. A better example synthesis might record combinations of keys being hit together. Taking all possible combinations of 2 out of 88 keys, 3 out of 88 keys, and so on up to 88 out of 88 keys yields an astronomical number of combinations, and still does not take into account the effect of time offsets. Sample synthesis therefore cannot practically yield a perfect piano sound. The standard solution to this problem is to sample only some of the notes and then use models to interpolate the notes and combinations of notes not sampled. There are many sound synthesis methods beside sample synthesis. Currently, the most prevalent synthesis method is "wave table" synthesis. Wave table synthesis uses two circular sound tables. One table represents the sound during the attack, and the other table represents the steady state. Two ADSR (Attack, Decay, Sustain, and Release) curves control the envelope for each table. For instruments that don't have a steady state, a third ADSR curve is typically used to control filter parameters. Often the attack table may be replaced by a sampled attack. This effect is what most "sampled" libraries do. Wave guide synthesis is a music synthesis method that mimics a musical instrument using models based on the physical structure of the instrument. The theory of lossless wave guides simplifies calculations needed to model many musical instruments. A specific case of wave guide synthesis is the plucked string algorithm which may be used to emulate the sound of a plucked string. The plucked string algorithm involves filling a section of memory with initial data. The section of memory is called a delay line. Fig. 1 shows a block diagram of a prior art sound emulation model 100 which uses the plucked string algorithm to produce a digital signal Y' . The emulation model 100 employs a delay line 101 and a feedback gain stage 102. To produce the digital signal Y' , data is read sequentially from the delay line 101 and scaled by the feedback gain stage 102 to account for sound evolution. Alternatively, data from the delay line 101 may be filtered or otherwise processed. The output signal Y' is fed back into the delay line 101, typically by overwriting memory. Once the last of the data in the delay line 101 has been read, reading begins again from the beginning. Reading from the delay line 101 continues in circular fashion for the duration of the sound signal Y' . The sound signal Y' evolves because scaling changes values of data in the delay line 101 but also repeats at a frequency that depends on the number of data points in the delay line 101 and the rate at which the data is sampled. Generally, a synthesis model based on prior art methods will not perfectly reproduce the sound made by a musical instrument, and methods are needed which improve the accuracy of a model but do not require excessive memory. SUMMARY OF THE INVENTION The present invention provides sound synthesis models (or emulations) , analysis models for improving the accuracy of sound synthesis, and methods for improving sound synthesis. The emulations and analysis models may be implemented in hardware or software. According to one embodiment of the present invention, an output signal from a sound synthesis model is compared to a digital recording of a desired sound, the desired sound being the sound that the synthesis model is intended to emulate. The comparison provides a residual signal which is the error or difference between the desired signal and the signal actually generated by the sound synthesis model. An improved synthesis model is then constructed which combines the residual signal with the output signal of the original model to produce a more accurate sound. The improved model has about the same accuracy as sample synthesis, but generally requires much less memory. Memory requirements for a residual signal are less than memory requirements for sample synthesis for many reasons. If the synthesis model is perfect, the residual signal is zero. No memory is required to save the residual signals. If the model is good but not perfect, the residual signal is generally small compared to the desired signal. Often the residual signal may be stored with less dynamic range than a desired signal. For example, if the original synthesis model produces 16-bit values, the residual signal may be small enough to only require 8 bits to be expressed. Also, in many cases, least significant bits of residual signal vary in a nearly random manner and represent unpredictable or variable parts of a sound being simulated. The random portion of the residual signal need not be saved in memory because the random portion can be ignored or generated using a random number generator as needed. Further, the duration of the residual signal is typically shorter than the desired signal. In a good model, as the volume of the sound decreases, the residual signal decreases even faster and becomes insignificant. The significant portion of the residual signal, being of shorter duration than the desired sound, can be stored using less memory. In some cases, the residual signal is nearly random and reflects a random or unpredictable part of the sound being simulated. When the residual signal is random, the residual signal can often be replaced with enveloped white noise. This drastically .reduces the memory required to store the residual signal because only parameters which describe an envelope are stored. Analysis models according to the invention can be used to fine tune parameters of a synthesis model, and further reduce the size of the residual signal. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 shows a block diagram of a prior art sound synthesis model. Fig. 2 shows an analysis model for use with the synthesis model of Fig. 1 according to an embodiment of the present invention. Fig. 3 shows an improved synthesis system derived from the initial synthesis model of Fig. 1 using the analysis model of Fig. 2. Fig. 4 shows the sound synthesis model of Fig. 1 adapted to accept an input signal. Fig. 5 shows an analysis model according to another embodiment of the present invention. Fig. 6 shows an improved synthesis system derived from the synthesis model of Fig. 4 using the analysis model of Fig. 5. Fig. 7 shows still another alternative analysis model according to an embodiment of the present invention. Fig. 8 shows an improved synthesis system derived from the synthesis model of Fig. 4 using the analysis model of Fig. 7. Fig. 9 shows a more complex synthesis model that can be improved using methods in accordance with the invention described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Most sound emulators produce signals which are either analog voltages that vary with time or digital signals that change periodically to represent the variation of sound waves. Methods for converting either type of signal to sound are well known. For example, a digital signal can be converted to an analog signal using a digital-to-analog converter. Sound is typically produced from analog signals using an amplifier and speakers. The following description of specific embodiments of the present invention is limited to digital sound synthesis models. However, in view of the following description, applications of the invention to the analog sound synthesis should be apparent to those skilled in the art. In the prior art model of Fig. 1, emulation model 100 produces the digital signal Y' that represents a sound amplitude. If the emulation were perfect, signal Y' would equal a digitally recorded signal S of the sound being emulated. If the emulation is not perfect, signal Y' differs from desired signal S by some residual signal. Sound emulation model 100 represented in Fig. 1 is a plucked string model and is used here as an example of a synthesis model. As described more fully below, many different emulations may be used with embodiments of the present invention. The plucked string model of Fig. 1 employs a delay line 101 and a feedback gain stage 102. Signal Y' which represents a sound amplitude is fed back into the delay line 101 for generation of subsequent sound amplitude values. In general, sound amplitude values from a sound emulation depend on both fixed parameters and on preceding sound amplitude values. Fig. 2 shows an analysis model according to one embodiment of the invention. Like elements in Figs. 1 and 2 have the same reference number. The analysis model subtracts signal Y' from desired signal S and generates residual signal Δ' . Residual signal Δ' can be recorded for use with an improved synthesis model, described below. Methods for recording the residual signal Δ' include, but are not limited to, storing values of the residual signal Δ' in a non-volatile memory such as a ROM, a floppy disk, or a hard disk. Typically, the analysis model is used by designers of sound synthesizers, and is not used during sound synthesis. Fig. 3 shows an improved synthesis system according to an embodiment of the invention. Like elements in Fig. 3 and previous figures have the same reference numbers. The improved emulator is derived from the original emulator 100 using the analysis model of Fig. 2. The improved model adds the signal Y' and the residual signal Δ' to generate an output signal identical to the desired signal S. The improved synthesis system of Fig. 3 is the inverse of the analysis model of Fig. 2. The analysis model takes the desired signal S as an input signal and produces the residual signal Δ' . The improved synthesis system takes the residual signal Δ' as an input signal and produces an output signal equal to the desired signal S. This feature is also seen in other embodiments of the invention discussed below. Fig. 4 shows an emulator 400 which is a modification of the emulator 100 shown in Fig. 1. The emulator 400 contains a delay line 401 and feedback gain stage 402 which are the same as the delay line 101 and feedback gain stage 102 shown in Fig. 1. Fig. 4 further includes a summing element 404. The summing element 404 adds an input signal Z to the signal from the feedback gain stage 402. If the input signal Z is always zero, the emulator 400 is equivalent to the emulator 100. That is, both emulators 100 and 400 product the same output signal Y' . Fig. 5 shows an analysis model, according to one embodiment of the invention, that can be constructed from emulator 100 or emulator 400. A delay line 501 and a feedback gain stage 502 in Fig. 5 are identical to the delay line 101 and feedback gain stage 102 in Figs. 1 and 2. In Fig. 5, the desired signal S feeds into the delay line 501., This differs from Fig. 2 where the signal Y' from the emulator 100 feeds back into the delay line 101. The different input signals into the delay lines 101 and 501 cause signals Y and Y' to be different. Accordingly, a summing means 504 in Fig. 5 subtracts signal Y from the desired signal S to generate a residual signal Δ, rather than Δ' . If the emulator 100 is a good one, signals Y' , Y, and S are all approximately equal. But, because the input signal S fed into the delay line 501 is the desired signal, the output signal Y tends to be more accurate than signal Y' , and the residual signal Δ tends to be smaller than the residual signal Δ' . As above, the residual signal Δ can be recorded for later use in an improved synthesis system. Fig. 6 shows an improved synthesis system that uses the residual signal Δ. Like elements in Figs. 4 and 6 are numbered the same. Fig. 6 is identical to Fig. 4 except that the error function Δ is the input signal rather than a zero signal Z. Residual signal Δ is added to signal Y to give an output signal equal to the desired signal S. The signal S is input into a delay line 401 just as in the analysis model of Fig. 5, so the signal from feedback gain stage 402 is indeed Y. The improved synthesis system of Fig. 6 is the inverse of the analysis model of Fig. 5. Fig. 7 shows another embodiment of an analysis model according to the present invention. The analysis model of Fig. 7 generates residual signal Δ" from the emulator 400. Elements in Fig. 7 have the same reference numbers as like elements in previous figures. As can be seen in Fig. 7, a signal Y" from an emulator 400 is subtracted from desired signal S to generate residual signal Δ" . Fig. 7 shows the signals S, Y", and Δ with a time index, i or i-1. This analysis model differs from the analysis model of Fig. 5 in that the residual signal Δ is fed back into model 400 and added to the signal Y" . It also differs from the analysis model of Fig. 5 because the residual signal value Δ" i.1 and the signal Y"; come from different sampling periods. In Fig. 7, Y"j + Δ''^ + Δ"j equals S-. Accordingly, Δ" typically does not equal Δ. For a good model, the residual signal Δ is generally small, and changes between successive values of the residual signal Δ are even smaller. Adding residual signal Δ";. ! from the preceding sampling period to the signal Y"; tends to make the signal fed into delay line 401 closer to S and decreases subsequent errors Δ"*. Fig. 8 shows an improved synthesis system that is derived from the emulator 400 using the analysis model of Fig. 7. The residual signal Δ" ι with an appropriate time index is fed into the emulator 400, and the residual signal Δ" ; is added to the result to yield an output sound signal that is equal to the desired signal S. The improved synthesis system of Fig. 8 is the inverse of the analysis model of Fig. 7. In many cases, the residual signal Δ" and the model are such that an improved synthesis system such as shown in Fig. 4 may be used in place of the improved synthesis system shown in Fig. 8. The improved synthesis system of Fig. 4, when used with residual signal Δ" from the analysis model of Fig. 7, does not give an exact replication of the desired signal S because of the difference in the time index mentioned above. The improved synthesis model of Fig. 4 is not the exact inverse of the analysis model of Fig. 7. However, in general, a shift of the residual signal by one sampling period is an immaterial change. Although Figs. 2 through 8 use delay lengths and feedback gains identical to the original emulator 100, analysis models may also be used to optimize the parameters, such as the magnitude of the feedback gain or the length of the delay line. For example, the magnitude of the feedback gain can be varied and residual signals Δ(g t ) and Δ(g 2 ) generated for feedback values g- and g 2 . A best feedback gain, g λ or g 2 , is chosen which gives the smallest residual signal, and the best feedback gain is used in the improved model. In a more general case, one or more of the parameters of an emulator can be fine tuned to find the minimum residual signal, and the fine tuned values used in an improved emulator. The analysis models shown in Fig. 2 and 7 and the resulting improved synthesis systems of Figs. 3 and 8 can be applied to almost any emulator or synthesis model. That is, in Figs. 2, 3, 7, and 8, the emulator 100 or 400 can be replaced by almost any emulator without materially changing the operation described above. The methods are the same regardless of the form or complexity of the emulator. For example, Fig. 9 shows a wave guide synthesis emulator 900 that includes two plucked string emulators. When the two plucked strings are slightly detuned, the model of Fig. 9 is a simple emulation of a piano. The emulator 900 can replace the emulator 100 or 400 in Figs. 2, 3, 7, and 8. Application of the methods remains as described above. The analysis model of Fig. 5 requires a synthesis emulator which uses the desired sound signal S as an input signal for generating future sound amplitude values. An emulator such as emulator 900 which does not directly use the sound signal S cannot use the analysis model of Fig. 5. (The feedback gain stages 902, 912 feed back into the delay lines 901, 911 only the signals from a single string emulator, not the entire sound signal.) For synthesis models such as model 900, the analysis model of Fig. 5 cannot be used. For all of the above described embodiments, improved accuracy requires memory to store the residual signal. If the residual signal required as much data storage as the desired signal S, the improved model would have no advantage over sample synthesis. However, if the original model is good, the residual signal is small or becomes small quickly, and the residual signal requires much less memory storage. Many techniques may be used with the above described embodiments to reduce the amount of memory needed to store the residual signal. Often only the initial attack of a note is difficult to model. For example, complicated things can happen to a string while it is being struck, but after the initial strike, the modes of vibration of the string are more predictable. Consequently, in many applications the residual signal is significant during the attack but goes to zero or becomes insignificant a short time later. The insignificant portion of the residual signal, the portion that falls below a chosen minimum value, can be truncated and only the significant portion recorded. The residual signal, being of shorter duration, takes much less memory to store than does the desired signal S. Also, the residual signal is often small compared to the maximum possible amplitude of the desired signal S, and the residual signal can be saved using fewer bits. For example, if the sound signal S has 16-bit values but the residual signal never has a magnitude larger than 127, the most significant bits are zero and need not be recorded. The residual signal can be stored using 8 bits per value rather than 16, thus cutting the storage in half. Further, the residual signal often has random portions that do not need to be stored. Many residual signals have erratic variations that represent an unpredictable part of a sound. For example, recordings of a flute playing the same note are all basically similar but are not always the same because of unpredictable variations in air flow through the flute. These sorts of unpredictable effects often show up as random variations that only affect the least significant bits of residual signal. When the least significant bits show a random variation, the least significant bits need not be saved in memory. The least significant bits can be truncated, reducing the memory required to save the residual signal. On play back, the residual signal can be used with the random bits all zero or, alternatively, with new random bits generated using a white noise generator. In some residual signals, the unpredictable part is dominant and the residual signal seems to vary randomly with only a general trend in the magnitude of the variation. In these cases, the memory requirements of the residual signal can be decreased to only the parameters needed for an envelope that describes the trend of the random variation. On play back, the residual signal is reproduced by a random signal from a white noise generator that is scaled to the size of the stored envelope. When a synthesis system such as that depicted in Fig. 6 or 8 is used, the residual signal can provide the initial conditions. For example, in wave guide synthesis, the initial data is often stored in memory and fed into delay lines. The initial data controls the initial sound generated and to some extent the evolution of the sound. Using the above described methods, the original model can be analyzed with different initial data. The initial data can be changed to values that require less memory to store, for example, cleared or fixed to any chosen value. With the initial data changed, the model is less accurate, but the analysis models described above generate a residual signal that corrects for inaccuracy in the model caused by the changed initial data. Memory need not be used to hold both initial data and residual signal. Typically, using incorrect initial data does not increase the memory space taken by the residual signal. Initial data is most important at the beginning of a sound, so most of the correction for changed initial data occurs during the first few vibrations of the sound amplitude. This is exactly when the residual signal is expected to be significant anyway. Accordingly, the duration of the residual signal is not increased, but the memory required to store the initial data is decreased. Net memory required for accurate synthesis is reduced by changing the initial data. Although the present invention has been described with reference to particular embodiments, the description is only an example of the invention's application and should not be taken as a limitation. The scope of the present invention is defined only by the following claims. We claim:

Claims: CLAIMS 1. A method for synthesizing a desired sound signal comprising the steps of: using a sound synthesis model to generate an initial sound signal; and combining a recorded residual signal with the initial sound signal to generate a final sound signal, wherein the residual signal is derived from the difference between the initial sound signal and the desired sound signal. 2. The method of claim 1, further comprising the step of feeding the residual signal into the sound synthesis model, wherein values of the initial sound signal generated by the sound synthesis model depend on values of the residual signal. 3. The method of claim 1, further comprising the step of feeding the final sound signal into the sound synthesis model, wherein values of the initial sound signal generated by the sound synthesis model depend on values of the final sound signal. 4. A method for improving the accuracy of a sound synthesis model designed to emulate a desired sound, the method comprising the steps of: subtracting an output signal of the sound synthesis model from a desired signal that represents the desired sound to produce a residual signal; recording the residual signal; and creating an improved synthesis system that combines the residual signal with the output signal of the synthesis model. 5. The method of claim 4 wherein: the synthesis model generates a subsequent value of the output signal using a previous value of the output signal; and the step of subtracting further comprises using a value of the desired signal in place of the previous value of the output signal when the sound synthesis model generates the subsequent value of the output signal. 6. The method of claim 5 wherein the step of creating an improved synthesis system further comprises: adding the residual signal to the output signal of the synthesis model to generate a final sound signal; and using a value of the final sound signal in place of the previous value of the output signal when the sound synthesis model generates subsequent value of the output signal. 7. The method of claim 6 wherein: the sound synthesis model generates output signal values using initial data stored in memory; and the step of subtracting further comprises replacing the initial data with data that requires less memory to store. 8. The method of claim 7 wherein one step of creating an improved synthesis system further comprises using the data that requires less memory to store in place of the initial data used by the synthesis model. 9. The method of claim 4 wherein the step of recording the residual signal comprises digitally recording the residual signal where a least significant bit of the residual signal is not recorded, thereby reducing memory space required for the residual signal. 10. The method of claim 4 wherein the step of recording the residual signal comprises digitally recording the residual signal where a most significant bit of the residual signal is zero and is not recorded, thereby reducing memory space required for the residual signal. 11. The method of claim 4, wherein the step of recording the residual signal comprises only recording values of the residual signal that correspond to a time interval of shorter than the duration of the desired sound. 12. The method of claim 11, wherein values of the residual signal are greater than a desired minimum value only during the time interval. 13. The method of claim 11, wherein the time interval begin at the start of the desired sound. 14. The method of claim 4, wherein the step of recording the residual signal comprises recording parameters which describe an envelope for the residual signal, thereby reducing memory space required to store the residual signal. 15. The method of claim 14, wherein the step of creating an improved synthesis system further comprises: generating a 'random signal; scaling the random signal by a factor dependent upon the parameters which describe an envelope for the residual signal; and adding the scaled random signal to the output signal of the synthesis model. 16. A method for producing a residual signal for use in an improved synthesis system, the method comprising the steps of: constructing an analysis model which combines an analysis input signal with an output signal of a synthesis model to generate an analysis output signal; feeding a desired signal that represent the desired sound into the analysis model as an analysis input signal; and recording the resulting analysis output signal, wherein the resulting analysis output signal is the residual signal. 17. The method of claim 16, further comprising the steps of: constructing an improved synthesis system which combines a synthesis input signal with the output signal from the synthesis model, wherein the improved synthesis model is the inverse of the analysis model; and using the recorded residual signal as the synthesis input signal for the improved synthesis system. 18. A sound synthesizer comprising: means for synthesizing a sound signal intended to emulate a desired sound; means for storing a residual signal which represents the difference between a sound generated by the synthesizing means and the desired sound; and means, operably coupled to the synthesizing means and the storing means, for combining the residual signal from the storing means and the sound signal from the synthesizing means to produce an improved sound signal which emulates the desired sound. 19. The sound synthesizer of claim 18, wherein the synthesizing means has an input operably coupled to the storing means such that the synthesizing means uses the residual signal when synthesizing the sound signal. 20. A method for improving the accuracy of a sound synthesis model, the method comprising the steps of: generating a first output signal using the sound synthesis model with a parameter set to a first value; generating a first residual signal by subtracting the first output signal from a desired signal; generating a second output signal using the sound synthesis model with the parameter set to a second value; generating a second residual signal by subtracting the second output signal from the desired signal; and synthesizing sound with the synthesis model having the parameter set to the second value if the second residual signal is smaller than the first residual value.

Inventors: COLVIN BRYAN J SR, COOK PERRY R, GOCHNAUER DANIEL, COLVIN, BRYAN, J., SR., COOK, PERRY, R., GOCHNAUER, DANIEL
Applicants: MEDIA VISION INC, MEDIA VISION, INC.
Application year: 1994
Main classification: G10H1
IPC codes: G10H1, G10H7