Embodiments of the present disclosure relate to the field of communication technology, and in particular, to a vibration method, a mobile terminal, and a computer-readable storage medium.
With the improvement of living standards, people are having more personalized requirement on ringtones of mobile phones. Ringtones are expected to be pleasant to ears and provide different tactile feelings. A mobile phone can vibrate while playing a ringtone, which somewhat meets people's needs for tactile feelings.
However, the inventor of the present disclosure finds that in the prior art, all mobile phones vibrate in the same boring manner, and cannot be distinguished according to vibrations thereof. The vibration lacks the rhythm of music, and cannot meet users' personalized requirements.
To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following further describes embodiments of the present disclosure in detail with reference to the accompanying drawings. However, those of ordinary skill in the art may understand that, in the various embodiments of the present disclosure, numerous technical details are set forth to provide the reader with a better understanding of the present disclosure. However, the technical solutions claimed in the present disclosure can further be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present disclosure relates to a vibration method. The core of this embodiment is: acquiring, according to a preset ringtone, a music parameter of the ringtone; searching for a vibration signal corresponding to the music parameter according to the music parameter of the ringtone; generating a driving signal matching the ringtone according to the found vibration signal, and the driving signal is used to drive a motor inside the mobile terminal to produce a vibration matching the ringtone; and when the ringtone is played, driving the motor to vibrate according to the generated driving signal. Details of the motor driving method of this embodiment will be specifically described below. The following content is merely implementation details provided for convenience of understanding, but not necessary for implementing this solution.
The vibration method in this embodiment is applied to a mobile terminal, and the mobile terminal is pre-stored with a corresponding relation between music parameters and vibration signals. Different vibration signals correspond to different music parameters and have different vibration effects, and different vibrations can be produced by combining different vibration signals. A vibration signal corresponding to a music parameter can produce a personalized musical vibration.
Step 101: Acquire, according to a preset ringtone, a music parameter of the ringtone.
Specifically, the preset ringtone may be a music set by a user according to preferences. The ringtone may be a incoming call ringtone, a incoming message ringtone, an alarm clock ringtone and other ringtones commonly used to remind users. A mobile terminal acquires, according to the preset ringtone, the music parameter of the ringtone. The mobile terminal may be a smart device such as a mobile phone or a tablet computer. In this embodiment, the mobile phone is used as an example, but in practical applications, the present disclosure is not limited thereto. The music parameter may be a parameter representing musical characteristics, for example, a music beat, a music speed, a music spectrum, or a music amplitude. For example, a mobile phone may query the network side for a preset ringtone, and acquire a music parameter related to the preset ringtone.
Step 102: Search for a vibration signal corresponding to the music parameter according to the music parameter of the ringtone.
Specifically, the vibration signal may have a strength parameter and a signal interval, which can be used to represent the strength of the vibration and the length of the interval at which the vibration is generated each time. The strength parameter may be a vibration time length and/or a vibration amplitude. When the vibration amplitude cannot be increased, increasing the vibration time length of the vibration signal makes the user have a feeling that as if the strength of the signal is increased. For ringtone vibration, as the ringtone notification requires a high strength, the vibration signal can be played at a maximum amplitude, and only the time length of the vibration signal is adjusted. According to the music beat and the strength of the notes in the music parameters, the vibration time length corresponding to the ringtone is acquired. Because the music beat is used to represent a combination rule of strong and weak beats, different signal lengths may be acquired through different music beats. For example, the music beat is 4/4 beat, 4/4 beat counts a quarter note as one beat, each bar includes four beats and may include four quarter notes, namely, strong, weak, less strong, weak. In this case, different signal lengths can be acquired based on the strength of each beat. The strong beat has the largest signal length, the less strong beat has the second largest signal length, and the weak beat has the smallest signal length or has a signal length of 0. According to the music speed, the signal interval corresponding to the ringtone is acquired. The music speed is used to measure the rhythm of music, that is, beats per minute (BPM). A larger BPM indicates a faster rhythm. For example, a faster rhythm indicates a shorter signal interval and a higher vibration frequency; a slower rhythm indicates a longer signal interval and a lower vibration frequency.
In addition, the acquiring strength parameters of the vibration signal corresponding to the ringtone according to the music beat may be: acquiring sound signal strengths of the ringtone at different moments according to the music beat; and acquiring the vibration time length and/or the vibration amplitude of the vibration signal according to the sound signal strengths. The acquiring a signal interval of the vibration signal corresponding to the ringtone according to the music speed is specifically: acquiring signal intervals corresponding to the ringtone at different moments according to the music speed. The signal interval is equal to the interval of each beat minus the length of the signal. The music speed may be expressed by beats per minute (BPM). A larger BPM indicates a higher music speed and a shorter signal interval. A smaller BPM indicates a lower music speed and a longer signal interval.
Step 103: Generate a driving signal matching the ringtone according to the found vibration signal.
Specifically, according to a preferred time length range of each vibration, a preset vibration signal having a determined length may be identified and found. The vibration matching the ringtone may be produced after different vibration signals are combined at a certain time interval, and matches the beats of the ringtone during playing, thereby achieving a vibration matching the music ringtone. If the speed of the same music ringtone changes, the combination of signals may change accordingly. For example, signal intervals determined according to different music speeds may influence the length and interval of the driving signal.
In a practical application, the driving signal matching the ringtone may also be generated by the following method: the mobile terminal may store a first corresponding relation between preset music parameters and expected vibrations, and different music parameters directly correspond to different expected vibrations, so that the mobile terminal may search, in the pre-stored first corresponding relation according to the music parameter of the preset ringtone, for an expected vibration matching the ringtone. The mobile terminal may also store a second corresponding relation between preset expected vibrations and driving signals, and different expected vibrations directly correspond to different driving signals. The driving signal matching the ringtone can be acquired more easily and directly, so that when the motor vibrates according to the generated driving signal, a vibration matching the ringtone can be produced more easily, thereby improving user experience.
Step 104: When the ringtone is played, drive the motor to vibrate according to the generated driving signal.
Specifically, the motor disposed in the mobile terminal is driven by a driving signal. A waveform of the driving signal directly determines the vibration effect of the motor, and different driving signals produce different vibration effects. When the ringtone is played, the motor may be driven to vibrate according to the generated driving signal, so that the motor may produce the vibration effect matching the ringtone when vibrating. For example, when a mobile phone is playing a ringtone, the motor in the mobile phone vibrates rhythmically along with the rhythm of the ringtone.
It should be noted that if the incoming call ringtone is changed, the mobile terminal may automatically update the driving signal after detecting the change, so that when the mobile terminal plays the incoming call ringtone, the motor can be driven to vibrate in time according to the updated driving signal, improving user experience.
It should be noted that if the mobile phone is set to a vibration mode and receives an incoming call, no music is played, but the motor is driven to vibrate according to the driving signal, so as to produce a rhythmic, musical vibration, so that mobile phones can be distinguished according to vibrations.
Compared with the prior art, in this embodiment of the present disclosure, according to a preset ringtone, a music parameter of the ringtone is acquired. The music parameter of the ringtone helps reflect the music characteristics of the ringtone. Because the ringtone is preset, users' needs can be met. When the ringtone is played, the vibration generated by the motor in the mobile terminal matches the preset ringtone so that the vibration perceived by the user is no longer boring, but is as musical as the ringtone, thereby improving user experience and meeting users' personalized requirements. In addition, because motors in mobile terminals no longer vibrate in the same manner, different users can be distinguished according to the vibrations that match the ringtones.
A second embodiment of the present disclosure relates to a vibration method. The second embodiment is an improvement based on the first embodiment. The improvement lies in that in this embodiment of the present disclosure, the generating a driving signal matching the ringtone according to the found vibration signal is specifically: combining the found N vibration signals to generate the driving signal matching the ringtone.
Step 201: Divide the preset ringtone into N segments, and respectively obtain music parameters corresponding to the N segments of the ringtone.
For example, if the preset ringtone is 1 minute long, the preset ringtone may be divided into 10 segments each having a length of 6 seconds. Music parameters corresponding to the segments of the ringtone are acquired. The music parameters of the segments of the ringtone may be the same or different. In this embodiment, the division of the preset ringtone into 10 segments is merely used as an example, but in practical applications, the present disclosure is not limited thereto.
Step 202: Respectively search for N vibration signals corresponding to the music parameters of the N segment of the ringtone according to the music parameters of the N segments of the ringtone.
Specifically, because the corresponding relation between the music parameters and the vibration signal is pre-stored in the mobile terminal, the vibration signal corresponding to the music parameter of each segment of the ringtone can be found directly according to the corresponding relation.
Step 203: Combine the found N vibration signals to generate the driving signal matching the ringtone.
Specifically, the vibration signal may be any signal waveform such as a sine wave, and the different vibration signals may be waveforms having different amplitudes and frequencies. The found N vibration signals may be combined according to an order in which the preset ringtone is segmented. For example, the preset ringtone is divided into two segments, a first segment corresponding to a first vibration signal and a second segment corresponding to a second vibration signal, the vibration signals may be combined in such a manner that the first vibration signal is prior to the second vibration signal. The generated driving signal matching the ringtone may be a combination of the first vibration signal and the second vibration signal.
Step 204: When the ringtone is played, drive the motor to vibrate according to the generated driving signal.
Step 204 is basically the same as step 104 in the first embodiment, and to avoid repetition, the details will not be described herein again.
Compared with the prior art, in this embodiment, the ringtone is divided into segments and vibrations signals corresponding to the segments of the ringtone are combined, so that the driving signal matching the ringtone can be generated more simply and scientifically, and the vibration matching each segment of the ringtone can be produced, thereby improving the matching degree between the entire ringtone and vibrations, and further enhancing the rhythm of vibrations.
A third embodiment of the present disclosure relates to a vibration method. This embodiment is an improvement based on the second embodiment. The improvement lies in that in this embodiment, the combining the found N vibration signals to generate the driving signal matching the ringtone specifically includes: acquiring play time points of the N vibration signals; and combining the found N vibration signals according to the play time points of the N vibration signals, to generate the driving signal matching the ringtone.
Step 301: Divide the preset ringtone into N segments, and respectively obtain music parameters corresponding to the N segments of the ringtone.
Step 302: Respectively search for N vibration signals corresponding to the music parameters of the N segment of the ringtone according to the music parameters of the N segments of the ringtone.
Step 303: Acquire play time points of the N vibration signals.
Specifically, the play time points of the vibration signals may be acquired based on the music beat and the music speed. For example, in a 4/4 beat music, the 4/4 beat rhythm type may be used. The 4/4 beat rhythm type may be set to “1-2,2”, where “1--” represents a long vibration signal, with its vibration time plus the interval being equal to two beats; “2” represents a short vibration signal, with its vibration time plus the interval being equal to one beat. “2,2” means that the short vibration signal is repeated once. The three signals add up to four beats, equal to the quantity of beats in one bar of music. When the music speed is 100 bpm, one beat is 0.6 s. If the vibration time length of the signal “1--” is 20 ms, the interval is 0.6-0.02+0.6=1.18 s. Similarly, if the music speed changes to 150 bpm, one beat is 0.4 s. If the vibration of the signal “1--” remains unchanged, the interval should be adjusted to 0.4−0.02+0.4=0.78 s. It should be noted that the beat which remains unchanged may also be applied to other vibrations having the same beat but different rhythmic types. Since different vibration signals can represent different vibration time lengths and intervals, the play time points of the adjusted basic vibration signal may be acquired according to vibration time lengths and intervals of different signals acquired. For example, a first vibration signal corresponds to a vibration time length of 0.02 s and an interval length of 1.18 s, indicating that after vibrating 0.02 s, the motor stops vibrating, and 1.18 s after the motor stops vibrating, the motor starts to vibrate according to a second vibration signal. The second vibration signal corresponds to a vibration time length of 0.02 s and an interval length of 0.78 s. In this case, if the play time point of the first vibration signal is 0.1 s, the play time point of the second vibration signal is 0.1+0.02+1.18=1.3 s. By analogy, the play time points of the different signals can be obtained.
Step 304: Combine the found N vibration signals according to the play time points of the N vibration signals to generate the driving signal matching the ringtone.
Specifically, the play time points of the N vibration signals represent an order in which the N vibration signals are to be played. The found N vibration signals are combined according to the order in which the N vibration signals are to be played, to generate the driving signal matching the ringtone. For example, in step 303, if the play time point of the first vibration signal is 0.1 s and the play time point of the second vibration signal is 1.3 s, the generated driving signal may produce no vibration during the first 0.1 s, the first vibration signal is played at 0.1 s, and the second vibration signal is play at 1.3 s.
Step 305: When the ringtone is played, drive the motor to vibrate according to the generated driving signal.
Step 305 is basically the same as step 204 in the second embodiment, and to avoid repetition, the details will not be described herein again.
Compared with the prior art, in this embodiment of the present disclosure, the found N vibration signals are combined according to the play time points of the N vibration signals to generate the driving signal matching the ringtone, so that the driving signal matching the ringtone can be generated more simply and scientifically. In this way, when the motor vibrates according to the generated driving signal, a vibration matching the ringtone can be produced more easily.
A fourth embodiment of the present disclosure relates to a terminal device, as shown in
The memory 402 and the processor 401 are connected by a bus. The bus may include any quantity of interconnected buses and bridges. The bus connects various circuits of the one or more processors 401 and the memory 402. The bus may also connect various other circuits such as a peripheral device, a voltage regulator, and a power management circuit. These are known in the art, and the details are not described herein. A bus interface provides an interface between the bus and a transceiver. The transceiver may be one element or a plurality of elements such as a plurality of receivers and transmitters, and serves as a unit configured to communicate with various other devices over a transmission medium. Data processed by the processor 401 is transmitted over a wireless medium by using an antenna. The antenna further receives data and transmits the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing, and may further provide various functions including timing, peripheral interface, voltage adjustment, power supply management, and other control functions. The memory 402 may be configured to store data used by the processor 401 executing an operation.
A fifth embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program. The foregoing method embodiments may be implemented when the computer program is executed by a processor.
That is, those skilled in the art may understand that all or some of the steps in the methods according to the foregoing embodiments may be implemented by a program instructing relevant hardware. The program is stored in a storage medium and includes instructions used to enable a device (which may be a single-chip microcomputer, a chip, or the like) or a processor to implement all or some of the steps in the methods according to the foregoing embodiments of the present disclosure. The storage medium includes any medium that can store program code, such as a USB flash memory drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.
Those of ordinary skill in the art may understand that, the embodiments described above are specific embodiments for implementing the present disclosure, and in actual applications, various changes may be made the forms and details without departing from the spirit and scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201810901296.2 | Aug 2018 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
8321510 | Queru | Nov 2012 | B1 |
20100169493 | Yamakawa | Jul 2010 | A1 |
20130262118 | Saeki | Oct 2013 | A1 |
20160303344 | Smudde | Oct 2016 | A1 |
20180137770 | Whisenant | May 2018 | A1 |
Number | Date | Country |
---|---|---|
105245704 | Jan 2016 | CN |
2001320447 | Nov 2001 | JP |
2002016672 | Jan 2002 | JP |
2002252676 | Sep 2002 | JP |
Entry |
---|
Merriam-Webster definition of sound (Year: 2020). |
Notice of Reasons for Refusal dated Nov. 12, 2019 by JPO in related Japanese Patent Application No. 2019-133215 (9 Pages). |
1st Office Action dated Mar. 19, 2020 by SIPO in related Chinese Patent Application No. 201810901296.2 (15 Pages). |
Number | Date | Country | |
---|---|---|---|
20200053227 A1 | Feb 2020 | US |