CN108319444B - Music drumbeat-based control terminal vibration method, storage device and computer device - Google Patents

Music drumbeat-based control terminal vibration method, storage device and computer device Download PDF

Info

Publication number
CN108319444B
CN108319444B CN201810088694.7A CN201810088694A CN108319444B CN 108319444 B CN108319444 B CN 108319444B CN 201810088694 A CN201810088694 A CN 201810088694A CN 108319444 B CN108319444 B CN 108319444B
Authority
CN
China
Prior art keywords
drum
vibration
points
music
vibration signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810088694.7A
Other languages
Chinese (zh)
Other versions
CN108319444A (en
Inventor
袁少龙
周宇涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201810088694.7A priority Critical patent/CN108319444B/en
Publication of CN108319444A publication Critical patent/CN108319444A/en
Application granted granted Critical
Publication of CN108319444B publication Critical patent/CN108319444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object or an image, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders, dials

Abstract

The invention provides a method for controlling terminal vibration based on music drumbeats, a storage device and a computer device. The method comprises the following steps: acquiring drumbeats of music played by the terminal; acquiring the characteristics of the drum points; generating a vibration signal matched with the features according to the features of the drum points; and controlling a vibrator of the terminal to generate vibration according to the vibration signal. Therefore, the method includes the steps that the drumbeat of the terminal playing music is obtained, the vibration signal matched with the characteristic is generated according to the drumbeat characteristic in the music, and the vibrator of the terminal is further controlled to generate vibration according to the vibration signal, so that when a user uses the music creative short video social software to record videos, a vibration effect is generated according to the drumbeat of the music playing, the experience satisfaction degree of the user is improved, and the market competitiveness of the music creative short video social software is further improved.

Description

Music drumbeat-based control terminal vibration method, storage device and computer device
Technical Field
The invention relates to the technical field of internet, in particular to a music-based drumbeat control terminal vibration method, storage equipment and computer equipment.
Background
With the rapid development of the internet technology, music creative short videos are produced. In the development and operation of the music creative short video social software, selectable music options are added to a user recorded video. In order to improve the user experience, a video special effect group suitable for the music can be recommended to the user according to the music type in the video so as to enhance the auditory and visual appeal of the video.
However, enhancing the music creative short video social software creativity only from an auditory and visual aspect is not enough to improve the experience satisfaction of the user.
Disclosure of Invention
The invention aims to provide a method for controlling terminal vibration based on music drumbeats, a storage device and a computer device, so that the user experience is enhanced in touch sense, the satisfaction degree of a user is improved, and the competitiveness of social software is improved.
The invention provides the following technical scheme:
a vibration method of a control terminal based on music drumbeats comprises the following steps: acquiring drumbeats of music played by the terminal; acquiring the characteristics of the drum points; generating a vibration signal matched with the features according to the features of the drum points; and controlling a vibrator of the terminal to generate vibration according to the vibration signal.
In one embodiment, the features of the drum points include location features of the drum points in the music; the generating of the vibration signal matched with the features according to the features of the drum points comprises: and generating a vibration signal matched with the position characteristic according to the position characteristic of the drum point in the music.
In one embodiment, the generating a vibration signal matched with the position feature according to the position feature of the drum point in the music comprises: determining a location of the drum point in the music; generating a shock signal that produces a shock a preset length of time before the location.
In one embodiment, the features of the drum points include strong drum points and weak drum points; the generating of the vibration signal matched with the features according to the features of the drum points comprises: and generating a vibration signal matched with the strong drum point and the weak drum point according to the strong drum point and the weak drum point.
In one embodiment, before generating the vibration signal matched with the strong drum point and the weak drum point according to the strong drum point and the weak drum point, the method further includes: acquiring a gender attribute and an age attribute of a user; generating a vibration signal matched with the strong drum point and the weak drum point according to the strong drum point and the weak drum point, wherein the vibration signal comprises: and generating a vibration signal matched with the strong drum point, the weak drum point and the gender attribute and the age attribute of the user according to the strong drum point, the weak drum point and the gender attribute and the age attribute of the user.
In one embodiment, before generating the vibration signal matching the feature according to the feature of the drum point, the method further includes: obtaining a special effect in the played video determined according to the drum points; the generating of the vibration signal matched with the features according to the features of the drum points comprises: and generating a vibration signal matched with the characteristics of the drum points and the special effect determined by the drum points according to the characteristics of the drum points and the special effect determined by the drum points.
In one embodiment, the obtaining the special effect in the played video determined according to the drum point includes: acquiring the grade of the special effect in the played video determined according to the drum points; the generating of the vibration signal matched with the features of the drum points and the special effects determined by the drum points according to the features of the drum points and the special effects determined by the drum points comprises: obtaining a vibration level corresponding to the level of the special effect; and generating a vibration signal matched with the characteristics of the drum points and the vibration level according to the characteristics of the drum points and the vibration level.
In one embodiment, the features of the drum points include strong drum points and weak drum points; before generating the vibration signal matched with the features according to the features of the drum points, the method further comprises the following steps: acquiring the electric quantity of the terminal, and determining the electric quantity range to which the electric quantity belongs; the generating of the vibration signal matched with the features according to the features of the drum points comprises: when the electric quantity is determined to belong to a first electric quantity range, weak drum points are removed, and a vibration signal matched with the strong drum points is generated; when the electric quantity is determined to belong to a second electric quantity range, weak drum points are removed, strong drum points are obtained in an interval point taking mode, and a vibration signal matched with the obtained strong drum points is generated; wherein the first electric quantity range is larger than the second electric quantity range.
A storage device having a plurality of instructions stored thereon; the instructions are adapted to be loaded and executed by a processor to: acquiring drumbeats of music played by the terminal; detecting a characteristic of the drum points; generating a vibration signal matched with the features according to the features of the drum points; and controlling the terminal vibrator to generate vibration according to the vibration signal.
A computer apparatus, comprising: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors; the one or more applications are configured to execute the music drumbeat-based control terminal vibration method according to any of the above embodiments.
Compared with the prior art, the scheme of the invention has the following advantages:
the method for controlling the vibration of the terminal based on the music drumbeats comprises the steps of obtaining drumbeats of music played by the terminal, generating vibration signals matched with the characteristics according to the characteristics of the drumbeats in the music, and further controlling a vibrator of the terminal to generate vibration according to the vibration signals, so that when a user uses music creative short video social software to record videos, a vibration effect is generated according to the drumbeats of the music played, the experience satisfaction degree of the user is improved, and the market competitiveness of the music creative short video social software is further improved.
Further, the method for controlling the terminal to vibrate based on the music drumhead determines the position of the drumhead in the music, further generates a vibration signal which generates vibration at a preset time length before the music played by the terminal reaches the position of the drumhead, and controls a vibrator of the terminal to generate vibration according to the vibration signal. Therefore, the problem of time matching between the terminal generating the vibration effect according to the vibration signal and the terminal playing music reaching the drumbeat can be solved, and the experience satisfaction of the user is improved.
Meanwhile, in the music drumbeat control terminal vibration method, the electric quantity of the terminal is obtained and the electric quantity range to which the electric quantity belongs is determined. And when the electric quantity of the terminal is determined to belong to the first electric quantity range, eliminating weak drum points and generating vibration signals matched with the strong drum points. And when the electric quantity of the terminal is determined to belong to the second electric quantity range, eliminating weak drum points, acquiring strong drum points in an interval point-taking mode, and generating a vibration signal matched with the acquired strong drum points. Wherein the first electric quantity range is larger than the second electric quantity range. That is, when the electric quantity of the terminal is low, the terminal only generates a vibration signal according to a strong drumbeat point in the music, so that the terminal is controlled to generate vibration when the music is played to the strong drumbeat point. When the electric quantity of the terminal is lower, the vibration effect is generated only according to the preset number of strong drum points in the music. Therefore, a vibration effect can be generated according to the state of the terminal power, thereby improving the satisfaction of the user.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of interaction between a server and a client according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for controlling a vibration of a terminal based on a music drumbeat according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for controlling a vibration of a terminal based on a music drumbeat according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for controlling a vibration of a terminal based on a music drumbeat according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for controlling a vibration of a terminal based on a music drumbeat according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for controlling a vibration of a terminal based on a music drumbeat according to another embodiment of the present invention;
FIG. 7 is a diagram of an embodiment of a computer device structure according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It will be appreciated by those skilled in the art that the terms "application," "application program," "application software," and the like, as used herein, are intended to refer to a computer software product electronically-adapted to be electronically-constructed, from a collection of computer instructions and associated data resources, in accordance with the principles of the present invention. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
The invention provides a method for controlling terminal vibration based on music drumbeats, which is applied to an application environment shown in figure 1.
As shown in fig. 1, the server 100 and the user terminal 300 are located in the same network 200 environment, and the server 100 and the user terminal 300 perform data information interaction through the network 200. The number of servers 100 and user terminals 300 is not limited, and is shown in fig. 1 for illustration only. The user terminal 300 is installed with a client, which is third-party application software, such as music creative short video social software. A user may perform information interaction with a corresponding server 100 through a client APP in a user terminal 300. The client corresponds to a Server (Server) end and follows the same set of data protocol together, so that the Server end and the client can mutually analyze the data of the other side, and the creative short video recording and sharing service is provided for users.
The server 100 may be, but is not limited to, a web server, a management server, an application server, a database server, a cloud server, and so on. The user terminal 300 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. The operating system of the user terminal 300 may be, but is not limited to, an Android system, an ios (internet operating system) system, a Windows phone system, a Windows system, and the like.
The invention provides a method for controlling terminal vibration based on music drumbeats. As shown in fig. 1, the music drumbeat control terminal vibration method includes the following steps:
s100, acquiring drumbeats of music played by the terminal.
In this embodiment, the server acquires music played by the terminal. Specifically, the server acquires music in a video played by the terminal. The terminal can be a mobile network device such as a smart phone and a personal computer. The music played by the terminal can be music uploaded by the user or music provided by the server resource library for the user. The music can be various kinds of music with different rhythms and different types. The server acquires the drumbeats of music played by the user through clicking. The drumheads of music may include strong and weak drumheads.
And S200, acquiring the features of the drum points.
Further, after acquiring the drumbeat of the music played by the terminal, the server detects the characteristics of the drumbeat in the music. The features of the drum points comprise position features of the drum points in the music, and strong drum points and weak drum points. Additionally, the drumhead may be characterized as a snare drum, and other drumhead types.
And S300, generating a vibration signal matched with the features according to the features of the drum points.
In the present embodiment, after detecting the features of the drumhead in the music, the server generates a vibration signal matching the drumhead features based on the detected drumhead features.
In one embodiment, the drum point features include location features of the drum point in the music. Step S300 includes: and generating a vibration signal matched with the position characteristic according to the position characteristic of the drum point in the music. Specifically, the server acquires the drumheads in the music and detects the position of each drumhead in the music. Further, the generated vibration signal is: a vibration signal of vibration is generated at the position of the music drum point.
In one embodiment, the generating a vibration signal matching the position feature according to the position feature of the drumbeat in the music includes: determining a location of the drum point in the music; generating a shock signal that produces a shock a preset length of time before the location. Wherein, the preset time length can be 0.1 second or 0.2 second, etc. That is, the generated vibration signal is: the control terminal generates a vibration signal of vibration at a preset time before the music drum point is generated. Compared with the time of generating the drumbeat when the terminal plays music, the vibration effect generated by the vibrator of the terminal is slow. That is, if the vibrator is controlled to generate vibration at the moment when the music drum point occurs, the user hears the music drum point first and then senses the vibration of the terminal, and the user experience is poor. The server generates a vibration signal for generating vibration at the preset time before the position time of the drumhead in the music is detected (according to the time difference from the vibration generated by triggering the vibrator to the vibration effect sensed by the user), so that the vibration effect generated by the terminal vibrator is controlled to be at the same time as the music drumhead when the vibration signal controls the vibration of the terminal vibrator, and the satisfaction degree of user experience is improved.
In one embodiment, as shown in FIG. 3, the features of the drum points include strong drum points and weak drum points. Step S300 includes the steps of:
s301, generating a vibration signal matched with the strong drum point and the weak drum point according to the strong drum point and the weak drum point.
If the acquired drum point is characterized as a strong drum point, generating a high-strength vibration signal matched with the strong drum point; and if the acquired drum point is characterized by a weak drum point, generating a low-intensity vibration signal matched with the weak drum point. Specifically, when the server detects a strong drumhead in the music, the generated vibration signal controls the terminal to generate a relatively strong vibration feeling at the position of the strong drumhead of the music. When the server detects weak drumheads in music, the generated vibration signal controls the terminal to generate relatively weak vibration at the positions of the weak drumheads in the music, so that the terminal is controlled to generate different vibration effects according to the types of the drumheads in the music, and user experience is further enhanced.
In an embodiment, as shown in fig. 4, before step S300, step S210 is further included: a gender attribute and an age attribute of the user are obtained. Step S300 includes step S303: and generating a vibration signal matched with the strong drum point, the weak drum point and the gender attribute and the age attribute of the user according to the strong drum point, the weak drum point and the gender attribute and the age attribute of the user. In a specific embodiment, when the drum point is characterized by a strong drum point, if the gender attribute of the user is male or the age attribute is greater than a preset value, a primary high-intensity vibration signal matched with the strong drum point is generated; otherwise, generating a secondary high-strength vibration signal matched with the strong drum point; wherein the secondary high strength is greater than the primary high strength; when the drum point is characterized by a weak drum point, if the gender attribute is male or the age attribute is greater than a preset value, generating a primary low-intensity vibration signal matched with the weak drum point; otherwise, generating a secondary low-intensity vibration signal matched with the weak drum point; wherein the secondary low strength is greater than the primary low strength.
Specifically, for example, if the sex of the user acquired by the server is a female and the user is under 18 years old, according to the requirement of the under 18 years old female on the vibration effect, the generated vibration signal controls the terminal to generate strong vibration meeting the requirement of the under 18 years old female on the vibration effect at the strong drumhead of the music, and controls the terminal to generate weak vibration meeting the requirement of the under 18 years old female on the vibration effect at the weak drumhead of the music. If the sex of the user acquired by the server is male and the user is between 25 and 30 years old, according to the requirement of the 25 to 30-year-old male on the vibration effect, the generated vibration signal controls the terminal to generate strong vibration meeting the requirement of the 25 to 30-year-old male on the vibration effect at the strong drumhead of the music, and controls the terminal to generate weak vibration meeting the requirement of the 25 to 30-year-old male on the vibration effect at the weak drumhead of the music.
In an embodiment, as shown in fig. 5, before step S300, the method further includes the steps of:
and S230, obtaining the special effect in the played video determined according to the drum points.
Step S300 includes the steps of:
s305, generating a vibration signal matched with the features of the drum points and the special effects determined by the drum points according to the features of the drum points and the special effects determined by the drum points.
In this embodiment, the server obtains a special effect in the played video determined according to the music drum point. Further, the server generates a matched vibration signal according to the drumbeat in the music and the special effect determined by the music drumbeat. For example, a video special effect determined by a certain drumhead in music is relatively strong in visual impact sense, a matched vibration signal is generated, and the control terminal generates a strong vibration sense at the time position of the drumhead. The video special effect determined by a certain drum point in music is soft in visual impact sense, a matched vibration signal is generated, and the control terminal generates relatively weak vibration sense at the time position of the drum point.
Further, in an embodiment, as shown in fig. 6, the step S230 includes the steps of:
and S231, acquiring the special effect grade in the played video determined according to the drum points.
Step S305 includes the steps of:
s3051, obtaining a vibration level corresponding to the level of the special effect.
S3053, generating a vibration signal matched with the characteristics of the drum point and the vibration level according to the characteristics of the drum point and the vibration level.
The special effect corresponds to three vibration levels which are sequentially strengthened according to the change degree, and the vibration levels are respectively zero level, first level and second level;
generating a vibration signal matched with the characteristics of the drum points and the vibration level according to the characteristics of the drum points and the vibration level; the method comprises the following steps:
when the drum point is characterized as a strong drum point, if the vibration level is zero level, no vibration signal is generated; if the vibration grade is the first grade, generating a first-grade high-strength vibration signal matched with the vibration grade; if the vibration grade is of a second grade, generating a second-grade high-intensity vibration signal matched with the vibration grade;
when the drum point is characterized as a weak drum point, if the vibration level is zero level, no vibration signal is generated; if the vibration grade is the first grade, generating a vibration signal with the first weak strength matched with the vibration grade; and if the vibration grade is of the second grade, generating a vibration signal with the second weak strength matched with the vibration grade.
In this embodiment, after acquiring the video special effect played by the terminal, the server further determines the grade of the special effect according to the video special effect. And acquiring the vibration level of the terminal according to the special effect level. And finally, generating a matched vibration signal according to the characteristics of the drum points in the music and the vibration level. For example, if the server acquires a strong drum point and the vibration level corresponding to the video special effect is two levels, the generated vibration signal is a vibration signal for generating a two-level vibration sense corresponding to the strong drum point at the music drum point position control terminal. The server acquires a strong drum point, the vibration level corresponding to the video special effect is one level, and the generated vibration signal is a vibration signal of one level of vibration sense corresponding to the strong drum point generated at the music drum point position control terminal. The server acquires weak drum points, the vibration level corresponding to the video special effect is one level, and the generated vibration signals are vibration signals of one level of vibration sense corresponding to the weak drum points generated by the music drum point position control terminal. The server acquires weak drum points, the vibration level corresponding to the video special effect is zero level, and the generated vibration signals are the vibration signals of zero level vibration sense corresponding to the weak drum points generated at the music drum point position control terminal.
In one embodiment, the drum points are characterized as strong and weak drum points. Before step S300, the method further includes: and acquiring the electric quantity of the terminal, and determining the electric quantity range to which the electric quantity belongs. Step S300 includes: when the electric quantity is determined to belong to a first electric quantity range, weak drum points are removed, and a vibration signal matched with the strong drum points is generated; and when the electric quantity is determined to belong to a second electric quantity range, weak drum points are removed, strong drum points are obtained in an interval point taking mode, and a vibration signal matched with the obtained strong drum points is generated. Wherein the first electric quantity range is larger than the second electric quantity range.
Specifically, the server acquires the electric quantity of the terminal and determines the electric quantity range to which the electric quantity belongs. The electric quantity range can be a second electric quantity range with low electric quantity, a first electric quantity range with low electric quantity and a third electric quantity range with high electric quantity. For example, the charge is greater than 30% of the total battery charge and less than 50% of the total battery charge, which is the first charge range. The charge is less than 30% of the total battery charge, which is in the second charge range. The charge is greater than 50% of the total battery charge, which is a third charge range. When the server determines that the electric quantity range to which the electric quantity of the terminal belongs is the second electric quantity range, namely the electric quantity of the terminal is judged to be very low, weak drum points are removed by the server, strong drum points are obtained in an interval point taking mode (for example, 1 strong drum point is selected from every 3 strong drum points), and the terminal is controlled to generate a vibration effect. When the server determines that the electric quantity range to which the electric quantity of the terminal belongs is the first electric quantity range, the electric quantity of the terminal is judged to be low, the terminal is not controlled to generate vibration at all drum positions, the server screens out the positions of strong drum points, and the terminal is controlled to generate a vibration effect. And controlling the terminal to vibrate at all the drum points in the music only when the server detects that the electric quantity of the terminal belongs to a third electric quantity range, namely the electric quantity of the terminal is relatively high. Therefore, certain vibration experience is kept under the condition that the electric quantity of the terminal is low, and bad user experience caused by fast electric quantity consumption due to the fact that the terminal consumes large electric quantity when the terminal is controlled to vibrate by vibration signals when music is played to all drum points can be avoided.
And S400, controlling a vibrator of the terminal to generate vibration according to the vibration signal.
In this embodiment, after the server generates the vibration signal, the server adjusts the voltage input to the terminal vibrator through the vibration signal to control the terminal vibrator to generate a corresponding vibration effect. The magnitude of the voltage input to the terminal vibrator may be divided into a plurality of levels, and each level controls the terminal vibrator to generate a corresponding different vibration effect.
According to the method for controlling the terminal vibration based on the music drumbeats, the drumbeats of the terminal playing music are obtained, vibration signals matched with the characteristics are generated according to the drumbeats in the music, and the vibrator of the terminal is further controlled to generate vibration according to the vibration signals, so that when a user uses the music creative short video social software to record videos, a vibration effect is generated according to the drumbeats playing the music, the experience satisfaction of the user is improved, and the market competitiveness of the music creative short video social software is further improved.
Further, the method for controlling the terminal to vibrate based on the music drumhead determines the position of the drumhead in the music, further generates a vibration signal which generates vibration at a preset time length before the music played by the terminal reaches the position of the drumhead, and controls a vibrator of the terminal to generate vibration according to the vibration signal. Therefore, the problem of time matching between the terminal generating the vibration effect according to the vibration signal and the terminal playing music reaching the drumbeat can be solved, and the experience satisfaction of the user is improved.
Meanwhile, in the music drumbeat control terminal vibration method, the electric quantity of the terminal is obtained and the electric quantity range to which the electric quantity belongs is determined. And when the electric quantity of the terminal is determined to belong to the first electric quantity range, generating a vibration signal matched with the drum point of the base drum. And when the electric quantity of the terminal is determined to belong to the second electric quantity range, generating vibration signals matched with the drum points of the preset number of the base drums. That is, when the electric quantity of the terminal is low, the vibration signal is generated only according to the bottom drum in the music, so that the terminal is controlled to generate vibration when the music is played to the bottom drum. When the electric quantity of the terminal is lower, the vibration effect is generated only according to the preset number of the bottom drums in the music. Therefore, a vibration effect can be generated according to the state of the terminal power, thereby improving the satisfaction of the user.
The invention also provides a storage device having a plurality of instructions stored thereon; the instructions are adapted to be loaded and executed by a processor to: acquiring drumbeats of music played by the terminal; detecting a characteristic of the drum points; generating a vibration signal matched with the features according to the features of the drum points; and controlling the terminal vibrator to generate vibration according to the vibration signal.
Further, the storage device may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In other embodiments, the instructions in the storage device provided by the present invention are loaded by the processor and execute the steps of the method for controlling terminal vibration based on music drumbeats described in any of the above embodiments.
The invention also provides computer equipment. The computer device includes: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the music-drumbeat-based control terminal shaking method of any of the above embodiments in a device.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention. The device described in this embodiment may be a computer device. Such as servers, personal computers, and network appliances. As shown in fig. 7, the apparatus includes a processor 703, a memory 705, an input unit 707, and a display unit 709. Those skilled in the art will appreciate that the device configuration means shown in fig. 7 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 705 may be used to store the application program 701 and various functional modules, and the processor 703 executes the application program 701 stored in the memory 705, thereby executing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 707 is used to receive input of signals and keywords input by a user. The input unit 707 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 709 may be used to display information input by the user or information provided to the user and various menus of the computer device. The display unit 709 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 703 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 703 and calling data stored in the memory.
In one embodiment, the device includes one or more processors 703, as well as one or more memories 705, one or more applications 701. Wherein the one or more applications 701 are stored in the memory 705 and configured to be executed by the one or more processors 703, the one or more applications 701 are configured to perform the music drumbeat-based control terminal vibration method described in the above embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the storage medium may include a memory, a magnetic disk, an optical disk, or the like.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (6)

1. A vibration method of a control terminal based on a music drumbeat is characterized by comprising the following steps:
acquiring drum points of music played by the terminal, wherein the drum points comprise strong drum points and weak drum points;
acquiring the characteristics of the drum points; the features of the drum points comprise position features, strong drum point features and weak drum point features of the drum points in the music;
generating a vibration signal matched with the features according to the features of the drum points, wherein the vibration signal comprises: determining the position of the drum point in the music, and generating a vibration signal which generates vibration in a preset time length before the position; determining a special effect in the video when the video is recorded according to the characteristics of the drum points and the drum points, and generating a vibration signal matched with the drum points and the special effect; when the electric quantity of the terminal is determined to belong to a first electric quantity range, weak drum points are removed, and a vibration signal matched with the strong drum points is generated; when the electric quantity of the terminal is determined to belong to a second electric quantity range, weak drum points are removed, strong drum points are obtained in an interval point taking mode, and a vibration signal matched with the obtained strong drum points is generated; wherein the first electric quantity range is larger than the second electric quantity range;
and controlling a vibrator of the terminal to generate vibration according to the vibration signal.
2. The method of claim 1, wherein before generating the vibration signal matching the strong and weak drum points from the strong and weak drum points, further comprising: acquiring a gender attribute and an age attribute of a user;
generating a vibration signal matched with the strong drum point and the weak drum point according to the strong drum point and the weak drum point, wherein the vibration signal comprises: and generating a vibration signal matched with the strong drum point, the weak drum point and the gender attribute and the age attribute of the user according to the strong drum point, the weak drum point and the gender attribute and the age attribute of the user.
3. The method of claim 1, wherein the determining of the special effect in the played video based on the drum points comprises: acquiring the grade of the special effect in the played video determined according to the drum points;
the method for determining the special effect in the video during video recording according to the characteristics of the drum points and generating the vibration signal matched with the drum points and the special effect comprises the following steps:
obtaining a vibration level corresponding to the level of the special effect;
and generating a vibration signal matched with the characteristics of the drum points and the vibration level according to the characteristics of the drum points and the vibration level.
4. The method of claim 1, wherein before generating the vibration signal matching the features of the drum points from the features, further comprising: and acquiring the electric quantity of the terminal, and determining the electric quantity range to which the electric quantity belongs.
5. A storage device having a plurality of instructions stored thereon; the instructions are adapted to be loaded and executed by a processor to:
acquiring drum points of music played by a terminal, wherein the drum points comprise strong drum points and weak drum points;
detecting a characteristic of the drum points; the features of the drum points comprise position features, strong drum point features and weak drum point features of the drum points in the music;
generating a vibration signal matched with the features according to the features of the drum points, wherein the vibration signal comprises: determining the position of the drum point in the music, and generating a vibration signal which generates vibration in a preset time length before the position; determining a special effect in the video when the video is recorded according to the characteristics of the drum points and the drum points, and generating a vibration signal matched with the drum points and the special effect; when the electric quantity of the terminal is determined to belong to a first electric quantity range, weak drum points are removed, and a vibration signal matched with the strong drum points is generated; when the electric quantity of the terminal is determined to belong to a second electric quantity range, weak drum points are removed, strong drum points are obtained in an interval point taking mode, and a vibration signal matched with the obtained strong drum points is generated; wherein the first electric quantity range is larger than the second electric quantity range;
and controlling the terminal vibrator to generate vibration according to the vibration signal.
6. A computer device, comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors;
the one or more applications are configured to execute the music drumbeat-based control terminal vibration method according to any one of claims 1 to 4.
CN201810088694.7A 2018-01-30 2018-01-30 Music drumbeat-based control terminal vibration method, storage device and computer device Active CN108319444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810088694.7A CN108319444B (en) 2018-01-30 2018-01-30 Music drumbeat-based control terminal vibration method, storage device and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810088694.7A CN108319444B (en) 2018-01-30 2018-01-30 Music drumbeat-based control terminal vibration method, storage device and computer device

Publications (2)

Publication Number Publication Date
CN108319444A CN108319444A (en) 2018-07-24
CN108319444B true CN108319444B (en) 2021-06-29

Family

ID=62891057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810088694.7A Active CN108319444B (en) 2018-01-30 2018-01-30 Music drumbeat-based control terminal vibration method, storage device and computer device

Country Status (1)

Country Link
CN (1) CN108319444B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935551A (en) * 2020-06-30 2020-11-13 百度在线网络技术(北京)有限公司 Video processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604676A (en) * 2004-11-03 2005-04-06 北京中星微电子有限公司 Mobile phone vibration producing method and mobile phone vibration system
CN104219570A (en) * 2014-09-17 2014-12-17 百度在线网络技术(北京)有限公司 Audio signal playing method and device
CN105278355A (en) * 2014-06-13 2016-01-27 中兴通讯股份有限公司 Method and device for using audio to control motor vibration
KR101690221B1 (en) * 2015-07-15 2016-12-27 김두진 Terminal for providing realistic effect of sound using vibration device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604676A (en) * 2004-11-03 2005-04-06 北京中星微电子有限公司 Mobile phone vibration producing method and mobile phone vibration system
CN105278355A (en) * 2014-06-13 2016-01-27 中兴通讯股份有限公司 Method and device for using audio to control motor vibration
CN104219570A (en) * 2014-09-17 2014-12-17 百度在线网络技术(北京)有限公司 Audio signal playing method and device
KR101690221B1 (en) * 2015-07-15 2016-12-27 김두진 Terminal for providing realistic effect of sound using vibration device

Also Published As

Publication number Publication date
CN108319444A (en) 2018-07-24

Similar Documents

Publication Publication Date Title
KR20190097184A (en) Smart Assist for Repeated Actions
US10129596B2 (en) Adaptive row selection
US20160078520A1 (en) Modified matrix factorization of content-based model for recommendation system
WO2015200153A1 (en) Leveraging user signals for initiating communications
CN105426404A (en) Music information recommendation method and apparatus, and terminal
US9993734B2 (en) Player model
JP2015219917A (en) Haptic design authoring tool
WO2017025040A1 (en) Picture switching method and picture switching device during picture video playing
CN106250182B (en) File processing method and device and electronic equipment
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
US9875245B2 (en) Content item recommendations based on content attribute sequence
CN104809223A (en) Method and device for supplying application content search result in application
CN108319444B (en) Music drumbeat-based control terminal vibration method, storage device and computer device
US11120212B2 (en) Creating and modifying applications from a mobile device
CN109144610B (en) Audio playing method and device, electronic device and computer readable storage medium
CN103631872A (en) Method for playing multimedia files and electronic terminal
US9368095B2 (en) Method for outputting sound and apparatus for the same
US9202447B2 (en) Persistent instrument
TWI703515B (en) Training reorganization level evaluation model, method and device for evaluating reorganization level
CN111831917A (en) Content recommendation method, device, equipment and medium
CN107729765B (en) Multimedia data management method and device, storage medium and electronic equipment
CN108271049B (en) Resource downloading method and device and computer equipment
CN108322971A (en) Music drumbeat control terminal flash of light method, storage device and computer equipment
CN109462777B (en) Video heat updating method, device, terminal and storage medium
CN106970814B (en) Processing method, device and system for software upgrading

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant