System and method for starting music player playing in shaking manner
Technical Field
The invention relates to a playing method of a music player of a mobile terminal, in particular to a system and a method for starting the music player to play by shaking.
Background
The music player is always an indispensable mode for people to entertain and relax, and in the prior art, the mobile terminal music player is difficult to start and is single in sequence. Meanwhile, the music player of the mobile terminal must be started in an unlocked state, so that the traditional mode ensures the safety, but limits the usability of the music player; the mode for starting the music player is complex, and when the music player is started, the music player needs to enter the application of the music player, and the music player can start playing only by clicking a start button; the playing sequence of songs of the music player is not flexible enough, and in the traditional mode, only the music in the music player can be ordered according to a fixed mode such as singers.
Disclosure of Invention
The invention aims to provide a system and a method for starting a music player to play by shaking. By arranging the shaking sensing triggering module, the system setting module and the like, the music player can be opened or closed by setting the direction and the times of shaking the mobile terminal under the condition that the mobile terminal is not required to be unlocked, so that the opening and closing mode of the music player is simpler and the music player is easier to use. In addition, the invention can sequence all music in the music player according to the frequency proximity degree according to the difference of the shaking frequency of the mobile terminal, so that the interaction between the mobile terminal music player and the user is easier, and the user experience is better.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a system for starting playing of a music player by shaking is characterized by comprising:
and the shaking sensing triggering module is arranged inside the mobile terminal.
The system setting module is arranged inside the mobile terminal and is connected with the shaking sensing triggering module.
And the music player is arranged in the mobile terminal and is connected with the system setting module.
A method for starting a music player to play by shaking is characterized by comprising the following steps:
s1, the system setting module sets the shaking mode of the mobile terminal when turning on/off the music player.
S2, shaking the mobile terminal, wherein the shaking sensing triggering module senses the shaking mode of the mobile terminal, processes the shaking information and sends the information to the system setting module; the system setting module controls the music player to turn on/off according to the setting mode of the step S1.
The method for starting playing of a music player by shaking is characterized in that the step S1 further includes the following steps:
s1.1, the system setting module sets the shaking direction of the mobile terminal when the music player is turned on/off.
S1.2, the system setting module sets the shaking frequency of the mobile terminal when the music player is turned on/off.
The method for starting playing of the music player by shaking is characterized in that the step S2 includes the following steps:
s2.1, the shaking sensing triggering module senses the shaking direction of the mobile terminal, processes the shaking direction into a shaking direction signal which can be recognized by the system setting module, and sends the shaking direction signal to the system setting module.
S2.2, the shaking sensing triggering module senses the shaking frequency of the mobile terminal in the shaking stage, processes the shaking frequency into a shaking frequency signal which can be recognized by the system setting module, and sends the shaking frequency signal to the system setting module.
S2.3, the system setting module receives the shaking direction signal and the shaking frequency signal sent by the shaking sensing triggering module; judging whether the shaking direction signal accords with the shaking direction for opening/closing the music player and judging whether the shaking frequency signal accords with the shaking frequency for opening/closing the music player; if yes, executing step S2.4; if the two do not conform, the flow ends.
And S2.4, controlling and changing the current state of the music player by the system setting module.
The method for starting the music player to play by shaking is characterized in that the step S2.3 further comprises the following steps:
s2.3.1, the system setting module receives the shake direction signal sent by the shake sensing trigger module; judging whether the shake direction signal is in accordance with the shake direction for turning on/off the music player, if so, executing the step S2.3.2; if the two do not conform, the flow ends.
S2.3.2, the system setting module receives the shake frequency signal sent by the shake sensing trigger module; judging whether the wobble frequency signal is in accordance with the wobble frequency for turning on/off the music player 30; if yes, executing the step S2.4; if the two do not conform, the flow ends.
The method for starting the music player to play by shaking is characterized in that the step S2.4 further comprises the following steps:
s2.4.1, when the music player is in the open state, the system setting module controls the music player to stop playing, and the process is ended.
S2.4.2, when the music player is in the off state, the system setup module controls the music player to turn on.
The method for starting playing of a music player by shaking is characterized in that after the step S2.4.2 is executed, the method further comprises the following steps:
s3, the system setting module sets a shaking mode of the mobile terminal when the playing sequence of the music player is changed.
S4, shaking the mobile terminal again, wherein the shaking sensing triggering module senses the shaking mode of the mobile terminal, processes the shaking information and sends the information to the system setting module; the system setting module controls the playing sequence of the music player according to the setting mode of the step S3.
The method for setting the playing of the music player is characterized in that the step S3 further includes the following steps:
s3.1, the system setting module sets the shaking direction of the mobile terminal for changing the playing sequence of the music player, and the shaking direction is different from the shaking direction of the mobile terminal for turning on/off the music player.
And S3.2, the system setting module records the shaking frequency of the mobile terminal for changing the playing sequence of the music player.
The method for starting playing of the music player by shaking is characterized in that the step S4 includes the following steps:
s4.1, the shaking sensing triggering module senses the shaking direction of the mobile terminal, processes the shaking direction into a shaking direction signal which can be recognized by the system setting module, and sends the shaking direction signal to the system setting module.
S4.2, the system setting module receives the shaking direction signal sent by the shaking sensing triggering module; judging whether the shaking direction signal is in accordance with the shaking direction for changing the playing sequence of the music player; if yes, executing step S4.3; if the two do not conform, the flow ends.
S4.3, the shaking sensing triggering module senses the shaking frequency of the mobile terminal in the shaking stage, processes the shaking frequency into a shaking frequency signal which can be recognized by the system setting module, and sends the shaking frequency signal to the system setting module.
And S4.4, the system setting module compares the shaking frequency signal with the rhythm frequencies of all songs stored in the music player and controls the music player to arrange the sequence of the songs into a sequence with the high-to-low similarity to the shaking frequency signal.
The method for starting the music player to play by shaking is characterized in that the step S4.4 further comprises the following steps:
s4.4.1, the music player described above extracts the tempo frequency of all songs stored therein.
S4.4.2, the system setting module compares the wobble frequency signal in step S4.3 with the rhythm frequencies of all songs, and controls the music player to sort all songs from high to low according to the similarity of the wobble frequency signal.
S4.4.3, the music player described above plays according to the ordering of all songs described above in step 4.4.2.
Compared with the prior art, the invention has the following advantages:
the invention ensures that the music player is not limited by the influence of whether the mobile terminal is in the unlocking state or not, and can change the state of the music player by setting the shaking direction and the shaking times of the mobile terminal, thereby ensuring the safety of the mobile terminal.
The invention makes the opening mode of the music player easier and more convenient. The invention can make the playing sequence of the music player more flexible and more intelligent, make the user select better and improve the experience effect of the user.
Drawings
Fig. 1 is a block diagram illustrating an overall structure of a system for starting playing of a music player by shaking according to the present invention.
FIG. 2 is a flowchart illustrating a method for starting a music player by shaking according to the present invention.
Detailed Description
The present invention will now be further described by way of the following detailed description of a preferred embodiment thereof, taken in conjunction with the accompanying drawings.
As shown in fig. 1, a system for starting playing of a music player by shaking comprises: a shake sensing trigger module 10 arranged inside the mobile terminal; a system setting module 20 arranged inside the mobile terminal and connected with the shake sensing trigger module 10; and a music player 30 disposed inside the mobile terminal and connected to the system setting module 20.
As shown in fig. 2, a method for starting a music player to play by shaking, the method comprises the following steps:
s1, the system setting module 20 sets a shaking manner of the mobile terminal when turning on/off the music player 30. The method also comprises the following steps:
s1.1, the system setting module 20 sets a shaking direction of the mobile terminal when the music player 30 is turned on/off.
S1.2, the system setting module 20 sets a shaking frequency of the mobile terminal when turning on/off the music player 30.
In this embodiment, the mobile terminal can be set to shake laterally to turn on/off the music player 30, and the shake direction can also be set according to the user's requirement. The shaking frequency of the mobile terminal is set to a shaking frequency of turning on/off the music player 30 according to the user's habit.
S2, shaking the mobile terminal, wherein the shaking sensing triggering module 10 senses the shaking mode of the mobile terminal, processes the shaking information and sends the processed information to the system setting module 20; the system setting module 20 controls the on/off of the music player 30 according to the setting manner of step S1. The method comprises the following steps:
s2.1, the shaking sensing triggering module 10 senses the shaking direction of the mobile terminal, processes the shaking direction into a shaking direction signal which can be recognized by the system setting module 20, and sends the shaking direction signal to the system setting module 20.
S2.2, the shaking sensing triggering module 10 senses the shaking frequency of the mobile terminal in the shaking stage, processes the shaking frequency into a shaking frequency signal which can be recognized by the system setting module 20, and sends the shaking frequency signal to the system setting module 20.
S2.3, the system setting module 20 receives the shaking direction signal and the shaking frequency signal sent by the shaking induction triggering module 10; judging whether the shaking direction signal conforms to the shaking direction and the shaking frequency for turning on/off the music player 30; if yes, executing step S2.4; if the two do not conform, the flow ends.
The step S2.3 further includes the following steps:
s2.3.1, the system setting module 20 receives the shake direction signal sent by the shake sensing trigger module 10; judging whether the shake direction signal is in accordance with the shake direction for turning on/off the music player 30, if so, executing step S2.3.2; if the two do not conform, the flow ends.
In this embodiment, when the system setting module 20 receives that the shake direction signal sent by the shake sensing triggering module 10 is a horizontal shake, the shake direction of the music player 30 is turned on/off, and step S2.3.2 is executed. When the system setting module 20 receives the shake direction signal sent by the shake sensing triggering module 10 as a longitudinal shake or other shake direction, the shake direction does not conform to the shake direction for turning on/off the music player 30, and the process is ended.
S2.3.2, the system setting module 20 receives the shake frequency signal sent by the shake sensing trigger module 10; judging whether the wobble frequency signal is in accordance with the wobble frequency for turning on/off the music player 30; if yes, executing step S2.4; if the two do not conform, the flow ends.
S2.4, the system setup module 20 controls and changes the state of the current music player 30.
This step S2.4 also comprises the following steps:
s2.4.1, when the music player 30 is in the open state, the system setting module 20 controls the music player 30 to stop playing, and the process ends.
S2.4.2, the system setup module 20 controls the music player 30 to turn on when the music player 30 is in the off state.
After the step S2.4.2, the method further comprises the following steps:
s3, the system setting module 20 sets a shaking manner of the mobile terminal when changing the playing sequence of the music player 30. The method also comprises the following steps:
s3.1, the system setting module 20 sets a shaking direction of the mobile terminal when the playing sequence of the music player 30 is changed, and ensures a different shaking direction from the mobile terminal that turns on/off the music player 30.
In this embodiment, after the lateral shaking is set to the shaking direction for turning on/off the music player 30, the lateral shaking cannot be used as the shaking direction for setting the playing sequence of the music player 30; the vertical shaking may be set as a shaking direction for changing the playing order of the music player 30.
S3.2, the system setting module 20 records the shaking frequency of the mobile terminal for changing the playing sequence of the music player 30.
S4, shaking the mobile terminal again, wherein the shaking sensing triggering module 10 senses the shaking mode of the mobile terminal, processes the shaking information and sends the processed information to the system setting module 20; the system setting module 20 controls the playing sequence of the music player 30 according to the setting manner of step S2. The step S4 includes the following steps:
s4.1, the shaking sensing triggering module 10 senses the shaking direction of the mobile terminal, processes the shaking direction into a shaking direction signal which can be recognized by the system setting module 20, and sends the shaking direction signal to the system setting module 20.
When the music player 30 is in the open state, the mobile terminal is shaken again, and when the shaking direction is the shaking direction which changes the playing sequence of the music player 30, such as vertical shaking, the music player 30 reorders the songs stored therein according to the shaking frequency of the shaking.
S4.2, the system setting module 20 receives a shaking direction signal sent by the shaking sensing triggering module 10; judging whether the shaking direction signal is in accordance with the shaking direction for changing the playing sequence of the music player 30; if yes, executing step S4.3; if the two do not conform, the flow ends.
In this embodiment, when the system setting module 20 receives that the shake direction signal sent by the shake sensing triggering module 10 is a longitudinal shake, the shake direction is in accordance with the change of the playing sequence of the music player 30, and step S4.3 is executed.
S4.3, the shaking sensing triggering module 10 senses the shaking frequency of the mobile terminal in the shaking stage, processes the shaking frequency into a shaking frequency signal which can be recognized by the system setting module 20, and sends the shaking frequency signal to the system setting module 20.
S4.4, the system setting module 20 compares the wobble frequency signal with the rhythm frequencies of all songs stored in the music player 30, and controls the music player 30 to arrange the sequence of the songs in a sequence from high to low in similarity with the wobble frequency signal.
The step S4.4 further comprises the following steps:
s4.4.1, the music player 30 extracts the tempo frequency of all songs stored therein.
S4.4.2, the system setting module 20 compares the wobble frequency signal in step S4.3 with the rhythm frequencies of all songs, and controls the music player 30 to sort all songs from high to low according to the similarity with the wobble frequency signal.
The system setting module 20 processes the wobble frequency signal of the mobile terminal, compares the processed wobble frequency signal with the rhythm frequencies of all songs in the music player 30, and controls the music player 30 to sequence all songs according to the wobble frequency of the mobile terminal. Arranging songs with rhythm frequencies most similar to or identical to the processed shaking frequency signals of the mobile terminal to the top; by analogy, all songs in the music player 30 are reordered according to the similarity of the processed shaking frequency signal of the mobile terminal.
S4.4.3, the music player 30 plays according to the all songs ordering of step 4.4.2.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.