1. Field of the Invention
The present invention relates to a method and system of audio synthesis and, more particularly, to a method and system of audio synthesis capable of reducing CPU load.
2. Description of Related Art
In current audio syntheses, a synthetic audio is generated by performing frequency modulation based on huge mathematical calculation by an audio synthesizer after communicating a lot of audio coefficients required by the synthesis with corresponding hardware, and output to a speaker for playing.
The audio wave requires further generating left channel synthetic audio L and right channel synthetic audio R through the output circuit 50. The output circuit 50 receives the audio wave and modulates it based on characteristic parameters, to output the audio L and R. The characteristic parameters include mute parameter Mute, volume control parameter VoCol, channel control parameter ChCol, left selection parameter L-Col and right selection parameter R-Col. The parameter Mute determines whether or not each audio wave is outputted. The parameter VoCol adjusts current volume of an audio wave. The parameter ChCol determines if the audio wave is output. The parameters L-Col and R-Col control an output ratio of left to right channels of the audio wave. Finally, the left audio L and another left audio L′ generated by output circuits 50 of another channels are added, and similarly the right audio R and another right audio R′ are added, thus generating and outputting the synthetic audio.
As cited, for audio synthesis, the CPU 32 requires transmitting the modulation parameter, the control parameter and the characteristic parameter to the audio chip 30. Thus, huge data transmission between the devices 32 and 30 is required, and the performance of the CPU 32 is reduced because the reading, calculating and outputting operations for parameters largely add the load of the CPU 32. Therefore, it is desirable to provide an improved method to mitigate and/or obviate the aforementioned problems.
An object of the present invention is to provide a method of audio synthesis, which can reduce central processing unit (CPU) load on audio synthesis.
Another object of the present invention is to provide a method of audio synthesis, which can reduce required data communication between a CPU and an audio chip.
A further object of the present invention is to provide a system of audio synthesis, which can reduce CPU load on audio synthesis.
Another further object of the present invention is to provide a system of audio synthesis, which can reduce required data communication between a central processing unit (CPU) and an audio chip.
In accordance with one aspect of the invention, there is provided a method of audio synthesis, which applies frequency modulation for processing audio to output a synthetic audio. The method includes: establishing a parameter look-up table, outputting a wave parameter and a property parameter from a microprocessor to an audio processor, extracting a modulation parameter and a control parameter from the parameter look-up table based on the wave parameter by the audio processor, and applying frequency modulation to generate the synthetic audio by the audio processor based on the modulation parameter, the control parameter and the property parameter.
In accordance with another aspect of the invention, there is provided a system of audio synthesis, which applies frequency modulation for processing audio to output a synthetic audio. The system includes: a microprocessor to output a wave parameter and a property parameter, a memory to store a parameter look-up table of which records a modulation parameter and control parameter corresponding to the wave parameter, and an audio processor to input the wave parameter and the property parameter for reading the modulation parameter and the control parameter from the parameter look-up table based on the wave parameter and further performing frequency modulation to produce the synthetic audio based on the modulation parameter, the control parameter, and the property parameter.
Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
As shown, a parameter look-up table is first established in a read-only memory (ROM) 36. The content of the table is given, but not limited to, in a simple illustration of
The method of the present invention performs audio synthesis by applying FM technique, which includes, as shown in
In step S90, a wave parameter and a characteristic parameter are output from the CPU 32 to the audio chip 30. The wave parameter includes a timbre parameter and a sound (scale) parameter respectively corresponding to a modulation parameter and a control parameter.
In step S92, the modulation parameter and the control parameter corresponding to the wave parameter are read from the ROM 36 by the audio chip 30. When the audio chip 30 receives the wave parameter from the CPU 32, the timbre parameter and the scale parameter are extracted from the wave parameter, and the modulation parameter and the control parameter corresponding to the wave parameter are read from the parameter look-up table (stored in ROM 36). For example, a timbre parameter and a scale parameter of the wave parameter are piano and ‘DO’ respectively. In this case, the piano timbre parameter corresponds to a modulation parameter having modulating wave phase angle data ωmt 1500, modulation wave data I(t) 2t, carrier phase angle data ωct 2500, amplitude coefficient signal A(t) 4t, and tone color selection signal TC 1. Also, in this case, the ‘DO’ scale parameter corresponds to a control parameter having attack +2t, decay −1(t−5), sustain 1 and release −4(t−10). However, modulation parameters and control parameters stored in the parameter look-up table depend on actual applications, not limited to the above example.
In step S94, a synthetic audio is generated and outputted by the audio chip 30 based on the modulation parameter, the control parameter and the characteristic parameter. The audio chip 30 synthesizes audio using FM technique. As cited, the audio chip 30 uses the modulation parameter, the control parameter and the characteristic parameter to generate the synthetic audio and output the synthetic audio to the speaker 34.
In step S96, the speaker 34 produces sound based on the synthetic audio.
In this invention, data transmission between the CPU 32 and the audio chip 30 requires only wave parameters and characteristic parameters because modulation parameters and control parameters are from the parameter look-up table (based on corresponding wave parameters), so that the data transmission amount is less than that in the prior art (in this example, 7 parameters are removed). Therefore, the load of the CPU 32 is greatly reduced.
Furthermore, since modulation parameters and control parameters are stored in the ROM 36, as compared to storing them in registers of the CPU 32 or the audio chip 34, system resource is saved and audio synthesis system costs less.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Number | Date | Country | Kind |
---|---|---|---|
92114939 A | Jun 2003 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4406204 | Katoh | Sep 1983 | A |
4813326 | Hirano et al. | Mar 1989 | A |
4868869 | Kramer | Sep 1989 | A |
4991218 | Kramer | Feb 1991 | A |
5243124 | Kondratiuk et al. | Sep 1993 | A |
5619002 | Walck | Apr 1997 | A |
5861568 | Abreu et al. | Jan 1999 | A |
20040240673 | Lee | Dec 2004 | A1 |
20070079689 | Saado et al. | Apr 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20040240674 A1 | Dec 2004 | US |