1. Field of the Invention
The present invention relates to a music playing/processing device, especially to a music playing/processing device applied in a wireless communication device.
2. Description of the Prior Art
The multimedia message service (MMS), as its name implies, is utilized for transmitting messages with multimedia contents, comprising various colorful pictures, animations, and sounds (including general ring tones, chord ring tones, self-recorded ring tones, which depends on the capabilities of cellular phones). While the network transmission speed allows, even a short video clip may be transmitted. Compared with the MMS, the conventional short message service (SMS) can only transmit relatively smaller texts and some basic and simple pictures.
As the technology advances, multimedia message service (MMS) has been gradually utilized in the present communication system nowadays, providing more vivid messages with more plentiful contents. However, a more powerful device with greater capacity is required. The wavetable synthesis technology, which is an electronic synthesis technology, is developed to meet the requirement. In this technology, the sounds of the music instruments are sampled and digitized to be burned on a synthesis chip (or to be stored as disc files) for sound simulation. Because it is a string of waveforms being recorded, the microprocessor on the sound card is needed to generate loops and repeats in order to play back the sound samples.
Due to the diversity of the multimedia data, many limitations still exist in the current system structure, especially the micro controller unit and digital signal processor. The micro controller unit comprises the major components of a computer, which are the central processing unit (CPU), memory, and output/input unit. Structurally, the micro controller unit is just like a simple computer for executing control functions. The digital signal processor is a processor that can process digital signals in high speed with an instant and fast calculation function. When a lot of data are transmitted in, the capacity of the micro controller unit cannot make the execution of the control functions performed in an adequate speed, and the digital signal processor doest not have the sufficient memory to execute commands, generating a heavy load for the processing capability. Generally speaking, when the digital signal processor receives a lot of tasks at the same time, the task with high priority will be processed first. However, the priority of musical files is the lowest. The loading of the digital signal processor of the cellular phone is different all the time. If it is designed that the wavetable synthesis technology only can utilize the remained processing capability of the digital signal processor to execute, its performance will not be good. What's more, the performance will be very bad while the remained processing capability is insufficient. The present technology tries to solve the above problems by continuously promoting the processing speed and capability of the micro controller unit and the digital signal processor for handling the more complex multimedia data. However, as cellular phones tend to be smaller and smaller, it is getting more and more difficult to bring about technological breakthrough, and the cost of production is getting higher. The present invention provides a music playing/processing device for improving the efficiency of the digital signal processor of the execution of the wavetable synthesis operation. In this way, the wavetable synthesis technology can make full use of the remained processing capability of the digital signal processor so as to avoid introducing too much noise and to reduce the number of tone commands to be executed. Furthermore, the digital signal processor can use less memory to execute synthesis operation, and the performance of the music can be as perfect as possible.
The objective of the present invention is to provide a music playing/processing device applied in a wireless communication device to solve the problems of the prior art.
The present invention is a music playing/processing device for determining the playing order of each of the tones by analyzing and sequencing each of the tones of the music file to be played. The remained processing capability of the digital signal processor is limited after processing the tasks with higher priority, and therefore, the present invention is provided to avoid introducing too much noise, and to reduce the number of tone commands to be executed. Furthermore, the present invention makes the digital signal processor capable of using less memory to execute synthesis operation, and makes the performance of the music as perfect as possible.
The music playing/processing device of the present invention is used for playing a musical file in a wireless communication device and for determining the playing order of a plurality of tones of the musical file. The music playing/processing device comprises: an analysis module for receiving the musical file and analyzing a waveform corresponding to each of the tones so as to generate a plurality of order parameters for each of the tones; a sorting module for arranging a playing order to play the tones according to the order parameters of each of the tones; and a playing module for playing the tones according to the playing order.
The advantage and spirit of the invention may be understood by the following recitations together with the appended drawings.
Please refer to
Please refer to
Please refer to
Please refer to
Please refer to
Step S32: Start and receive the musical file.
Step S34: Reset the timer, and start the timing.
Step S36: Analyze the musical file and determine the priority of each of the tones of the musical file.
Step S38: Execute the wavetable synthesis.
Step S40: Decide whether all the tones are completely executed. If yes, go to step S42; if no, go to step S44.
Step S42: Reset the timer, finish the timing, and repeat step S32.
Step S44: Decide whether the timer reaches the threshold time. If yes, go to step S46; if no, go to step S50.
Step S46: Discard the execution of the tones with the lower priorities.
Step S48: Reset the timer and finish the timing.
Step S50: The timer keeps on timing, :and the music playing/processing device keeps on processing the tones which are not executed, and repeat S38.
In another embodiment (not shown), the tones which have the lower priorities and are discarded in the step S46 can be executed when the whole process is restarted.
In the prior art, when processing the musical file, the music playing/processing device will sequentially process the entire envelope of each of the tones in the musical file, including the attack, decay, sustain, and release, so as to completely play each of the tones. Though the prior art can generate complete music, huge and powerful capabilities of the micro controller unit and the digital signal processor are required due to the complication of the music, which is a mixture of various tones (for example, the music comprises the tones of flute, drumbeat, piano, violin, . . . at the same time). Furthermore, because the priority of the musical file is the lowest, it is common that the music will be interrupted during the playing, or even cannot be played. Compared with the prior art, the music playing/processing device of the present invention can make full use of the remained processing capability of the digital signal processor, avoid introducing too much noise, and reduce the number of the tone commands to be executed. Furthermore, the present invention is provided to make the digital signal processor use less memory to execute the synthesis operation, and make the performance of the music as perfect as possible.
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 |
---|---|---|---|
92113133 A | May 2003 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
3952623 | Deutsch | Apr 1976 | A |
5604323 | Hardie-Bick | Feb 1997 | A |
5814751 | Imamura | Sep 1998 | A |
6184455 | Tamura | Feb 2001 | B1 |
20020102960 | Lechner | Aug 2002 | A1 |
20030128834 | Laine | Jul 2003 | A1 |
20030131719 | Kubita | Jul 2003 | A1 |
Number | Date | Country | |
---|---|---|---|
20040226434 A1 | Nov 2004 | US |