1. Technical Field
The present disclosure relates to playing systems, and particularly to a music playing system and a method.
2. Description of Related Art
Music playing devices, such as MP3 players, MP4 players, usually play a whole song based on a startup operation. However, sometimes users have interest in only a small portion of each song, thus requiring users to manually adjust the music playing device to play the interested portion. This is time-consuming.
Therefore, what is needed is a music playing system to overcome the above described limitations.
The electronic device 2 includes an input unit 21, a storage unit 22, and a processor 3. The input unit 21 receives input operations. The storage unit 22 stores a number of songs and a table. The table stores a name of each song, a start position and an end position of a predetermined segment within in each song, and relationships between the name of each song and the start position and the end position of the predetermined segment of each song. The start position is a position where the predetermined segment starts, and the end position is the position where the predetermined segment ends.
The processor 3 includes a control module 31, an acquiring module 32, and a playing module 33 which is a collection of software instructions for execution by the processor 3.
The control module 31 controls the electronic device 2 to enter a predetermined playing mode in response to a first input operation received by the input unit 21. The acquiring module 32 orderly acquires the name of each song and the start position and end position of the predetermined segment associated with the acquired name of each song from the table when in the predetermined playing mode. The playing module 33 plays in order the acquired predetermined segment of each song based on the acquired name of each song and the start position and end position of the predetermined segment associated with the acquired name of each song.
The processor 3 further includes a name acquiring module 38, a time determining module 35, a segment determining module 36, a defining module 37, and a table recording module 34 which is collection of software instructions for execution by the processor 3. The control module 31 controls the electronic device 2 to enter a normal playing mode in response to a second input operation received by the input unit 21. The playing module 33 plays the songs in the order stored in the storage unit 22 when in normal playing mode. The time determining module 35 determines if the song is being played for a first time. The name acquiring module 38 acquires the name of the played song when the song is being played for the first time. Each song includes a number of playing points, each of which is assigned an audio frequency and an amplitude. The segment determining module 36 determines a segment, which includes a number of playing points, each of which satisfies a predetermined condition, as the predetermined segment within the played song when the song is played for the first time. In one embodiment, the predetermined condition is that the audio frequency is more than 800 Hz and the amplitude is not less than 0.6Max. In other embodiments, the predetermined condition can be set according to requirement. The defining module 37 defines a starting position of the determined segment as the starting position of the predetermined segment, and an ending position of the determined segment as the ending position of the predetermined segment. The table recording module 34 records the name of the played song, the starting position and ending position of the predetermined segment of the played song, and the relationships between the name of the played song and the starting position and ending position of the predetermined segment of the played song in the table.
In other embodiments, the segment determining module 36 can determine a segment which is repeatedly played as the predetermined segment with in the played song. The defining module 37 can define the starting position and ending position of the determined segment as the starting position and the ending position of the predetermined segment.
In step S601, the control module 31 controls the electronic device 2 to enter a predetermined playing mode in response to a first user operation.
In step S602, the acquiring module 32 orderly acquires the name of each song and the start position and end position of predetermined segment associated with the acquired name of the each song from the table when in the predetermined playing mode.
In step S603, the playing module 33 plays the predetermined segment of the each song based on the start position and end position of predetermined segment associated with the acquired name of the each song.
The method further includes sub-steps: the control module 31 controls the electronic device 2 to enter a normal playing mode in response to a second input operation received by the input unit 21. The playing module 33 plays the songs stored in the storage unit 22 in order when in the normal playing mode. The time determining module 35 determines if the song is being played for a first time. The name acquiring module 38 acquires the name of the played song when the song is being played for the first time. The segment determining module 36 determines a segment, which includes a number of playing points, each of which satisfies a predetermined condition, as the predetermined segment within the played song when the song is played for the first time. The defining module 37 defines a starting position of the determined segment as the starting position of the predetermined segment, and an ending position of the determined segment as the ending position of the predetermined segment. The table recording module 34 records the name of the played song, the starting position and ending position of the predetermined segment of the played song, and the relationships between the name of the played song and the starting position and ending position of the predetermined segment of the played song in the table.
Although various embodiments have been specifically described, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013101976011 | May 2013 | CN | national |