This invention relates to music playback devices that are applicable to portable telephone terminals such as automobile phones and cellular phones.
Conventionally, there are provided digital cellular systems such as PDC (Personal Digital Cellular telecommunication system) and PHS (Personal Handyphone System). Upon receipt of incoming calls, portable telephone terminals such as cellular phones held by users produce incoming call sounds to notify users of reception of incoming calls. As incoming call sounds, telephone terminal devices conventionally produce beep sounds, which are offensive to ears of users. Recently, telephone terminal devices produce melody sounds as incoming call sounds instead of the conventional beep sounds.
The aforementioned telephone terminal devices are capable of producing melody sounds, however, which are not satisfactory in sound quality.
In order to improve the sound quality, music playback devices that reproduce music data representing musical tunes on telephone terminal devices are provided. A typical example of a music playback device for use in a telephone terminal device is constituted by a central processing unit (CPU), a read-only memory (ROM), a random-access memory (RAM), and a sound source. Herein, the CPU runs automatic performance programs stored in the ROM, so that music data stored in the ROM or RAM are read, and tone-generation parameters are set to the sound source. Thus, musical tunes are played back on the telephone terminal device.
It is required that telephone terminal devices, particularly portable telephones sold in the market, are reduced in size and price and are designed to have multiple functions. In addition, it is required that telephone terminal devices are capable of performing numerous functions such as call transmission and reception functions, display function, etc. In the music playback device incorporated into the portable telephone terminal device, the CPU should perform music playback processes in addition to telephone function processes. Hence, the music playback device requires a high-speed CPU for processing. This raises a problem in that the portable telephone terminal device having a high-speed CPU must be expensive.
Melody ICs are known as devices that are exclusively designed to reproduce melodies. A typical example of a melody IC for use in a portable telephone terminal device is constituted by a sound source, a sequencer, and a ROM that is exclusively used as a music data storage. By applying music playback instructions from the external device, the melody IC reproduces music data stored in the ROM to play back a melody of a musical tune. By incorporating such a melody IC into the portable telephone terminal device, the CPU does not necessarily perform music playback processes. Using the melody IC eliminates the necessity that the CPU executes music playback processes. Hence, it is possible to use a low-cost and low-speed CPU for the portable telephone terminal device incorporating the melody IC.
Normally, the melody IC provides a ROM having a small storage capacity for music data, hence, the melody IC is capable of storing the limited number of musical tunes, so it is impossible to increase time lengths for playback of musical tunes. Because of the small storage capacity of the ROM, the melody IC cannot store the considerable amount of music data realizing high-quality playback of musical tunes. Hence, the portable telephone terminal device incorporating the melody IC plays back only a melody of low sound quality.
It is an object of the present invention to provide a music playback device that is capable of reproducing musical tunes in high sound quality on the basis of music data stored in the limited storage capacity by using a low-speed operational processor. In addition, it is another object of the present invention to provide a portable telephone terminal device incorporating a music playback device realizing high-quality playback of musical tunes by using the limited storage capacity for music data and by using a low-speed operational processor.
A portable telephone terminal device such as a cellular phone has a music playback device to play back musical tunes for prescribed uses, namely incoming call notification, hold sound generation, BGM playback, and music playback. The music playback device basically comprises a sequence data FIFO memory for storing sequence data containing duration data and note data with respect to a musical tune, a waveform data FIFO memory for storing waveform data representing samples of musical tone waveforms that are made by compressive coding, a decoder for decoding waveform data to reproduce musical tone signals, and a sequencer for controlling the decoder to reproduce musical tone signals in conformity with the musical tune on the basis of the sequence data. The duration data represents a time interval that elapses before the start timing of note data.
When the sequence data FIFO memory runs short of sequence data in progression of reproduction of a musical tune, it issues a sequence data transfer request (S-IRQ) to a system CPU and urges it to transfer the next portion of sequence data thereto. When the waveform data FIFO memory runs short of waveform data in progression of reproduction of a musical tune, it issues a waveform data transfer request (W-IRQ) to the system CPU and urges it to transfer the next portion of waveform data thereto. Thus, the system CPU successively transfers sequence data to the sequence data FIFO memory to fill its storage capacity, and it also successively transfers waveform data to the waveform data FIFO memory to fill its storage capacity. This brings reduction of storage capacities for memories while securing high-quality playback of musical tunes. In addition, the system CPU bears merely a small load of processing in execution of music playback processes, so a high-speed CPU is not necessarily needed for the system CPU.
Incidentally, it is possible to provide multiple waveform data FIFO memories with respect to multiple channels, so that the decoder simultaneously reproduces musical tone signals of multiple channels in time division multiplexing.
This invention will be described in further detail by way of examples with reference to the accompanying drawings.
The communicator 13 demodulates incoming signals received by the antenna 1a, and it also modulates outgoing signals to be transmitted via the antenna 1a. That is, the communicator 13 demodulates incoming call signals to produce received speech signals representing the speech of a calling party transmitted thereto. The received speech signals are decoded by a speech processor (coder-decoder) 14. In addition, the speech processor 14 performs compressive coding on transmitting speech signals representing the speech of the user of the portable telephone 1. That is, the speech processor 14 is designed to perform high-efficiency compressive coding/decoding on speech signals, for example, the speech processor 14 is constituted as a coder-decoder based on the code excited linear predictive coding (CELPC) system or adaptive differential pulse-code modulation (ADPCM) system. A music playback section 15 realizing the music playback device of the present invention is coupled with a speaker 22 to produce the received speech of received speech signals given from the speech processor 14. In addition, the music playback section 15 reproduces music data to produce incoming call sound or hold sound. The incoming call sound is produced by a speaker 23, while the hold sound is mixed together with the received speech and is produced by the speaker 22.
The music playback section 15 contains a music data storage having a small storage capacity, and a waveform data storage. During reproduction of music data by the music playback section 15, a vacant area having a prescribed size is produced inside of the music data storage and/or the waveform data storage. In that case, the music playback section 15 issues an interrupt request signal (IRQ) to the system CPU 10, which in turn accesses the system RAM 11 or system ROM 12 to read the next portion of music data and/or waveform data. Thus, the next portion of music data and/or waveform data is transferred to the music playback section 15. An interface (I/F) 16 is used to download from an external device 20 such as a personal computer the music data and/or waveform data, which are transferred to the system RAM 11. An operator input section 17 contains various types of buttons such as function buttons and dial buttons designating numerals ranging from ‘0’ to ‘9’. A display 18 displays on the screen a telephone function menu and various types of characters and/or images in response to operations of buttons on the operator input section 17. In response to an incoming call, the system CPU 10 activates the vibrator 19 to generate vibration, which is substituted for incoming call sound. Due to the activation of the vibrator 19, the body of the portable telephone 1 is vibrated to notify the user of reception of an incoming call. All of function blocks of the portable telephone 1 are interconnected together by way of a bus 24 to send or receive instructions and data.
The portable telephone 1 has capabilities of downloading music data and waveform data via telephone lines or various types of networks. Next, procedures and operations for downloading music data will be described with reference to
In general, cellular systems provided for communications of portable telephones employ small zone systems, wherein numerous radio communication zones are arranged in service areas. In
Next, a detailed description will be given with respect to an example of the cellular system shown in
The download center 6 corresponds to computer facilities used for the purpose of the distribution of music data and information to general telephone terminals or other communication devices. That is, the download center 6 accumulates at all the times numerous music data and waveform data, which are updated by additions of new musical tunes at any time. The present system allows the users of the portable telephones 1 and 101 to download music data and waveform data from the download center 6 connected with general telephone networks. In order to download music data from the download center 6, the user of the portable telephone 1 designates a prescribed telephone number to call the download center 6. Thus, there is established a communication path between the portable telephone 1, base station 2c, mobile exchange 3, gate exchange 4, general telephone exchanges 5a and 5b, and download center 6. Then, the prescribed musical tune selection menu is displayed on the screen of the display 18 of the portable telephone 1, according to which the user operates dial buttons on the operator input section 17 to select a desired musical tune (or desired musical tunes). Thus, the user is able to download music data of the desired musical tune(s) onto the portable telephone 1 from the download center 6. Similarly, the user is also able to download desired waveform data onto the portable telephone 1 from the download center 6.
The music playback section 15 of
The CPU interface 30 is connected to the system CPU 10 by way of an 8-bit data line (Data/Index), a chip select line (CS), an address control line (A0), a read control line (RD), and a write control line (WR). The address control line is used to designate whether signals on the data line represent data or indexes. Indexes are used to designate addresses of registers contained in the first registers 31 and the second registers 35 respectively. By sequentially writing data and indexes to the CPU interface 30 via the data line, it is possible to write data to registers that are designated by indexes within the first registers 31 and second registers 35. In this case, signals of the address line designate distinctions between signals of the data line. In a read mode, indexes are written to the CPU interface 30 via the data line, then, read instructions are applied to the CPU interface 30 via the read control line. Thus, it is possible to read data from registers that are designated by indexes within the first registers 31 and second registers 35.
The first registers 31 contain five registers, each of which stores 8-bit data. The five registers are given prescribed names, that is, a sequencer control register, a sequence data register, a waveform data register, a status register, and a waveform number register.
The system CPU 10 writes sequencer control data to the sequencer control register to control the sequencer 34. The sequencer control data may contain a sequencer start instruction for starting playback of musical tones and/or a sequencer stop instruction for stopping playback of musical tones.
The system CPU 10 writes sequence data such as music data to the sequence data register. The sequence data are formed in the prescribed format, which will be described later. As shown in
The system CPU 10 writes waveform data to the waveform data register, from which waveform data are directly and immediately transferred to the waveform data FIFO memory 33. Details of waveform data will be described later. Roughly speaking, waveform data are made by performing coding operations or compressive coding operations on waveform amplitude values, which are extracted by sampling vocal sound, speech, and musical tones produced by actually playing musical instruments.
The status register represents music playback states (or statuses) of the music playback section 15. The status register stores a sequence data Full flag (S-Full) and a sequence data IRQ flag (S-IRQ) from the sequence data FIFO memory 32 as well as a waveform data Full flag (W-Full) and a waveform data IRQ flag (W-IRQ) from the waveform data FIFO memory 33. In addition, it also stores a sequence data END flag (END) and a gate time END flag (GEND) from the sequencer 34. The content of the status register is read by the system CPU 10.
The waveform number register stores waveform numbers that designate waveform data to be reproduced. The content of the waveform number register is read by the system CPU 10. Incidentally, the sequencer 34 extracts waveform numbers (WAVE-No) from the note data, so that the read waveform numbers are supplied to the first registers 31.
The sequence data FIFO memory 32 has a storage capacity of thirty-two bytes (i.e., 32×8 bits), for example. In a write mode, the system CPU 10 sequentially writes sequence data, which correspond to a selected musical tune, to the sequence data FIFO memory 32 by way of the sequence data register within the first registers 31. In a read mode, the sequence data are sequentially read from the sequencer 34 in conformity with a write order. Once the sequence data are read by the sequencer 34, they are discarded in the sequence data FIFO memory 32. In addition to the aforementioned FIFO functions, the sequence data FIFO memory 32 has functions of monitoring amounts of sequence data stored therein. In the full condition where the amount of sequence data stored in the sequence data FIFO memory 32 reaches thirty-two bytes, the sequence data FIFO memory 32 issues a sequence data Full flag (S-Full) and sets it to the status register of the first registers 31. In the shortage condition where the amount of sequence data stored in the sequence data FIFO memory 32 decreases under the prescribed amount (e.g., eight bytes) that is preset by the system CPU 10, the sequence data FIFO memory 32 issues a sequence data IRQ flag (S-IRQ) and sets it to the status register of the first registers 31. The sequence data IRQ flag is also supplied to the IRQ control section 39 to notify the system CPU 10 of the shortage condition of the sequence data FIFO memory 32.
The waveform data FIFO memory 33 has a storage capacity of 384 bytes (i.e., 384×8 bits), for example. In a write mode, the system CPU 10 sequentially writes waveform data to the waveform data FIFO memory 33 by way of the waveform data register within the first registers 31. In a read mode, the waveform data are sequentially read by the sequencer 34 or decoder 36. Once the waveform data are read by the sequencer 34 or decoder 36, they are discarded in the waveform data FIFO memory 33. The waveform data are formed in the prescribed format realizing ADPCM (or adaptive differential pulse-code modulated) waveform data that are created based on PCM (or pulse-code modulated) waveform data consisting of 16-bit samples, for example. That is, the PCM waveform data are compressed by an ADPCM encoder to the ADPCM waveform data consisting of 4-bit samples.
By writing a sequencer start instruction to the sequencer control register of the first registers 31, the sequencer 34 starts to operate in accordance with the sequencer start instruction. Prior to the sequencer start instruction, it is necessary that some amount of sequence data is precedently written to the sequence data FIFO memory 32. It is preferable that at least the head portion of waveform data designated by the sequence data is precedently written to the waveform data FIFO memory 33.
Outline operations of the sequencer 34 will be described below.
When the sequencer 34 writes tone-generation parameters such as start/stop signals and tone volume to the second registers 35, the decoder 36 starts or stops decoding operations thereof Based on tone-generation parameters from the sequencer 34 and the waveform data from the waveform data FIFO memory 33, the decoder 36 decodes (or expands) ADPCM waveform data consisting of 4-bit samples to produce PCM waveform data consisting of 16-bit samples. The format of the waveform data is not necessarily limited to the ADPCM format, so it is possible to employ other types of formats that allow compression of waveform data, such as the DPCM (Differential Pulse-Code Modulation) format, MP3 (namely, Moving Picture Experts Group, audio layer 3) format, and TwinVQ (registered trademark) format. If the present embodiment is redesigned to use one of the aforementioned formats, the decoder 36 should be correspondingly reconstructed to cope with one of them. If the present embodiment is redesigned to reproduce waveform data of the non-compressed PCM format, it is necessary to skip decoding process of the decoder 36.
The music playback section 15 shown in
The sequence data FIFO memory 32 outputs a sequence data IRQ flag (S-IRQ) to notify the IRQ control section 39 that the amount of sequence data remained in the sequence data FIFO memory 32 decreases under the prescribed amount. Alternatively, the waveform data FIFO memory 33 outputs a waveform data IRQ flag (W-IRQ) to notify the IRQ control section 39 that the amount of waveform data remained in the waveform data FIFO memory 33 becomes lower than the prescribed amount. Upon receipt of the sequence data IRQ flag and/or the waveform data IRQ flag, the IRQ control section 39 issues an IRQ signal to the system CPU 10. Upon receipt of the IRQ signal, the system CPU 10 refers to the sequence data IRQ flag and/or the waveform data IRQ flag stored in the status register of the first registers 31, so that the system CPU 10 examines the cause of the IRQ to perform corresponding processes. Due to the setting of the sequence data IRQ flag, the system CPU 10 detects that the sequence data FIFO memory 32 runs short of the sequence data, so that the system CPU 10 proceeds to transfer of a certain amount of sequence data, which are 24 bytes (=32 bytes−8 bytes). The following portion of the sequence data is read from the system RAM 11 or system ROM 12, and are then transferred to the sequence data FIFO memory 32.
Due to the setting of the waveform data IRQ flag, the system CPU 10 detects that the waveform data FIFO memory 33 runs short of the waveform data, so that the system CPU 10 proceeds to transfer of a certain amount of waveform data, which are 256 bytes (=384 bytes−128 bytes). The following portion of the waveform data is read from the system RAM 11 or system ROM 12, and are then transferred to the waveform data FIFO memory 33. Incidentally, the system CPU 10 is not required to immediately perform transfer of the sequence data of 24 bytes and/or transfer of the waveform data of 256 bytes. In addition, the system CPU 10 is not required to transfer the sequence data of 24 bytes and/or the waveform data of 256 bytes entirely. That is, the transferring of the sequence data and/or waveform data is performed at the timing and by the amount, in which the music playback section 15 can continuously reproduce musical tones without interruption.
The aforementioned transfer of the sequence data and/or waveform data may be performed by an interrupt process. It is possible to perform transfer of the sequence data and/or waveform data without the interrupt process if the system CPU 10 directly accesses the status register of the first registers 31 to read the sequence data Full flag, sequence data IRQ flag, waveform data Full flag, and waveform data IRQ flag in predetermined periods. In that case, it is possible to exclude the IRQ control section 39 from the music playback section 15.
In the music playback section 15 of the first embodiment shown in
To start playback of musical tones, the sequencer 34 reads a head portion of the sequence data consisting of first note data and first duration data from the sequence data FIFO memory 32 so that a waveform number contained in the first note data is written to the waveform number register of the first registers 31. Thus, the waveform data designated by the waveform number are written to the waveform data FIFO memory 33 under the control of the system CPU 10. Thus, the music playback section 15 completes preparation for starting playback of a musical tone. At the tone-generation start timing based on the first duration data, the sequencer 34 controls the decoder 36 to start decoding on the waveform data. At the same time, the sequencer 34 reads the next portion of sequence data consisting of next duration data and next note data from the sequence data FIFO memory 32. By repeating the aforementioned operations, the decoder 36 sequentially decodes the waveform data to produce PCM waveform data, which are converted to analog waveform signals by the digital-to-analog converter 37, so that appropriate sound is reproduced based on analog waveform signals. When the reproduced sound correspond to music or incoming call sound (or incoming call melody), the speaker 23 produces the reproduced sound. When the reproduced sound correspond to BGM or hold sound, the reproduced sound is mixed with received speech signals from the speech processor 14 by the mixer 38, so that the mixed sound is produced by the speaker 22. In the case of the hold sound, received speech signals are muted in the mixer 38, so that only the hold sound is produced by the speaker 22.
During the decoding of the first note data, when the amount of waveform data stored in the waveform data FIFO memory 33 decreases under the prescribed amount (e.g., 128 bytes), the waveform data FIFO memory 33 issues a waveform data IRQ flag (W-IRQ), which is set to the status register of the first registers 31. The waveform data IRQ flag is also delivered to the IRQ control section 39 to notify the system CPU 10 of a shortage event of the waveform data in the waveform data FIFO memory 33. In response to the waveform data IRQ flag, the system CPU 10 writes the next portion of waveform data to the waveform data FIFO memory 33 by way of the waveform data register. As a result, even though the waveform data FIFO memory 33 has a relatively small storage capacity, it is possible to reproduce numerous waveform data, which are necessary for high quality reproduction of musical tones, without interruption.
When it comes to an end time of a tone-generation period based on the gate time of the first note data, the sequencer 34 stops the decoder 36 decoding the waveform data, so that the reproduced sound is stopped. At the same time, the sequencer 34 sets a gate time END flag (GEND) to the status register while it also clears the first duration data and first note data in the sequence data FIFO memory 32. Next, the sequencer 34 writes a waveform number contained in second note data to the waveform number register, so that the system CPU 10 writes waveform data designated by the waveform number to the waveform data FIFO memory 33. Then, the sequencer 34 waits for the start timing of a tone-generation period based on second duration data. When it comes to the start timing of the tone-generation period, the sequencer 34 controls the decoder 36 to start decoding of waveform data based on the second note data. At the same time, the sequencer 34 reads third duration data and third note data from the sequence data FIFO memory 32. The aforementioned operations are repeatedly performed till an end of the sequence data or until the user operates an end key of the portable telephone to stop playback. Until then, the portable telephone continuously produces reproduced sound based on the sequence data.
In the progression of reproduction of the waveform data on the basis of the sequence data, when the amount of sequence data stored in the sequence data FIFO memory 32 decreases under the prescribed amount (e.g., 8 bytes), the sequence data FIFO memory 32 issues a sequence data IRQ flag (S-IRQ), which is set to the status register within the first registers 31. At the same time, the sequence data IRQ flag is also delivered to the IRQ control section 39 to notify the system CPU 10 of a shortage event of the sequence data in the sequence data FIFO memory 32. In response to the sequence data IRQ flag, the system CPU 10 writes the next portion of sequence data to the sequence data FIFO memory 32 by way of the sequence data register. As a result, even though the sequence data FIFO memory 32 has a relatively small storage capacity, it is possible to reproduce numerous sequence data, which are required for long-time reproduction, without interruption.
With reference to
The music playback section 15 of the second embodiment is designed to simultaneously reproduce waveform data of four channels based on sequence data of a single musical tune. In this case, sequence data have the prescribed format that allows simultaneous reproduction of waveform data of four channels. Thus, the music playback section 15 of the second embodiment secures simultaneous reproduction of waveform data of four channels. Unlike the music playback section 15 of
Next, a description will be given with respect to an example of the format of sequence data with reference to FIG. 5. Herein, sequence data consist of duration data and note data (or tone-generation data), which are arranged alternately. Duration data consists of one byte or two bytes to represent an interval of time that elapses before start of reproduced sound corresponding to next note data. Note data consists of two bytes, which are constituted by 2-bit channel number (Ch-No) representing one of four tone-generation channels, 6-bit waveform number (WAVE-No) designating one of waveform data within sixty-four tone colors, and 8-bit gate time. Gate time corresponds to time data that represent a note length of reproduced sound based on note data.
The aforementioned format of sequence data shown in
Next, a description will be given with respect to a map of the system RAM 11 that stores sequence data and waveform data.
The number of musical tunes of sequence data to be stored depends upon the storage capacity of the system RAM 11. Hence, it is possible to store numerous sequence data as the system RAM 11 has a large storage capacity. In
The system CPU 10 manages how much the sequence data have been already transferred to the music playback section 15. Transfer management of sequence data is indicated by pointer 1, which moves (or scrolls) down along with sequence data in FIG. 7. That is, the pointer 1 designates the last address of the sequence data that have been already transferred to the music playback section 15.
The system RAM 11 stores at least a minimum number of waveform data, which are designated by waveform numbers included in reproduced sequence data. Sequence data of a single musical tune can designate maximally sixty-four kinds of waveform data (namely, sixty-four tone colors), so that waveform number consists of six bits allowing selection from among sixty four items. For this reason, as shown in
The system CPU 10 also manages how much waveform data have been already transferred to the music playback section 15. Transfer management of waveform data is indicated by pointers with respect to respective channels. That is, pointer 2 designates the last address of waveform data that have been already transferred to the music playback section 15 with respect to channel 1 (Ch-1). Similarly, pointer 3 designates the last address of waveform data that have been already transferred to the music playback section 15 with respect to channel 2 (Ch-2). In addition, pointer 4 designates the last address of waveform data transferred with respect to channel 3 (Ch-3); and pointer 5 designates the last address of waveform data transferred with respect to channel 4 (Ch-4). In the first embodiment using the ‘monophonic’ music playback section 15, there is provided only one pointer for designating the last address of waveform data transferred with respect to a single channel. The system RAM 11 of the portable telephone 1 shown in
In the second embodiment shown in
Suppose that the system CPU 10 issues a playback start instruction to the music playback section 15 shown in FIG. 4. In this case, the sequencer 134 starts playback upon detection of a playback start instruction. The system CPU 10 issues a playback start instruction when the user operates a playback key of the portable telephone 1 (or 101) to start playback of music or BGM, or when the portable telephone receives an incoming call to start playback of incoming call melody. In addition, the system CPU 10 also issues a playback start instruction when the user operates a hold key of the portable telephone to start playback of hold sound.
To start playback of music, the sequencer 134 accesses the sequence data FIFO memory 132 to read sequence data consisting of duration data and note data. Then, the sequencer 134 extracts waveform numbers that are contained in the note data to designate waveform data, so that it writes them together with channel numbers designating tone-generation channels to the waveform number register within the first registers 131. Under the control of the system CPU 10, each waveform data designated by each waveform number is written to one of four waveform data FIFO memories 133a-133d, which is designated by the corresponding channel number. Next, a description will be given with respect to operations of the music playback section 15 shown in
During decoding of waveform data designated by note data 1 in progress, when the amount of waveform data stored in the waveform data FIFO memory 133a of channel 1 decreases under the prescribed amount (e.g., 128 bytes), the waveform data FIFO memory 133a issues a waveform data IRQ flag (W-IRQ), which is set to the status register within the first registers 131. At the same time, the waveform data IRQ flag is also supplied to the IRQ control section 139 to notify the system CPU 10 of a shortage event in which the waveform data FIFO memory 133a runs short of waveform data. Thus, the system CPU 10 supplies the next portion of waveform data for channel 1 to the waveform data FIFO memory 133a by way of the waveform data register within the first registers 131. As a result, even though the waveform data FIFO memory 133a has a relatively small storage capacity, it is possible to reproduce numerous waveform data, which are necessary for high-quality reproduction, without interruption.
After reading duration data 2 and note data 2, the sequencer 134 writes a waveform number, which is contained in note data 2 to designate waveform data, to the waveform number register together with a channel number designating channel 2, which is a tone-generation channel for note data 2. Under the control of the system CPU 10, the designated waveform data is written to the waveform data FIFO memory 133b of channel 2. Thus, the sequencer 134 waits for the start timing of note data 2 based on duration data 2, then, it controls the decoder 136 to start decoding on waveform data designated by note data 2. The decoder 136 starts decoding on waveform data with respect to channel 2, so that the digital-to-analog converter 137 correspondingly outputs analog musical tone signals for channel 2. At the same time, the sequencer 134 reads the next pair of duration data 3 and note data 3 from the sequence data FIFO memory 132.
Since the decoder 136 operates in TDM, it performs decoding on waveform data of channel 1 and waveform data of channel 2 in TDM. Hence, the decoder 136 outputs PCM waveform data for two channels in TDM. The digital-to-analog converter 137 converts PCM waveform data of two channels to analog musical tone signals. Thus, the portable telephone produces polyphonic sounds based on the mixture of waveform data of channel 1 and channel 2.
After reading duration data 3 and note data 3, the sequencer 134 writes a waveform number, which is contained in note data 3 to designate waveform data, to the waveform number register together with a channel number designating channel 3, which is a tone-generation channel for note data 3. Under the control of the system CPU 10, the designated waveform data is written to the waveform data FIFO memory 133c of channel 3. The sequencer 134 waits for the start timing of note data 3 based on duration data 3. Before it comes to the start timing or note data 3, the end timing of note data 1 based on gate time 1 arrives on the sequencer 134. That is, the sequencer 134 stops the decoder 136 decoding waveform data of channel 1, so that the music playback section 15 stops producing sound of channel 1. At the same time, the sequencer 134 sets a gate time END flag (GEND) to the status register within the first registers 131, and it also clears duration data 1 and note data 1 in the sequence data FIFO memory 132.
Thereafter, when it comes to the start timing of note data 3 based on duration data 3, the sequencer 134 starts the decoder 136 to perform decoding on waveform data designated by note data 3. Thus, the decoder 136 starts decoding on waveform data for channel 3, so that the digital-to-analog converter 137 outputs analog musical tone signals for channel 3. At the same time, the sequencer 134 reads the next pair of duration data 4 and note data 4 (not shown) from the sequence data FIFO memory 132; and then it repeats the aforementioned operations.
As described above, each of note data, contained in pairs of duration data and note data of sequence data, is used to designate waveform data and a tone-generation channel. During decoding of waveform data designated by note data in progress, when the amount of waveform data stored in the waveform data FIFO memory of the designated tone-generation channel decreases under the prescribed amount (e.g., 128 bytes), the waveform data FIFO memory issues a waveform data IRQ flag (W-IRQ), which is set to the status register within the first registers 131. At the same time, the waveform data IRQ flag is also supplied to the IRQ control section 139 to notify the system CPU 10 of a shortage event in which the waveform data FIFO memory runs short of waveform data. Thus, the system CPU 10 writes the next portion of waveform data to the waveform data FIFO memory by way of the waveform data register with respect to the designated tone-generation channel. As a result, even though the waveform data FIFO memories 133a-133d each have a relatively small storage capacity, it is possible to reproduce numerous waveform data, which are necessary for high-quality reproduction, without interruption.
Due to progression of reproduction of waveform data based on sequence data, when the amount of sequence data stored in the sequence data FIFO memory 132 decreases under the prescribed amount (e.g., 8 bytes), the sequence data FIFO memory 132 issues a sequence data IRQ flag (S-IRQ), which is set to the status register within the first registers 131. At the same time, the sequence data IRQ flag is also supplied to the IRQ control section 139 to notify the system CPU 10 of a shortage event in which the sequence data FIFO memory 132 runs short of sequence data. Thus, the system CPU 10 writes the next portion of sequence data to the sequence data FIFO memory 132 by way of the sequence data register. As a result, even though the sequence data FIFO memory 132 has a relatively small storage capacity, it is possible to reproduce numerous sequence data, which are necessary for long-time reproduction, without interruption.
The aforementioned reproduction processes are repeatedly performed till an end of sequence data or until the user operates an end key of the portable telephone to stop playback. Until then, the portable telephone continuously reproduces sound of music based on sequence data.
When reproduced sound is used as music or incoming call sound (or incoming call melody), the speaker 23 produces reproduced sound. When reproduced sound is used as BGM or hold sound, it is mixed with received speech signals from the speech processor 14 by the mixer 138, so that the speaker 22 produces mixtures of reproduced sound and received speech. In the case of the hold sound, the mixer 138 mutes received speech signals, hence, the speaker 22 produces only the hold sound as the reproduced sound.
Next, descriptions will be given with respect to processes that are executed by the system CPU 10 to assist music playback processes of the music playback section 15.
When the start of playback is detected in step S3, the flow proceeds to step S4 in which the system CPU 10 transfers a head portion of sequence data to the music playback section 15. That is, the system CPU 10 proceeds to transfer of sequence data in connection with a musical tune number that is selected by the user to cope with a specific use, namely incoming call notification, hold sound generation, BGM playback or music playback. Firstly, the system CPU 10 transfers only several bytes of the head portion of sequence data to the sequence data FIFO memory of the music playback section 15. In step S5, the system CPU 10 performs a sequencer start command transfer process to write sequencer start command data to the sequencer control register of the music playback section 15. By writing the sequencer start command data, the system CPU 10 starts playback of a musical tune for use in a specific use, which is detected in the foregoing step S3. If the system CPU 10 fails to detect the start of playback with respect to any one of four uses in step S3, the flow skips steps S4 and S5.
In step S6, a decision is made as to whether or not playback is stopped. The stop of playback is detected when the user operates an end key of the portable telephone to stop playback of BGM or music. In the case of the incoming call notification, the stop of playback is detected when the user operates a conversation key of the portable telephone. In the case of the hold sound generation, the stop of playback is detected when the user operates a hold release key of the portable telephone. If the system CPU 10 fails to detect the stop of playback with respect to any one of four uses in step S6, the flow proceeds to step S7 in which the system CPU 10 performs a status register read process to read the data of the status register of the music playback section 15 therein. In step S8, a decision is made as to whether or not playback is completed on sequence data with reference to an END flag that is set to the status register and is read into the system CPU 10.
When the system CPU 10 detects that playback is completed on sequence data because an END flag is set to the status register of the music playback section 15, the flow proceeds to step S9 in which the system CPU 10 performs a sequencer stop command transfer process to write sequencer stop command data to the sequencer control register of the music playback section 15. By writing the sequencer stop command data, the system CPU 10 stops operations of internal circuits of the music playback section 15. Therefore, the system CPU 10 clears various kinds of flags and data stored in the sequence data FIFO memory and waveform data FIFO memory. If the system CPU 10 fails to detect that playback is completed on sequence data in step S8, it ends the main process.
If the stop of playback is detected in step S6, the flow proceeds directly to step S9 in which the system CPU 10 performs a sequencer stop command transfer process to write sequencer stop command data to the sequencer control register of the music playback section 15. Thus, the system CPU 10 stops playback processes of the music playback section 15 to end the main process.
Upon receipt of the IRQ signal, the flow proceeds to step S11 in which the system CPU 10 performs a status register read process to read the data of the status register of the music playback section 15 therein. In step S12, a decision is made as to whether or not a sequence data IRQ flag is set to the status register. When the sequence data IRQ flag is set to the status register, it is possible to specify the cause of an IRQ as the shortage of sequence data in the sequence data FIFO memory. In step S13, the system CPU 10 performs a sequence data transfer process to transfer the prescribed amount of sequence data (e.g., 24 bytes) to the sequence data FIFO memory of the music playback section 15. Then, the flow proceeds to step S14. When the system CPU 10 detects in step S12 that the sequence data IRQ flag is not set to the status register, the flow directly proceeds to step S14 by skipping step S13.
In step S14, a decision is made as to whether or not a waveform data IRQ flag is set to the status register. When the waveform data IRQ flag is set to the status register, it is possible to specify the cause of an IRQ as the shortage of waveform data in the waveform data FIFO memory. In step S15, a decision is made as to whether or not a gate time END flag GEND is set to the status register. When the system CPU 10 detects in step S15 that the gate time END flag GEND is not set to the status register, the flow proceeds to step S16 in which a waveform data transfer process is performed to transfer the prescribed amount of waveform data (e.g., 256 bytes) to the waveform data FIFO memory of the music playback section 15 because the waveform data IRQ flag is set to the status register and is detected in step S14. In order to specify the ‘transferring’ waveform data, the system CPU 10 performs the waveform data transfer process with reference to the content of the waveform number register of the music playback section 15.
When the system CPU 10 detects in step S15 that the gate time END flag is set to the status register, it immediately ends the IRQ process by skipping the waveform data transfer process of step S16 even though the waveform data IRQ flag is set to the status register to indicate the shortage of waveform data in the waveform data FIFO memory. Because, when the gate time END flag is set to the status register by the end of the gate time (i.e., tone-generation period or note length), it is unnecessary to further reproduce waveform data, in other words, it is unnecessary to further transfer waveform data to the waveform data FIFO memory. In addition, when the system CPU 10 detects in step S14 that the waveform data IRQ flag is not set to the status register, it is unnecessary to perform the waveform data transfer process, so that the system CPU 10 immediately ends the IRQ process.
As described above, the music playback device of the present invention executes music playback processes to play back selected musical tunes in connection with four uses. That is, the music playback device plays back a musical tune as incoming call sound (or incoming call melody) when the portable telephone receives incoming call signals. The music playback device plays back a musical tune as hold sound when the user operates the hold key of the portable telephone. The music playback device plays back a musical tune as BGM or music when the user operates the playback key of the portable telephone. In the aforementioned cases, the music playback device plays back musical tunes that are selected by the user to cope with four uses respectively. Herein, it is possible to select different musical tunes independently for four uses, namely incoming call notification, hold sound generation, BGM playback, and music playback. Incidentally, the portable telephone allows the user to perform tune select operations at all times. Hence, the user is able to arbitrarily select musical tunes to be played back for four uses respectively at any time.
Basically, processing of the system CPU 10 is mainly occupied by the telephone function processes (which are not explained in conjunction with the drawings), while the aforementioned processes of
The sequence data FIFO memory has a limited storage capacity for storing thirty-two byes of sequence data, which is merely an example and is not necessarily a restrictive matter. That is, the portable telephone requires the sequence data FIFO memory having a very small storage capacity compared with the system RAM 11. In addition, the waveform data FIFO memory has a limited storage capacity for storing 384 bytes of waveform data, which is merely an example and is not necessarily a restrictive matter. That is, the portable telephone requires the waveform data FIFO memory having a very small storage capacity compared with the system RAM 11.
As described heretofore, this invention is not limited to the aforementioned embodiments, hence, it is possible to provide a variety of modifications within the scope of the invention and without departing from the essential subject matter of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2000-88204 | Mar 2000 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP01/02442 | 3/27/2001 | WO | 00 | 4/7/2003 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO01/73749 | 10/4/2001 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
4478525 | Yamaguchi | Oct 1984 | A |
4602546 | Shinohara | Jul 1986 | A |
4796014 | Chia | Jan 1989 | A |
5054787 | Richardson | Oct 1991 | A |
5146473 | Critchlow et al. | Sep 1992 | A |
5214543 | Takao | May 1993 | A |
5225944 | Takao | Jul 1993 | A |
5315638 | Mukari | May 1994 | A |
5388992 | Franklin et al. | Feb 1995 | A |
5675509 | Ikami et al. | Oct 1997 | A |
5726629 | Yu | Mar 1998 | A |
5753844 | Matsumoto | May 1998 | A |
5778335 | Ubale et al. | Jul 1998 | A |
6094587 | Armanto et al. | Jul 2000 | A |
6167251 | Segal et al. | Dec 2000 | A |
6252495 | Nakamura | Jun 2001 | B1 |
6255577 | Imai | Jul 2001 | B1 |
6355870 | Tsai et al. | Mar 2002 | B1 |
6366791 | Lin et al. | Apr 2002 | B1 |
6411198 | Hirai et al. | Jun 2002 | B1 |
6501967 | Makela et al. | Dec 2002 | B1 |
6549767 | Kawashima | Apr 2003 | B1 |
6554711 | Kawasaki et al. | Apr 2003 | B1 |
20020103552 | Boucher et al. | Aug 2002 | A1 |
Number | Date | Country |
---|---|---|
1172319 | Feb 1998 | CN |
9-181795 | Jul 1997 | JP |
Number | Date | Country | |
---|---|---|---|
20030176206 A1 | Sep 2003 | US |