1. Field of the Invention
The present invention relates to an audio synthesis system, especially to an audio synthesis system applied in communication apparatuses.
2. Description of the Prior Art
Please refer to
The music generator 14 further comprises an instrument database 16 and a synthesis module 18. After obtaining the analysis data from the analysis module 12, the music generator 14 provides the required instrument data 24 from the instrument database 16 according to the analysis data. Then, the synthesis module 18 synthesizes the music. The synthesis module 18 synthesizes a pulse code modulation data according to the analysis data and the instrument data. The digital/analog converter/amplifier 20 converts the pulse code modulation data to an analog signal and amplifies the analog signal. Then, the amplified analog signal is outputted to the speaker 22 to give off sound.
In the wavetable audio synthesis system of the prior art, the basic instrument database includes 128 kinds of melodic instrument data and 47 kinds of percussion instrument data. In the wavetable audio synthesis system of the prior art, the 128 kinds of melodic instrument data and 47 kinds of percussion instrument data are generally stored in a non-volatile memory, such as read only memory (ROM), to be the instrument database. While synthesizing a piece of music, the synthesis module 18 takes the required instrument data out of the instrument database 16 to synthesize the music. Although this method can keep the quality of the synthesized music perfect, the manufacturing cost is usually high because of the large amount of memory required.
The low cost wavetable audio synthesis system of the prior art utilizes certain similarities among some of the instruments, thus storing only the most commonly used instrument data to reduce the cost of storing 128+47 instrument data.
Please refer to
As shown in
In the low cost wavetable audio synthesis system of the prior art, the required data of the memory 36 and the instrument replacement module 38 are stored in a non-volatile memory (a non-volatile memory is usually a ROM), so the kinds of instruments, which can be used, are specified. Therefore, there is a disadvantage of compromising the nature of the music due to the selection of the instruments.
The objective of the present invention is to provide an audio synthesis system of low cost design for performing a wavetable audio synthesis. The system, under the consideration of low cost, utilizes limited memory to hopefully reduce the inconsistency of the music caused by using different kinds of instruments and to achieve the objective of audio synthesis.
The audio synthesis system of the present invention comprises an instrument database, an analysis module, a memory, and a judgment module. The instrument database is used for storing data of a first predetermined number of musical instruments. The analysis module is used for analyzing an inputted music file to generate data of a second predetermined number of musical instruments included in the music file. The memory has a predetermined capacity for storing the required data of musical instruments for synthesizing the music file. The judgment module is used for judging whether the total amount of data of the second predetermined number of musical instruments exceeds the predetermined capacity of the memory. If no, the data of the second predetermined number of musical instruments is taken out from the instrument database to be stored in the memory. If yes, an instrument replacement procedure is performed, and the data of the second predetermined number of musical instruments is replaced by data of a third predetermined number of musical instruments. The total amount of data of the third predetermined number of musical instruments does not exceed the predetermined capacity. The judgment module further takes the data of the third predetermined number of musical instruments out of the instrument database to be stored in the memory. In addition, the synthesis module is used for synthesizing a digital music signal according to the instrument data stored in the memory.
The present invention utilizes random access memory (RAM) to access the required instrument data for synthesizing music. Because of using memory of low capacity, the cost of using a large amount of memory is reduced. The unit cost of RAM is usually higher, but because the required capacity is smaller, the storing cost is still cheaper than the prior art of
The advantage and spirit of the invention may be understood by the following recitations together with the appended drawings.
Please refer to
Then, the operation procedure of the embodiment will be described in detail in the following. First, the analysis module 52 of the wavetable audio synthesis system 40 of the present invention analyzes an inputted music file 53 from the music database 51 to generate the required data of a predetermined number (M2+P2) of instruments to synthesize the music file 53. For example, if it needs 8 melodic instrument data and 3 percussion instrument data to synthesize one specific music file 53, M2 is 8, and P2 is 3.
The judgment module 54 judges whether the required storing space of M2+P2 kinds of instrument data exceeds the predetermined capacity of the memory 60. The predetermined capacity may be storable space of the memory 60 or a predetermined specific capacity. If no, the judgment module 54 takes M2+P2 kinds of instrument data out of the instrument database 56 to be stored in the memory 60. If yes, perform an instrument replacement procedure and replace M2+P2 kinds of instrument data by another predetermined number (M3+P3) of instrument data. The total amount of M3+P3 kinds of instrument data does not exceed the predetermined capacity of the memory 60. Finally, according to the judgment, the judgment module 54 takes the required M3+P3 kinds of instrument data, while performing wavetable audio synthesis, out of the instrument database to be stored in the memory 60.
The synthesis module 66 synthesizes a digital music signal according to the instrument data stored in the memory 60 and outputs the synthesized music signal to the speaker 70 via the digital/analog converter/amplifier 68 to output the music file 53.
According to the above, the characteristic of the present invention is that the system can select the most suitable instrument data to replace the original and required instrument data of wavetable audio synthesis in accordance with the built-in memory capacity of the wavetable audio synthesis system. Therefore, how to select suitable instrument data is the focus of the present invention.
Please refer to
Please refer to
However, when Ml and P1 in the above similarity comparison table 41 are very large, the table is not easy to be set up and may occupy much space. For example, under the condition of having 128 kinds of melodic instruments and 47 kinds of percussion instruments, setting up one 128×128 table and one 47×47 table is necessary. Therefore, there is another embodiment described in the following. Please refer to
If the total amount of data still exceeds the predetermined capacity after referring to the group table 47 and reducing the number of kinds of instruments, the system can further select the substitute instrument data via the similarity comparison table in accordance with the group table. As shown in
It has to be emphasized that when looking into the similarity comparison table to find out two instruments with the most similar characteristics, the instrument similarity value of instrument M to N may be different from the instrument similarity value of instrument N to M in the table. This is because in the sense of hearing, the effect of replacing instrument M by N may not be bad, but the effect of replacing instrument N by M may not be so good. Therefore, the definition of the table is flexible.
In the following, specific figures are taken as examples to explain the embodiment. After analyzing the music file 53 by the analysis module 52, it needs 8 melodic instruments ma, mb, mc, md, me, mf, mg, mh and 3 percussion instruments pa, pb, pc to synthesize the music file 53. At this time, the judgment module 54 will judge whether the 8+3 kinds of instrument data exceeds the predetermined capacity of the memory. If no, the loading module 44 of the judgment module 54 will load the 8+3 kinds of instrument data into the memory 60. If the 8+3 kinds of instrument data exceeds the predetermined capacity of the memory, the replacement module 42 is started to perform the replacement procedure. In the judgment module 54, the similarity comparison module 46 looks into the table to obtain the highest instrument similarity value by replacing mb with ma. After the replacement module 42 gives up the music data of mb, if 7+3 kinds of instrument data does not exceed the predetermined capacity of the memory, the loading module 44 accesses the 7+3 instrument data from the instrument database 56 to the memory 60, so that the synthesis module 66 can synthesize the music file 53, the melody of instrument mb is performed by the melody of instrument ma. If 7+3 instrument data still exceeds the predetermined capacity of the memory, the replacement procedure is continually performed until the total amount of the selected instrument data does not exceed the predetermined capacity.
Please refer to
Step 500: Start.
Step 502: Obtain the number of instruments being used, (M2+P2), by the analysis module 52.
Step 504: Judge whether the required instrument data of M2+P2 kinds of instruments exceeds the predetermined capacity of the memory 60. If yes, perform step 506; if no, perform step 510.
Step 506: Start the similarity comparison module 40 to find out the most similar instruments and suitable way of replacement.
Step 508: Start the replacement module 42 to reduce the number of instrument being used and repeat step 504.
Step 510: Start the loading module 44 to load the required instrument data 62 from the instrument database 56 to the memory 60.
Step 512: Finish.
According to the above description, the present invention accesses the instrument data of the required instrument to synthesize music by the random access memory. Because of using low capacity memory, the required cost of using a large amount of memory has been reduced a lot. Furthermore, the instrument data stored in the memory may be changed randomly. The present invention selects the most similar instrument data in accordance with the required instrument of the music. Therefore, the display quality of the synthesized music is improved a lot, compared to the prior art, using the non-volatile memory (e.g. ROM) to store fixed instrument data.
With the example and explanations above, the features and spirits of the invention will be hopefully well described. Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teaching of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
92113987 A | May 2003 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4622877 | Strong | Nov 1986 | A |
5444818 | Lisle | Aug 1995 | A |
5689080 | Gulick | Nov 1997 | A |
5698802 | Kamiya | Dec 1997 | A |
5734119 | France et al. | Mar 1998 | A |
5744739 | Jenkins | Apr 1998 | A |
5750913 | Kamiya | May 1998 | A |
5753841 | Hewitt | May 1998 | A |
5808225 | Corwin et al. | Sep 1998 | A |
5847304 | Hewitt | Dec 1998 | A |
5850050 | Isozaki et al. | Dec 1998 | A |
5862063 | Thome et al. | Jan 1999 | A |
5890115 | Cole | Mar 1999 | A |
5901333 | Hewitt | May 1999 | A |
5917917 | Jenkins et al. | Jun 1999 | A |
5955691 | Suzuki et al. | Sep 1999 | A |
5981860 | Isozaki et al. | Nov 1999 | A |
5986199 | Peevers | Nov 1999 | A |
6259792 | Lambrecht | Jul 2001 | B1 |
6362409 | Gadre | Mar 2002 | B1 |
6576827 | Tamura | Jun 2003 | B2 |
6727420 | Suzuki et al. | Apr 2004 | B2 |
6740802 | Browne, Jr. | May 2004 | B1 |
6784355 | Gyoten et al. | Aug 2004 | B2 |
6873955 | Suzuki et al. | Mar 2005 | B1 |
6881888 | Akazawa et al. | Apr 2005 | B2 |
6907113 | Holm et al. | Jun 2005 | B1 |
6992245 | Kenmochi et al. | Jan 2006 | B2 |
7038119 | Petef | May 2006 | B2 |
7045700 | Hamalainen et al. | May 2006 | B2 |
7105737 | Frangopol et al. | Sep 2006 | B2 |
20010045155 | Boudet et al. | Nov 2001 | A1 |
20020134222 | Tamura | Sep 2002 | A1 |
20040007120 | Futamase et al. | Jan 2004 | A1 |
20040159219 | Holm et al. | Aug 2004 | A1 |
20040209629 | Virolainen et al. | Oct 2004 | A1 |
20040267541 | Hamalainen et al. | Dec 2004 | A1 |
20050011341 | Petef | Jan 2005 | A1 |
20050094638 | Holm et al. | May 2005 | A1 |
20060005690 | Jacobsson et al. | Jan 2006 | A1 |
20060060069 | Sinisalo | Mar 2006 | A1 |
20060201312 | Zinato | Sep 2006 | A1 |
20060211456 | Holm et al. | Sep 2006 | A1 |
Number | Date | Country |
---|---|---|
WO0045545 | Aug 2000 | WO |
Number | Date | Country | |
---|---|---|---|
20040231497 A1 | Nov 2004 | US |