CN111090369B - Music playing method, device and storage medium - Google Patents

Music playing method, device and storage medium Download PDF

Info

Publication number
CN111090369B
CN111090369B CN201811243885.2A CN201811243885A CN111090369B CN 111090369 B CN111090369 B CN 111090369B CN 201811243885 A CN201811243885 A CN 201811243885A CN 111090369 B CN111090369 B CN 111090369B
Authority
CN
China
Prior art keywords
sampling
information
points
rhythm
point
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
CN201811243885.2A
Other languages
Chinese (zh)
Other versions
CN111090369A (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.)
Shenzhen Hengyun Shengtai Technology Co ltd
Original Assignee
Shenzhen Hengyun Shengtai 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 Shenzhen Hengyun Shengtai Technology Co ltd filed Critical Shenzhen Hengyun Shengtai Technology Co ltd
Priority to CN201811243885.2A priority Critical patent/CN111090369B/en
Publication of CN111090369A publication Critical patent/CN111090369A/en
Application granted granted Critical
Publication of CN111090369B publication Critical patent/CN111090369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/165Management of the audio stream, e.g. setting of volume, audio stream path

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Electrophonic Musical Instruments (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a music playing method, a device and a storage medium; the embodiment of the invention can acquire the current motion information of the electronic equipment, sample the motion information to obtain the sampling information corresponding to the candidate sampling points, then compare the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result, determine the rhythm points from the candidate sampling points according to the information comparison result, acquire corresponding rhythm parameters according to the sampling information variation among the rhythm points, and play music according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.

Description

Music playing method, device and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a music playing method, a device and a storage medium.
Background
With the development of electronic technology, electronic devices have begun to move from simply providing telephony devices to a platform for general-purpose software operation. The platform does not provide call management as a main purpose, but provides an operation environment comprising various application software such as call management, game entertainment, office notes, mobile payment and the like, and with a great deal of popularization, the platform has penetrated into aspects of life and work of people. Therefore, more functions of the electronic device need to be developed.
Disclosure of Invention
The embodiment of the invention provides a music playing method, a device and a storage medium, which can be used for playing actions of a user in a music mode by identifying the actions of the user.
The embodiment of the invention provides a music playing method, which comprises the following steps:
acquiring current motion information of the electronic equipment;
sampling the motion information to obtain sampling information corresponding to candidate sampling points;
comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result;
determining rhythm points from the candidate sampling points according to the information comparison result;
acquiring corresponding rhythm parameters according to the sampling information variable quantity between the rhythm points;
and playing music according to the rhythm parameters.
Correspondingly, the embodiment of the invention also provides a music playing device, which comprises:
the acquisition module is used for acquiring current motion information of the electronic equipment;
the sampling module is used for sampling the motion information to obtain sampling information corresponding to the candidate sampling points;
the comparison module is used for comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result;
The rhythm point determining module is used for determining rhythm points from the candidate sampling points according to the information comparison result;
the rhythm parameter acquisition module is used for acquiring corresponding rhythm parameters according to the variation of the sampling information among the rhythm points;
and the playing module is used for playing music according to the rhythm parameters.
In addition, the embodiment of the invention also provides a storage medium, which stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any of the music playing methods provided by the embodiment of the invention.
The embodiment of the invention can acquire the current motion information of the electronic equipment, sample the motion information to obtain the sampling information corresponding to the candidate sampling points, then compare the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result, determine the rhythm points from the candidate sampling points according to the information comparison result, acquire corresponding rhythm parameters according to the sampling information variation among the rhythm points, and play music according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a music playing system according to an embodiment of the present invention;
fig. 2 is a flowchart of a music playing method according to an embodiment of the present invention;
fig. 3 is another flowchart of a music playing method according to an embodiment of the present invention;
fig. 4 is another flowchart of a music playing method according to an embodiment of the present invention;
FIG. 5 is a raw waveform providing an output according to an embodiment of the present invention;
FIG. 6 is a diagram of an original waveform providing sampling period change points according to an embodiment of the present invention;
FIG. 7 is a waveform before and after filtering provided by an embodiment of the present invention;
FIG. 8 is a waveform after combining rhythm points according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a first configuration of a music playing device according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a second structure of a music playing device according to an embodiment of the present invention;
Fig. 11 is a schematic structural diagram of a network device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The embodiment of the invention provides a music playing method, a device and a storage medium.
The embodiment of the invention provides a music playing system, which comprises the music playing device provided by any one of the embodiments of the invention, wherein the music playing device can be integrated in a terminal, and the terminal can comprise: a cell phone, tablet, notebook or personal computer (PC, personal Computer), etc.
The music playing system further comprises an intelligent wearing device, the intelligent wearing device is a generic name which is used for intelligently designing and developing wearable devices for daily wearing by using a wearing technology, and the intelligent wearing device can comprise: watches, hand rings, glasses, apparel, and the like.
In addition, the music playing system may also include other devices, such as a server, etc.
For example, referring to fig. 1, a music playing system includes a terminal and an intelligent wearable device, the terminal and the intelligent wearable device being connected through a network. The network comprises network entities such as a router, a gateway and the like.
The method comprises the steps of obtaining current motion information of the electronic equipment, sampling the motion information to obtain sampling information corresponding to candidate sampling points, comparing the sampling information of the candidate sampling points with the sampling information of adjacent candidate sampling points to obtain an information comparison result, determining rhythm points from the candidate sampling points according to the information comparison result, obtaining corresponding rhythm parameters according to sampling information variation among the rhythm points, and playing music according to the rhythm parameters.
The example of fig. 1 is merely an example of a system architecture for implementing an embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
The present embodiment will be described from the perspective of a music playing apparatus, which may be integrated in a terminal, which may include a mobile phone, a tablet computer, a notebook computer, a personal computer (PC, personal Computer), or the like, and may also be integrated in an intelligent wearable device.
As shown in fig. 2, a music playing method is provided, which may be executed by a processor of a terminal, and the specific flow of the music playing method may be as follows:
201. and acquiring current motion information of the electronic equipment.
There are various methods for acquiring current motion information of an electronic device, for example, a motion information acquisition request may be received, and motion information may be acquired according to the motion information acquisition request. Wherein, receiving motion information and obtaining the request can be realized through intelligent wearing equipment, and intelligent wearing equipment is the generic name of applying wearing formula technique to carry out intelligent design, develop wearable equipment to daily wearing, and intelligent wearing equipment can include: watches, hand rings, glasses, apparel, etc. In addition, the reception of the sports information acquisition request may also be implemented by a terminal, which may include a mobile phone, a tablet computer, a notebook computer, a personal computer (PC, personal Computer), or the like.
The triggering mode of the motion information obtaining request can be various, for example, the motion information obtaining request can be triggered by a user operating the intelligent wearable device (such as sliding, clicking, pressing and the like), the intelligent wearable device can also be connected to the terminal, and the motion information obtaining request is triggered by operating the terminal; for example, when the motion information is acquired through the intelligent wearable device, a preset area on the intelligent wearable device may be clicked to trigger a motion information acquisition request, specifically, the intelligent wearable device may trigger a motion information acquisition request based on detecting a click or the like of a user, and send the motion information acquisition request, and at this time, the music playing device will receive the motion information acquisition request. For example, when the smart bracelet acquires the motion information, the user can trigger the motion information acquisition request by sliding the bracelet display screen, and send the motion information acquisition request.
The motion information obtaining request may also be sent through the terminal, for example, when the user obtains the motion information through the terminal, the motion information obtaining request may be sent through performing a preset operation (sliding, clicking, shaking, etc.) on a preset area of the terminal, so that the terminal may perform an operation for the motion information obtaining request.
The manner of acquiring the motion information based on the motion information acquisition request may be various, for example, the motion information may be acquired through a sensor in the intelligent wearable device, and the sensor in the intelligent wearable device may include: acceleration sensors, gyroscopes, motion sensors, etc. The movement information can also be acquired by the terminal. After the motion information is acquired, the motion information can be stored by the intelligent wearing equipment or the terminal, the motion information can be sent to the terminal by the intelligent wearing equipment, and then the motion information is processed by the terminal.
202. And sampling the motion information to obtain sampling information corresponding to the candidate sampling points.
Specifically, the step of "sampling the motion information to obtain the sampling information corresponding to the candidate sampling point" may include:
sampling the motion information according to a preset sampling frequency to obtain sampling information corresponding to a sampling point;
and determining the candidate sampling points and sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points.
Wherein the motion information may include a userFor example, if the left-right direction axis is defined as the x-axis, the front-rear direction axis is defined as the y-axis, and the up-down direction axis is defined as the z-axis, the motion information is sampled according to a preset sampling frequency to obtain sampling information corresponding to sampling points, where the sampling information corresponding to the sampling points may be specifically the values x of the x-axis, the y-axis and the z-axis returned after the acceleration sensor senses the motion of the user 1 Y1 and z 1 And according to the values x of the x-axis, y-axis and z-axis 1 、y 1 And z 1 The current triaxial combined acceleration Asr can be calculated 1 For the current tri-axial acceleration Asr 1 The calculation formula of (2) can be as follows:
after the music playing system acquires the sampling information corresponding to the current sampling point, the music playing system sends the sampling information x corresponding to the current sampling point 1 、y 1 、z 1 Asr 1 Storing, and correspondingly, the sampling information corresponding to the sampling point of the previous period can be stored as x 0 、y 0 And z 0 The triaxial combined acceleration value Asr of the previous period can be calculated according to the combined acceleration calculation formula 0 ,Asr 0 The calculation formula of (2) is as follows:
the sampling information corresponding to the sampling points can be displayed as waveforms, so that the motion information can be intuitively displayed.
Then, the candidate sampling points and the sampling information corresponding to the candidate sampling points can be determined according to the sampling information variation corresponding to the sampling points.
Specifically, the step of determining the candidate sampling point and the sampling information corresponding to the candidate sampling point according to the sampling information variation corresponding to the sampling point may include:
determining a sampling period change point according to the sampling information change quantity corresponding to the sampling point;
and filtering the waveform formed by the sampling period change points to obtain a waveform formed by the candidate sampling points and sampling information corresponding to the candidate sampling points.
The sampling period change point may be determined according to the sampling information change amount corresponding to the sampling point, where the sampling information of the sampling period change point may be a difference between sampling information corresponding to the sampling point.
Specifically, for example, the sampling information of the x-axis acceleration at a sampling period change point can be represented by Δx n ' expressed, the sampling information Δx of the x-axis acceleration at one sampling period change point n The' calculation formula may be as follows:
Δx 0 '=x 0 -x -1
Δx 1 '=x 1 -x 0
Δx 2 '=x 2 -x 1
Δx n '=x n -x n-1
similarly, the sampling information deltay of the change point of one sampling period of the y-axis acceleration can be deduced n The' calculation formula is as follows:
Δy n '=y n -y n-1
similarly, the sampling information Δz of the z-axis acceleration at a sampling period change point can be deduced n The' calculation formula is as follows:
Δz n '=z n -z n-1
similarly, the sampling information ΔAsr of the three-axis acceleration value at a sampling period change point can be deduced n The' calculation formula is as follows:
ΔAsr n '=Asr n -Asr n-1
after the sampling information of the sampling period change points is calculated, filtering operation can be carried out on the waveforms formed by the sampling period change points to obtain candidate sampling pointsThe composed waveform makes the waveform composed of candidate sampling points smoother. Wherein, for example, the smoothing coefficient can be preset to be k 1 The calculation formula of the sampling information of the sampling period change point of the filtered x-axis can be as follows:
Δx n =Δx n-1 '·k 1 +Δx n '·(1-k 1 )
Similarly, the calculation formulas of the sampling information of the sampling period change point of the y axis after filtering, the sampling information of the sampling period change point of the z axis after filtering and the sampling information of the sampling period change point of the tri-axial acceleration after filtering can be deduced as follows:
Δy n =Δy n-1 '·k 1 +Δy n '·(1-k 1 )
Δz n =Δz n-1 '·k 1 +Δz n '·(1-k 1 )
ΔAsr n =ΔAsr n-1 '·k 1 +ΔAsr n '·(1-k 1 )
the sampling period change point of the filtered x-axis, the sampling period change point of the filtered y-axis, the sampling period change point of the filtered z-axis and the sampling period change point of the filtered triaxial acceleration can be used as candidate sampling points, and similarly, the sampling information of the sampling period change point of the filtered x-axis, the sampling information of the sampling period change point of the filtered y-axis, the sampling information of the sampling period change point of the filtered z-axis and the sampling information of the sampling period change point of the filtered triaxial acceleration can be used as sampling information of the candidate sampling points, so that the following steps are performed.
The steps of sampling the motion information according to the preset sampling frequency to obtain sampling information corresponding to the sampling points, and then determining the candidate sampling points and the sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points are performed in a windowing period. For example, the windowing period may be denoted as T w Then window opening period T w The calculation formula of (2) can be as follows:
T w sample period =n ·
Where n represents the number of samples that can be taken during each windowing period.
Window opening period T w The value of the sampling period is a preset known value, so that the value of the number n which can be sampled in each windowing period can be calculated by the above formula, for example, when the windowing period T is preset w When the current sampling period is 0.02 seconds, the number n of samples in each windowing period can be calculated to be 20. In the windowing period, candidate sampling points can be obtained as follows:
the x-axis: Δx 0 ,Δx 1 ,Δx 2 …Δx n
y axis: Δy 0 ,Δy 1 ,Δy 2 …Δy n
The z axis: Δz 0 ,Δz 1 ,Δz 2 …Δz n
Triaxial combined acceleration: ΔAsr 0 ,ΔAsr 1 ,ΔAsr 2 …ΔAsr n
203. And comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result.
Wherein, comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points, for example, the sampling period change point of the filtered triaxial acceleration can be used as the candidate sampling point for comparison, and the sampling information of the candidate sampling point in the windowing period is delta Asr 0 ,ΔAsr 1 ,ΔAsr 2 …ΔAsr n And comparing the sampling information of each candidate sampling point with the sampling information of the previous candidate sampling point and the sampling information of the next candidate sampling point to obtain an information comparison result, wherein the information comparison result can be the relation between the sampling information of the candidate sampling point and the sampling information of the adjacent candidate sampling point, for example, the size relation between the sampling information of the candidate sampling point and the sampling information of the adjacent candidate sampling point. For example, if the sampling information of the current candidate sampling point is Δasr m Then ΔAsr is taken m And DeltaAsr m+1 And DeltaAsr m-1 A comparison is made.
204. And determining the rhythm point from the candidate sampling points according to the information comparison result.
The direction of the triaxial combined acceleration represents the direction of the combined force, and the moment when the user wants to trigger the rhythm is regarded as the moment when the user applies the maximum force, so that the rhythm point is the peak point and the trough point in the waveform formed by the candidate sampling points, and at the moment, the waveform upwards and downwards represents the direction of the force, namely the maximum value of the speed in the direction.
Specifically, the step of determining the tempo point from the candidate sampling points according to the information comparison result may include:
determining a peak point and a trough point from the candidate sampling points according to the information comparison result;
and determining a rhythm point according to the crest point and the trough point.
Wherein, according to the information comparison result, the peak point and the trough point are determined from the candidate sampling points, and the peak point and the trough point represent the maximum amplitude point in the waveform formed by the candidate sampling points, it can be understood that, for example, if the sampling information of the current candidate sampling point is Δasr m Then ΔAsr is taken m And DeltaAsr m+1 And DeltaAsr m-1 Comparing when DeltaAsr m Greater than DeltaAsr m+1 Value of and Δasr m Greater than DeltaAsr m-1 Will be DeltaAsr at the value of (2) m The corresponding candidate sampling points are taken as peak points; when DeltaAsr m Less than DeltaAsr m+1 Value of and Δasr m Less than DeltaAsr m-1 Will be DeltaAsr at the value of (2) m The corresponding candidate sampling points are taken as the trough points.
However, during the user's action, the current speed may be affected to some extent by other factors, for example, the user may recognize the peak point and the trough point in the candidate sampling points due to shake, careless touch on his body or impact on other objects, etc., but the peak point and the trough point thus generated are not desired rhythm points, so that it is necessary to remove the peak point and the trough point thus generated, and determine an accurate rhythm point for the following steps.
Specifically, the step of determining the tempo point according to the peak point and the trough point may include:
determining an initial rhythm point according to the peak point and the trough point;
comparing the time interval between the initial rhythm points with a preset time threshold value to obtain a time comparison result;
and determining the rhythm point according to the time comparison result.
The initial rhythm point is determined according to the peak point and the trough point, for example, the obtained peak point and trough point can be used as the initial rhythm point, the preset time threshold is a preset value, tshake can be used for representing the preset time threshold, the time interval between the initial rhythm points is compared with the preset time threshold, and a time comparison result is obtained, and the time comparison result can be a comparison relation between the time interval between the initial rhythm points and the preset time threshold, for example, the time interval between the initial rhythm points and the preset time threshold.
Specifically, the step of determining the tempo point according to the time comparison result may include:
if the time interval between the initial rhythm points is smaller than a preset time threshold value, merging the initial rhythm points into rhythm points;
and if the time interval between the initial rhythm points is larger than a preset time threshold value, taking the initial rhythm points as the rhythm points.
If the time interval between the initial rhythm points is smaller than the preset time threshold, the initial rhythm points are combined into rhythm points, for example, two initial rhythm points with calculated time intervals can be combined into one point, the combined point is taken as a rhythm point, the obtained rhythm point after combination can take a larger value of the amplitude of the two initial rhythm points as the combined amplitude, and the time of the first initial rhythm point plus one half of the time difference between the two initial rhythm points is taken as the combined time, wherein the time is the time corresponding to the sampling period.
If the time interval between the peak points is smaller than the preset time threshold, the peak points are combined into rhythm points, the obtained rhythm points after combination can use the larger value of the amplitude of the two peak points as the combined amplitude, the time of the first peak point plus one half of the time difference between the two peak points as the combined time, and the calculation formula of the time can be as follows:
Tnew=Ttop 1 +(Ttop 2 -Ttop 1 )·0.5
Wherein Tnew represents the combined time value, ttop 1 Time of first peak, ttop 2 Representing the time of the second peak.
If the time interval between the trough points is smaller than the preset time threshold, the trough points are combined into the rhythm points, the obtained rhythm points after combination can use the smaller value of the amplitude of the two trough points as the combined amplitude, the time of the first trough point plus one half of the time difference between the two trough points as the combined time, and the calculation formula of the time can be as follows:
Tnew=Tbot 1 +(Tbot 2 -Tbot 1 )·0.5
wherein, tbot 1 Time of first trough, tbot 2 Representing the time of the second trough.
The calculation formula for calculating the time interval Tb between the two initial tempo points may be as follows:
tb= (sampling number of second initial rhythm point-sampling number of first initial rhythm point) ·sampling period
If the time interval between the initial rhythm points is greater than the preset time threshold, the initial rhythm points can be used as rhythm points without a merging step.
For example, the sampling information of the candidate sampling points in the windowing period is ΔAsr 0 ,ΔAsr 1 ,ΔAsr 2 …ΔAsr n Obtaining tnew=ttop 1 +(Ttop 2 -Ttop 1 ) The sampling information of the 0.5 wave-out valley point is delta Asr 3 ,ΔAsr 5 ,ΔAsr 17 Obtaining sampling information of wave peak point Is DeltaAsr 4 ,ΔAsr 10 ,ΔAsr 16 ,ΔAsr 18 . Wherein the value of the preset time threshold Tshake is 0.1 second, the sampling period is 0.02 second, and the sampling information delta Asr of the two wave valley points is calculated 3 ,ΔAsr 5 The calculation formula is as follows:
tb= (5-3) ·0.02=0.04 seconds
Tb is smaller than Tshake, ΔAsr will be 3 ,ΔAsr 4 ,ΔAsr 5 The calculation formula of the combined time is as follows:
tnew= (3+ (5-3)/2) ·0.02=0.08 seconds
That is, if sampling starts at 0 seconds, the sampling information at the 4 th sampling point after merging is 0.08 seconds. If delta Asr 3 Less than DeltaAsr 5 The actual value after combination is delta Asr 3
Similarly, the sampling information delta Asr of two wave peak points is calculated 16 ,ΔAsr 18 The calculation formula is as follows:
tb= (18-16) ·0.02=0.04 seconds
Tb is smaller than Tshake, ΔAsr will be 16 ,ΔAsr 17 ,ΔAsr 18 The calculation formula of the combined time is as follows:
T new = (16+ (18-16)/2) ·0.02=0.34 seconds
That is, if sampling starts at 0 seconds, the sampling information at the 17 th sampling point after merging is 0.34 seconds. If delta Asr 16 Less than DeltaAsr 18 The actual value after combination is delta Asr 18
205. And acquiring corresponding rhythm parameters according to the variation of the sampling information among the rhythm points.
Specifically, the step of acquiring the corresponding cadence parameter according to the variation of the sampling information between cadence points may include:
acquiring sampling information variable quantity among the rhythm points, wherein the sampling information variable quantity among the rhythm points comprises sampling information amplitude variable quantity and sampling information direction variable quantity;
Determining a preset range within which the amplitude variation of the sampling information falls;
acquiring the rhythm type corresponding to the preset range;
and determining the rhythm direction according to the direction change quantity of the sampling information.
The sampling information variable quantity between the rhythm points comprises a sampling information amplitude variable quantity and a sampling information direction variable quantity, and the rhythm parameters comprise rhythm type and rhythm direction.
After the sampling information variable quantity between the rhythm points is obtained, determining a preset range within which the sampling information amplitude variable quantity falls in the sampling information variable quantity between the rhythm points, for example, the sampling information amplitude variable quantity can be represented by Amp, if the sampling information amplitude of the current rhythm point is set to be Asr c The amplitude of the sampling information of the previous node is Asr f The calculation formula of the sampling information amplitude variation Amp may be as follows:
Amp=|Asr c -Asr f |
the rhythm type can be represented by scales C, D, E, F, G, A and B, and then the rhythm type corresponding to the preset range in which the amplitude variation of the sampling information falls is obtained.
For example, when Amp is greater than Amp C and less than Amp D, scale C is output;
outputting a scale D when Amp is larger than Amp D and smaller than Amp E;
outputting a scale E when the Amp is larger than Amp E and smaller than Amp F;
Outputting a scale F when the Amp is larger than the Amp F and smaller than the Amp G;
outputting a scale G when the Amp is larger than Amp G and smaller than Amp A;
outputting a scale A when Amp is larger than Amp A and smaller than Amp B;
when Amp is greater than Amp B, scale B is output.
Specifically, before the step of acquiring the corresponding rhythm parameters according to the variation of the sampling information between the rhythm points, the method further includes:
deleting the rhythm point when the amplitude variation of the sampling information is smaller than an amplitude threshold value;
and deleting the rhythm point when the time variation of the sampling information is smaller than a time threshold value.
The tempo is too small, and the time is too short, so that the tempo with too small intensity and too short time needs to be filtered, the sampling information variation between the tempo points comprises the sampling information amplitude variation and the sampling information time variation, for example, an amplitude threshold Amp min can be preset, a time threshold Tmp min is preset, the sampling information amplitude variation is represented by Amp, the sampling information time variation is represented by Tmp, if the sampling information amplitude of the current tempo point is set to be asc, the sampling information amplitude of the previous tempo point is set to be asc, and the sampling information time of the current tempo point is set to be t c The sampling information time of the last node is t f The calculation formulas of the sampling information amplitude variation Amp and the sampling information time variation Tmp may be as follows:
Amp=|Asr c -Asr f |
Tmp=|t c -t f |
deleting the rhythm point when the amplitude variation Amp of the sampling information is smaller than a preset amplitude threshold Amp min; and deleting the rhythm point when the time variation Tmp of the sampling information is smaller than a preset time threshold Tmp min.
Wherein, the rhythm direction can be determined according to the direction change quantity of the sampling information. And taking the obtained sampling period change points of the filtered x-axis, the filtered y-axis and the filtered z-axis as candidate sampling points, and judging the direction of the current acting force according to the direction change quantity of the sampling information, namely the current rhythm direction.
For example, when the acquired sampling information of the candidate sampling points is respectively:
the x-axis: Δx 0 ,Δx 1 ,Δx 2 …Δx n
y axis: Δy 0 ,Δy 1 ,Δy 2 …Δy n
The z axis: Δz 0 ,Δz 1 ,Δz 2 …Δz n When, the current tempo point may be set to n,the previous node is t, the following formula can be derived in the x-axis direction:
Δx t =x t -x t-1
Δx t+1 =x t+1 -x t
Δx t+2 =x t+2 -x t+1
Δx n =x n -x n-1
the total variation between the sampling information of the current rhythm point and the sampling information of the previous node in the x-axis direction, that is, the sampling information direction variation in the x-axis direction is:
Δx all =Δx t +Δx t+1 +Δx t+2 +...+Δx n =x n -x t-1
similarly, the total variation between the sampling information of the current rhythm point in the y-axis direction and the sampling information of the previous node and the total variation between the sampling information of the current rhythm point in the z-axis direction and the sampling information of the previous node, namely, the variation in the direction of the sampling information in the y-axis direction and the variation in the direction of the sampling information in the z-axis direction are as follows:
Δy all =Δy t +Δy t+1 +Δy t+2 +...+Δy n =y n -y t-1
Δz all =Δz t +Δz t+1 +Δz t+2 +...+Δz n =z n -z t-1
The total variation between the sampling information of the current rhythm point and the sampling information of the previous node, namely the sampling information direction variation, is equal to the sampling information amplitude of the current rhythm point minus the previous variation of the sampling information amplitude of the previous node.
Then, the direction of the rhythm can be judged according to the three-axis up-sampling information direction variation, for example, after a user wears the intelligent wearing device in a fixed wearing mode, the left-right direction axis is preset as an x axis, the left direction axis is negative, and the right direction axis is positive; the front-back direction axis is the y axis, the back direction is negative, and the front direction is positive; the vertical axis is the z axis, the downward direction is negative, and the upward direction is positive. Then there are:
if Deltax all >0,Δy all >0,Δz all >0, the direction of the output rhythm is rightward, forward and upward;
if Deltax all ≤0,Δy all >0,Δz all >0, the direction of the output rhythm is left, forward and upward;
if Deltax all >0,Δy all ≤0,Δz all >0, the direction of the output rhythm is rightward, backward and upward;
if Deltax all >0,Δy all >0,Δz all The direction of the output rhythm is rightward, forward and downward;
if Deltax all ≤0,Δy all ≤0,Δz all >0, the direction of the output rhythm is left, backward and upward;
If Deltax all >0,Δy all ≤0,Δz all The direction of the output rhythm is rightward, backward and downward;
if Deltax all ≤0,Δy all >0,Δz all The direction of the output rhythm is left, forward and downward if the output rhythm is less than or equal to 0;
if Deltax all ≤0,Δy all ≤0,Δz all And less than or equal to 0, the direction of the output rhythm is leftward, backward and downward.
The rhythm direction and the rhythm type are combined, and 56 different rhythm parameters can be obtained.
206. And playing music according to the rhythm parameters.
The music playing according to the rhythm parameters can be performed in various modes, for example, the rhythm parameters can be directly played, a user can simulate the action of playing a musical instrument, the sensor recognizes the motion information, and the rhythm parameters corresponding to the motion information are directly played, so that the effect of simulating the musical instrument can be achieved. Alternatively, the tempo parameters may be matched to the corresponding song, which is played so that the user can listen to the song that is compatible with his movement. For example, a play song list can be obtained in advance, the tracks in the song list are analyzed, and the tracks are corresponding to the rhythm parameters, so that after the rhythm parameters are obtained according to the motion information, the tracks corresponding to the rhythm parameters can be played.
The mode of playing music can be various, for example, the motion information can be acquired through the intelligent wearing equipment, music playing can be performed through a loudspeaker and the like of the intelligent wearing equipment, or the motion information can be acquired through the intelligent wearing equipment, the intelligent wearing equipment is connected to the terminal, then the music playing can be performed through the terminal, or the motion information can be acquired through the terminal, and then the music playing can be performed through the terminal.
As can be seen from the above, the embodiment of the invention can acquire the current motion information of the electronic device, sample the motion information to obtain the sampling information corresponding to the candidate sampling points, then compare the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result, determine the rhythm points from the candidate sampling points according to the information comparison result, acquire the corresponding rhythm parameters according to the variation of the sampling information among the rhythm points, and play music according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
The method described in the previous embodiment will be described in further detail below with the music playing device being specifically integrated in the smart wearable device.
Referring to fig. 3, a specific flow of the music playing method according to the embodiment of the present invention may be as follows:
301. the intelligent wearable device obtains current motion information.
The intelligent wearable device may receive a motion information acquisition request, and acquire motion information according to the motion information acquisition request.
The triggering manner of the motion information obtaining request may be various, for example, the motion information obtaining request may be triggered by a user operating the intelligent wearable device (such as sliding, clicking, pressing, etc.), for example, when the motion information is obtained by the intelligent wearable device, a preset area on the intelligent wearable device may be clicked to trigger the motion information obtaining request, specifically, the intelligent wearable device may trigger the motion information obtaining request based on detecting the operation of the user clicking, etc., and send the motion information obtaining request, where the music playing device will receive the motion information obtaining request. For example, when the smart bracelet acquires the motion information, the user may slide the bracelet display screen, thereby triggering a motion information acquisition request and transmitting the motion information acquisition request.
302. The intelligent wearable equipment samples the motion information to obtain sampling information corresponding to the candidate sampling points.
Specifically, the step of the intelligent wearable device sampling the motion information to obtain sampling information corresponding to the candidate sampling points may include:
the intelligent wearable equipment samples the motion information according to a preset sampling frequency to obtain sampling information corresponding to a sampling point;
The intelligent wearable device determines candidate sampling points and sampling information corresponding to the candidate sampling points according to the sampling information variable quantity corresponding to the sampling points.
The motion information may include acceleration change information, magnitude, direction, time information of acting force, and the like when the user acts, for example, if a left-right direction axis in the acceleration sensor is defined as an x-axis, a front-rear direction axis is defined as a y-axis, and an up-down direction axis is defined as a z-axis, the motion information is sampled according to a preset sampling frequency to obtain sampling information corresponding to a sampling point, where the sampling information corresponding to the sampling point may be specifically the values x of the x-axis, the y-axis, and the z-axis returned after the acceleration sensor senses the action of the user 1 、y 1 And z 1 And according to the values x of the x-axis, y-axis and z-axis 1 、y 1 And z 1 The current triaxial combined acceleration Asr can be calculated 1 For the current tri-axial acceleration Asr 1 The calculation formula of (2) can be as follows:
after the intelligent wearable device acquires the sampling information corresponding to the current sampling point, the intelligent wearable device transmits the sampling information x corresponding to the current sampling point 1 、y 1 、z 1 Asr 1 Storing, and correspondingly, the sampling information corresponding to the sampling point of the previous period can be stored as x 0 、y 0 And z 0 The triaxial combined acceleration value Asr of the previous period can be calculated according to the combined acceleration calculation formula 0 ,Asr 0 The calculation formula of (2) is as follows:
referring to fig. 5, an original waveform provided for output according to an embodiment of the present invention may display sampling information corresponding to sampling points as waveforms, so as to intuitively display motion information.
Then, the intelligent wearable device can determine the candidate sampling points and the sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points.
Specifically, the step of determining, by the intelligent wearable device, the candidate sampling point and the sampling information corresponding to the candidate sampling point according to the sampling information variation corresponding to the sampling point may include:
the intelligent wearable equipment determines a sampling period change point according to the sampling information change quantity corresponding to the sampling point;
and the intelligent wearable equipment performs filtering operation on the waveform formed by the sampling period change points to obtain a waveform formed by the candidate sampling points and sampling information corresponding to the candidate sampling points.
Referring to fig. 6, fig. 6 shows an original waveform of a sampling period change point according to an embodiment of the present invention.
The intelligent wearable device can determine a sampling period change point according to the sampling information change quantity corresponding to the sampling point, wherein the sampling information of the sampling period change point can be the difference of the sampling information corresponding to the sampling point.
Referring to fig. 7, fig. 7 shows waveforms before and after filtering according to an embodiment of the present invention.
After the sampling information of the sampling period change points is calculated, filtering operation can be carried out on the waveforms formed by the sampling period change points to obtain waveforms formed by candidate sampling points, so that the waveforms formed by the candidate sampling points are smoother.
The sampling period change point of the filtered x-axis, the sampling period change point of the filtered y-axis, the sampling period change point of the filtered z-axis and the sampling period change point of the filtered triaxial acceleration can be used as candidate sampling points, and similarly, the sampling information of the sampling period change point of the filtered x-axis, the sampling information of the sampling period change point of the filtered y-axis, the sampling information of the sampling period change point of the filtered z-axis and the sampling information of the sampling period change point of the filtered triaxial acceleration can be used as sampling information of the candidate sampling points, so that the following steps are performed.
The intelligent wearable device samples motion information according to a preset sampling frequency to obtain sampling information corresponding to sampling points, and then determines candidate sampling points and sampling information corresponding to the candidate sampling points according to sampling information variation corresponding to the sampling points. For example, the windowing period may be denoted as T w Window period T w Since the value of the sampling period is known in advance, the value of the number n that can be sampled in each windowing period can be calculated by the above equation.
303. And the intelligent wearable equipment compares the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result.
The intelligent wearable device collects sampling information of the candidate sampling points and adjacent candidates thereofFor example, the sampling period change point of the filtered triaxial acceleration can be used as the candidate sampling point for comparison, and the sampling information of the candidate sampling point in the windowing period is Δasr 0 ,ΔAsr 1 ,ΔAsr 2 …ΔAsr n And comparing the sampling information of each candidate sampling point with the sampling information of the previous candidate sampling point and the sampling information of the next candidate sampling point to obtain an information comparison result.
304. And the intelligent wearable device determines the rhythm point from the candidate sampling points according to the information comparison result.
Specifically, the step of determining, by the intelligent wearable device, the rhythm point from the candidate sampling points according to the information comparison result may include:
the intelligent wearable device determines a peak point and a trough point from the candidate sampling points according to the information comparison result;
And the intelligent wearable equipment determines a rhythm point according to the crest point and the trough point.
And the intelligent wearable device determines a peak point and a trough point from the candidate sampling points according to the information comparison result, wherein the peak point and the trough point represent the maximum amplitude point in the waveform formed by the candidate sampling points.
However, during the user's action, there are other factors that have a certain influence on the current speed, for example, the user may recognize the peak point and the trough point in the candidate sampling points due to shake, careless touch on his body or impact on other objects, etc., but the peak point and the trough point thus generated are not desired rhythm points, so it is necessary to remove the peak point and the trough point thus generated, and determine an accurate rhythm point for the following steps.
Specifically, the step of determining, by the intelligent wearable device, the rhythm point according to the peak point and the trough point may include:
the intelligent wearable device determines an initial rhythm point according to the crest point and the trough point;
the intelligent wearable device compares the time interval between the initial rhythm points with a preset time threshold value to obtain a time comparison result;
And the intelligent wearable device determines the rhythm point according to the time comparison result.
The intelligent wearable device determines an initial rhythm point according to the peak point and the trough point, for example, the obtained peak point and trough point can be used as the initial rhythm point, the preset time threshold is a preset value, and the time interval between the initial rhythm points is compared with the preset time threshold to obtain a time comparison result.
Specifically, the step of determining, by the smart wearable device, the rhythm point according to the time comparison result may include:
if the time interval between the initial rhythm points is smaller than a preset time threshold value, the intelligent wearable device merges the initial rhythm points into rhythm points;
and if the time interval between the initial rhythm points is larger than a preset time threshold, the intelligent wearable device takes the initial rhythm points as the rhythm points.
Referring to fig. 8, fig. 8 shows waveforms after merging tempo points according to an embodiment of the present invention.
If the time interval between the initial rhythm points is smaller than the preset time threshold, the initial rhythm points are combined into rhythm points, for example, two initial rhythm points with calculated time intervals can be combined into one point, the combined point is taken as the rhythm point, the rhythm point obtained after combination can be taken as the combined amplitude, the time of the first initial rhythm point plus one half of the time difference between the two initial rhythm points is taken as the combined time, and the time is the time corresponding to the sampling period.
If the time interval between the initial rhythm points is greater than the preset time threshold, the initial rhythm points can be used as rhythm points without a merging step.
305. And the intelligent wearable device acquires corresponding rhythm parameters according to the variation of the sampling information among the rhythm points.
Specifically, the step of obtaining, by the intelligent wearable device, the corresponding rhythm parameter according to the variation of the sampling information between the rhythm points may include:
the intelligent wearable device obtains sampling information variable quantities among the rhythm points, wherein the sampling information variable quantities among the rhythm points comprise sampling information amplitude variable quantities and sampling information direction variable quantities;
the intelligent wearable equipment determines a preset range within which the amplitude variation of the sampling information falls;
the intelligent wearable device acquires the rhythm type corresponding to the preset range;
and the intelligent wearable device determines the rhythm direction according to the direction change quantity of the sampling information.
The sampling information variable quantity between the rhythm points comprises a sampling information amplitude variable quantity and a sampling information direction variable quantity, and the rhythm parameters comprise rhythm type and rhythm direction.
After the sampling information variable quantity between the rhythm points is obtained, determining a preset range in which the sampling information amplitude variable quantity in the sampling information variable quantity between the rhythm points falls, wherein the rhythm type can be represented by scales C, D, E, F, G, A and B, and then obtaining the rhythm type corresponding to the preset range in which the sampling information amplitude variable quantity falls.
Specifically, before the step of the intelligent wearable device acquiring the corresponding rhythm parameters according to the variation of the sampling information between the rhythm points, the intelligent wearable device further comprises:
the intelligent wearable device deletes the rhythm point when the amplitude variation of the sampling information is smaller than an amplitude threshold value;
and deleting the rhythm point by the intelligent wearable device when the time variation of the sampling information is smaller than a time threshold value.
The tempo is too small, and the time is too short, so that the tempo with too small intensity and too short time needs to be filtered, the sampling information variation between the tempo points comprises the sampling information amplitude variation and the sampling information time variation, for example, an amplitude threshold Amp min and a time threshold Tmp min can be preset,the amplitude variation of the sampling information is expressed by Amp, the time variation of the sampling information is expressed by Tmp, if the amplitude of the sampling information of the current rhythm point is set to be Asrc, the amplitude of the sampling information of the previous rhythm point is set to be Asrf, and the time of the sampling information of the current rhythm point is set to be t c The sampling information time of the last node is t f The calculation formulas of the sampling information amplitude variation Amp and the sampling information time variation Tmp may be as follows:
Amp=|Asr c -Asr f |
Tmp=|t c -t f |
Deleting the rhythm point when the amplitude variation Amp of the sampling information is smaller than a preset amplitude threshold Amp min; and deleting the rhythm point when the time variation Tmp of the sampling information is smaller than a preset time threshold Tmp min.
Wherein, the rhythm direction can be determined according to the direction change quantity of the sampling information. And taking the obtained sampling period change points of the filtered x-axis, the filtered y-axis and the filtered z-axis as candidate sampling points, and judging the direction of the current acting force according to the direction change quantity of the sampling information, namely the current rhythm direction. For a specific method of determining the tempo direction, reference is made to the above embodiments.
The rhythm direction and the rhythm type are combined, and 56 different rhythm parameters can be obtained.
306. The intelligent wearable device plays music according to the rhythm parameters.
The intelligent wearable device can play music according to the rhythm parameters in various modes, for example, the rhythm parameters can be directly played, a user can simulate actions when playing a musical instrument, the sensor recognizes motion information, and the rhythm parameters corresponding to the motion information are directly played, so that the effect of simulating the musical instrument can be achieved. Alternatively, the tempo parameters may be matched to the corresponding song, which is played so that the user can listen to the song that is compatible with his movement.
As can be seen from the above, in the embodiment of the present invention, current motion information may be obtained through the intelligent wearable device, the motion information is sampled to obtain sampling information corresponding to candidate sampling points, then the sampling information of the candidate sampling points is compared with the sampling information of adjacent candidate sampling points to obtain an information comparison result, a rhythm point is determined from the candidate sampling points according to the information comparison result, then corresponding rhythm parameters are obtained according to the variation of the sampling information between the rhythm points, and music playing is performed through the intelligent wearable device according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
The method according to the previous embodiment will be described in further detail below with the specific integration of the music playing device in the terminal.
Referring to fig. 4, a specific flow of the music playing method according to the embodiment of the present invention may be as follows:
401. the intelligent wearable device acquires current motion information and sends the motion information to the terminal.
Various methods for the smart wearable device to acquire the current motion information are available, for example, the smart wearable device may receive a motion information acquisition request and acquire the motion information according to the motion information acquisition request.
The triggering manner of the motion information obtaining request may be various, for example, the motion information obtaining request may be triggered by a user operating the intelligent wearable device (such as sliding, clicking, pressing, etc.), for example, when the motion information is obtained by the intelligent wearable device, a preset area on the intelligent wearable device may be clicked to trigger the motion information obtaining request, specifically, the intelligent wearable device may trigger the motion information obtaining request based on detecting the operation of the user clicking, etc., and send the motion information obtaining request, where the music playing device will receive the motion information obtaining request. For example, when the smart bracelet acquires the motion information, the user may slide the bracelet display screen, thereby triggering a motion information acquisition request and transmitting the motion information acquisition request.
And then, the intelligent wearable equipment sends the acquired motion information to the terminal.
402. And the terminal samples the motion information to obtain sampling information corresponding to the candidate sampling points.
Specifically, the step of the terminal sampling the motion information to obtain sampling information corresponding to the candidate sampling points may include:
the terminal samples the motion information according to a preset sampling frequency to obtain sampling information corresponding to a sampling point;
and the terminal determines the candidate sampling points and the sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points.
The motion information may include acceleration change information, magnitude, direction, time information of acting force, and the like when the user acts, for example, if a left-right direction axis in the acceleration sensor is defined as an x-axis, a front-rear direction axis is defined as a y-axis, and an up-down direction axis is defined as a z-axis, the motion information is sampled according to a preset sampling frequency to obtain sampling information corresponding to a sampling point, where the sampling information corresponding to the sampling point may be specifically the values x of the x-axis, the y-axis, and the z-axis returned after the acceleration sensor senses the action of the user 1 、y 1 And z 1 And according to the values x of the x-axis, y-axis and z-axis 1 、y 1 And z 1 The current triaxial combined acceleration Asr can be calculated 1 For the current tri-axial acceleration Asr 1 The calculation formula of (2) can be as follows:
after the terminal obtains the sampling information corresponding to the current sampling point, the terminal sends the sampling information x corresponding to the current sampling point 1 、y 1 、z 1 Asr 1 Storing, and correspondingly, the sampling information corresponding to the sampling point of the previous period can be stored as x 0 、y 0 And z 0 The triaxial combined acceleration value of the previous period can be calculated according to the combined acceleration calculation formulaAsr 0 ,Asr 0 The calculation formula of (2) is as follows:
the terminal can display the sampling information corresponding to the sampling points as waveforms, so that the motion information is intuitively displayed.
And then, the terminal can determine the candidate sampling points and the sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points.
Specifically, the step of determining, by the terminal, the candidate sampling point and the sampling information corresponding to the candidate sampling point according to the sampling information variation corresponding to the sampling point may include:
the terminal determines a sampling period change point according to the sampling information change quantity corresponding to the sampling point;
and the terminal performs filtering operation on the waveform formed by the sampling period change points to obtain a waveform formed by the candidate sampling points and sampling information corresponding to the candidate sampling points.
The terminal can determine a sampling period change point according to the sampling information change quantity corresponding to the sampling point, wherein the sampling information of the sampling period change point can be the difference of the sampling information corresponding to the sampling point.
After the sampling information of the sampling period change points is calculated, filtering operation can be carried out on the waveforms formed by the sampling period change points to obtain waveforms formed by candidate sampling points, so that the waveforms formed by the candidate sampling points are smoother.
The sampling period change point of the filtered x-axis, the sampling period change point of the filtered y-axis, the sampling period change point of the filtered z-axis and the sampling period change point of the filtered triaxial acceleration can be used as candidate sampling points, and similarly, the sampling information of the sampling period change point of the filtered x-axis, the sampling information of the sampling period change point of the filtered y-axis, the sampling information of the sampling period change point of the filtered z-axis and the sampling information of the sampling period change point of the filtered triaxial acceleration can be used as sampling information of the candidate sampling points, so that the following steps are performed.
The terminal samples the motion information according to a preset sampling frequency to obtain sampling information corresponding to the sampling points, and then determines candidate sampling points and sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points. For example, the windowing period may be denoted as T w Window period T w Since the value of the sampling period is known in advance, the value of the number n that can be sampled in each windowing period can be calculated by the above equation.
403. And the terminal compares the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result.
The terminal compares the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points, for example, the sampling period change point of the filtered triaxial acceleration can be used as the candidate sampling point for comparison, and the sampling information of the candidate sampling point in the windowing period is delta Asr 0 ,ΔAsr 1 ,ΔAsr 2 …ΔAsr n And comparing the sampling information of each candidate sampling point with the sampling information of the previous candidate sampling point and the sampling information of the next candidate sampling point to obtain an information comparison result.
404. And the terminal determines the rhythm point from the candidate sampling points according to the information comparison result.
Specifically, the step of determining, by the terminal, the tempo point from the candidate sampling points according to the information comparison result may include:
the terminal determines a peak point and a trough point from the candidate sampling points according to the information comparison result;
and determining a rhythm point according to the peak point and the trough point by the terminal.
And determining a peak point and a trough point from the candidate sampling points according to the information comparison result by the terminal, wherein the peak point and the trough point represent the maximum amplitude point in the waveform formed by the candidate sampling points.
However, during the user's action, there are other factors that have a certain influence on the current speed, for example, the user may recognize the peak point and the trough point in the candidate sampling points due to shake, careless touch on his body or impact on other objects, etc., but the peak point and the trough point thus generated are not desired rhythm points, so it is necessary to remove the peak point and the trough point thus generated, and determine an accurate rhythm point for the following steps.
Specifically, the step of determining the rhythm point by the terminal according to the peak point and the trough point may include:
the terminal determines an initial rhythm point according to the peak point and the trough point;
the terminal compares the time interval between the initial rhythm points with a preset time threshold value to obtain a time comparison result;
and the terminal determines the rhythm point according to the time comparison result.
The terminal determines an initial rhythm point according to the peak point and the trough point, for example, the obtained peak point and trough point can be used as the initial rhythm point, the preset time threshold is a preset value, and the time interval between the initial rhythm points is compared with the preset time threshold to obtain a time comparison result.
Specifically, the step of determining, by the terminal, the tempo point according to the time comparison result may include:
if the time interval between the initial rhythm points is smaller than a preset time threshold value, the terminal merges the initial rhythm points into rhythm points;
and if the time interval between the initial rhythm points is larger than a preset time threshold value, the terminal takes the initial rhythm points as the rhythm points.
If the time interval between the initial rhythm points is smaller than the preset time threshold, the initial rhythm points are combined into rhythm points, for example, two initial rhythm points with calculated time intervals can be combined into one point, the combined point is taken as the rhythm point, the rhythm point obtained after combination can be taken as the combined amplitude, the time of the first initial rhythm point plus one half of the time difference between the two initial rhythm points is taken as the combined time, and the time is the time corresponding to the sampling period.
If the time interval between the initial rhythm points is greater than the preset time threshold, the initial rhythm points can be used as rhythm points without a merging step.
405. And the terminal acquires corresponding rhythm parameters according to the sampling information variable quantity between the rhythm points.
Specifically, the step of the terminal obtaining the corresponding rhythm parameter according to the variation of the sampling information between the rhythm points may include:
the terminal obtains the sampling information variable quantity between the rhythm points, wherein the sampling information variable quantity between the rhythm points comprises the sampling information amplitude variable quantity and the sampling information direction variable quantity;
the terminal determines a preset range within which the amplitude variation of the sampling information falls;
the terminal obtains the rhythm type corresponding to the preset range;
and the terminal determines the rhythm direction according to the direction change quantity of the sampling information.
The sampling information variable quantity between the rhythm points comprises a sampling information amplitude variable quantity and a sampling information direction variable quantity, and the rhythm parameters comprise rhythm type and rhythm direction.
After the sampling information variable quantity between the rhythm points is obtained, determining a preset range in which the sampling information amplitude variable quantity in the sampling information variable quantity between the rhythm points falls, wherein the rhythm type can be represented by scales C, D, E, F, G, A and B, and then obtaining the rhythm type corresponding to the preset range in which the sampling information amplitude variable quantity falls.
Specifically, before the step of acquiring the corresponding rhythm parameters according to the variation of the sampling information between the rhythm points, the terminal further includes:
When the amplitude variation of the sampling information is smaller than an amplitude threshold, the terminal deletes the rhythm point;
and deleting the rhythm point when the time variation of the sampling information is smaller than a time threshold value by the terminal.
The tempo is too small, and the time is too short, so that the tempo with too small intensity and too short time needs to be filtered, the sampling information variation between the tempo points comprises the sampling information amplitude variation and the sampling information time variation, for example, an amplitude threshold Amp min can be preset, a time threshold Tmp min is preset, the sampling information amplitude variation is represented by Amp, the sampling information time variation is represented by Tmp, if the sampling information amplitude of the current tempo point is set to be asc, the sampling information amplitude of the previous tempo point is set to be asc, and the sampling information time of the current tempo point is set to be t c The sampling information time of the last node is t f The calculation formulas of the sampling information amplitude variation Amp and the sampling information time variation Tmp may be as follows:
Amp=|Asr c -Asr f |
Tmp=|t c -t f |
deleting the rhythm point when the amplitude variation Amp of the sampling information is smaller than a preset amplitude threshold Amp min; and deleting the rhythm point when the time variation Tmp of the sampling information is smaller than a preset time threshold Tmp min.
Wherein the tempo direction may also be determined from the sampling information direction change amount. And taking the obtained sampling period change points of the filtered x-axis, the filtered y-axis and the filtered z-axis as candidate sampling points, and judging the direction of the current acting force according to the direction change quantity of the sampling information, namely the current rhythm direction. For a specific method of determining the tempo direction, reference is made to the above embodiments.
The rhythm direction and the rhythm type are combined, and 56 different rhythm parameters can be obtained.
406. And the terminal plays the music according to the rhythm parameters.
The terminal can play the music according to the rhythm parameters in various modes, for example, the rhythm parameters can be directly played, a user can simulate the action when playing the musical instrument, the sensor recognizes the motion information, and the rhythm parameters corresponding to the motion information are directly played, so that the effect of simulating the musical instrument can be achieved. Alternatively, the tempo parameters may be matched to the corresponding song, which is played so that the user can listen to the song that is compatible with his movement.
As can be seen from the above, in the embodiment of the present invention, current motion information may be obtained through a terminal, and the motion information is sampled to obtain sampling information corresponding to candidate sampling points, then the sampling information of the candidate sampling points is compared with the sampling information of adjacent candidate sampling points to obtain an information comparison result, and a rhythm point is determined from the candidate sampling points according to the information comparison result, then corresponding rhythm parameters are obtained according to the variation of the sampling information between the rhythm points, and music playing is performed through the terminal according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
In order to better implement the above method, the embodiment of the present invention may further provide a music playing device, where the music playing device may be specifically integrated in a terminal or an intelligent wearable device, and the terminal may include: a cell phone, tablet, notebook or personal computer (PC, personal Computer), etc.
For example, as shown in fig. 9, the music playing device may include an acquisition module 91, a sampling module 92, a comparison module 93, a tempo point determination module 94, a tempo parameter acquisition module 95, and a playing module 96, as follows:
an obtaining module 91, configured to obtain current motion information of the electronic device;
the sampling module 92 is configured to sample the motion information to obtain sampling information corresponding to a candidate sampling point;
a comparison module 93, configured to compare the sampling information of the candidate sampling points with the sampling information of the neighboring candidate sampling points to obtain an information comparison result;
a rhythm point determining module 94, configured to determine a rhythm point from the candidate sampling points according to the information comparison result;
the rhythm parameter obtaining module 95 is configured to obtain a corresponding rhythm parameter according to the variation of the sampling information between the rhythm points;
and the playing module 96 is used for playing music according to the rhythm parameters.
In one embodiment, referring to fig. 10, the sampling module 92 may include:
the sampling point determining submodule 921 is used for sampling the motion information according to a preset sampling frequency to obtain sampling information corresponding to the sampling point;
the candidate sampling point determining submodule 922 is configured to determine a candidate sampling point and sampling information corresponding to the candidate sampling point according to a sampling information variation corresponding to the sampling point.
In an embodiment, the cadence parameter acquisition module 95 may include:
an obtaining sub-module 951, configured to obtain a sampling information variation between the rhythm points, where the sampling information variation between the rhythm points includes a sampling information amplitude variation and a sampling information direction variation;
a determining submodule 952, configured to determine a preset range within which the amplitude variation of the sampling information falls;
a rhythm type obtaining sub-module 953, configured to obtain the rhythm type corresponding to the preset range;
a cadence direction determination sub-module 954, configured to determine the cadence direction according to the sampled information direction variation.
In one embodiment, candidate sample point determination submodule 922 may be specifically configured to:
determining a sampling period change point according to the sampling information change quantity corresponding to the sampling point;
And filtering the waveform formed by the sampling period change points to obtain a waveform formed by the candidate sampling points and sampling information corresponding to the candidate sampling points.
In one embodiment, the cadence point determination module 94 may be specifically configured to:
determining a peak point and a trough point from the candidate sampling points according to the information comparison result;
and determining a rhythm point according to the crest point and the trough point.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the music playing device according to the embodiment of the present invention may obtain current motion information through the obtaining module 91, sample the motion information through the sampling module 92 to obtain sampling information corresponding to the candidate sampling points, then compare the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points through the comparing module 93 to obtain an information comparison result, determine a rhythm point from the candidate sampling points through the rhythm point determining module 94 according to the information comparison result, then obtain corresponding rhythm parameters through the rhythm parameter obtaining module 95 according to the sampling information variation between the rhythm points, and play music through the playing module 96 according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
The embodiment of the invention also provides a terminal which can integrate any music playing device provided by the embodiment of the invention.
For example, as shown in fig. 11, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown, specifically:
the terminal may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. It will be appreciated by those skilled in the art that the terminal structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 501 is a control center of the terminal, and connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the terminal. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The terminal further comprises a power supply 503 for supplying power to the various components, preferably the power supply 503 may be logically connected to the processor 501 by a power management system, so that functions such as charge, discharge, and power consumption management may be implemented by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The terminal may also include an input unit 504, which input unit 504 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the terminal may further include a display unit or the like, which is not described herein. In this embodiment, the processor 501 in the terminal loads executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 executes the application programs stored in the memory 502, so as to implement various functions as follows:
acquiring current motion information of the electronic equipment, sampling the motion information to obtain sampling information corresponding to candidate sampling points, comparing the sampling information of the candidate sampling points with the sampling information of adjacent candidate sampling points to obtain an information comparison result, determining rhythm points from the candidate sampling points according to the information comparison result, acquiring corresponding rhythm parameters according to the sampling information variation among the rhythm points, and playing music according to the rhythm parameters.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
As can be seen from the above, the embodiment of the invention can acquire the current motion information of the electronic device, sample the motion information to obtain the sampling information corresponding to the candidate sampling points, then compare the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result, determine the rhythm points from the candidate sampling points according to the information comparison result, acquire the corresponding rhythm parameters according to the variation of the sampling information among the rhythm points, and play music according to the rhythm parameters; according to the scheme, corresponding rhythm parameters are determined through the current motion information of the electronic equipment, and music playing is performed, so that the motion of a user can be played in a music mode by identifying the motion of the user in the motion process of the user.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any one of the music playing methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
acquiring current motion information of the electronic equipment, sampling the motion information to obtain sampling information corresponding to candidate sampling points, comparing the sampling information of the candidate sampling points with the sampling information of adjacent candidate sampling points to obtain an information comparison result, determining rhythm points from the candidate sampling points according to the information comparison result, acquiring corresponding rhythm parameters according to the sampling information variation among the rhythm points, and playing music according to the rhythm parameters.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any music playing method provided by the embodiment of the present invention can be executed due to the instructions stored in the storage medium, so that the beneficial effects of any music playing method provided by the embodiment of the present invention can be achieved, and detailed descriptions of the foregoing embodiments are omitted.
The foregoing describes in detail a music playing method, apparatus and storage medium provided by the embodiments of the present invention, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, where the foregoing examples are only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (9)

1. A music playing method, comprising:
acquiring current motion information of the electronic equipment;
sampling the motion information to obtain sampling information corresponding to candidate sampling points;
comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result;
determining rhythm points from the candidate sampling points according to the information comparison result;
acquiring corresponding rhythm parameters according to the sampling information variable quantity among the rhythm points, wherein the method comprises the following steps:
acquiring sampling information variable quantity among the rhythm points, wherein the sampling information variable quantity among the rhythm points comprises sampling information amplitude variable quantity and sampling information direction variable quantity;
Determining a preset range within which the amplitude variation of the sampling information falls;
acquiring a rhythm type corresponding to the preset range;
determining the rhythm direction according to the direction change quantity of the sampling information;
and playing music according to the rhythm parameters.
2. The music playing method as claimed in claim 1, wherein the step of sampling the motion information to obtain sampling information corresponding to candidate sampling points comprises:
sampling the motion information according to a preset sampling frequency to obtain sampling information corresponding to a sampling point;
and determining the candidate sampling points and sampling information corresponding to the candidate sampling points according to the sampling information variation corresponding to the sampling points.
3. The music playing method as claimed in claim 2, wherein determining the candidate sampling point and the sampling information corresponding to the candidate sampling point according to the sampling information variation corresponding to the sampling point comprises:
determining a sampling period change point according to the sampling information change quantity corresponding to the sampling point;
and filtering the waveform formed by the sampling period change points to obtain a waveform formed by the candidate sampling points and sampling information corresponding to the candidate sampling points.
4. The music playing method as claimed in claim 1, wherein determining a tempo point from the candidate sample points based on the information comparison result includes:
Determining a peak point and a trough point from the candidate sampling points according to the information comparison result;
and determining a rhythm point according to the crest point and the trough point.
5. The music playing method as claimed in claim 4, wherein determining a tempo point from the peak points and the valley points includes:
determining an initial rhythm point according to the peak point and the trough point;
comparing the time interval between the initial rhythm points with a preset time threshold value to obtain a time comparison result;
and determining the rhythm point according to the time comparison result.
6. The music playing method of claim 5, wherein determining the tempo point based on the time comparison result includes:
if the time interval between the initial rhythm points is smaller than a preset time threshold value, merging the initial rhythm points into rhythm points;
and if the time interval between the initial rhythm points is not smaller than a preset time threshold value, taking the initial rhythm points as the rhythm points.
7. The music playing method as claimed in claim 1, wherein the sampling information variation between the rhythm points includes a sampling information amplitude variation and a sampling information time variation, and before obtaining the corresponding rhythm parameters according to the sampling information variation between the rhythm points, further includes:
Deleting the rhythm point when the amplitude variation of the sampling information is smaller than an amplitude threshold value;
and deleting the rhythm point when the time variation of the sampling information is smaller than a time threshold value.
8. A music playing device, comprising:
the acquisition module is used for acquiring current motion information of the electronic equipment;
the sampling module is used for sampling the motion information to obtain sampling information corresponding to the candidate sampling points;
the comparison module is used for comparing the sampling information of the candidate sampling points with the sampling information of the adjacent candidate sampling points to obtain an information comparison result;
the rhythm point determining module is used for determining rhythm points from the candidate sampling points according to the information comparison result;
the rhythm parameter obtaining module is used for obtaining corresponding rhythm parameters according to the sampling information variation among the rhythm points, and comprises the following steps:
acquiring sampling information variable quantity among the rhythm points, wherein the sampling information variable quantity among the rhythm points comprises sampling information amplitude variable quantity and sampling information direction variable quantity;
determining a preset range within which the amplitude variation of the sampling information falls;
acquiring a rhythm type corresponding to the preset range;
Determining the rhythm direction according to the direction change quantity of the sampling information;
and the playing module is used for playing music according to the rhythm parameters.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the music playing method of any one of claims 1 to 7.
CN201811243885.2A 2018-10-24 2018-10-24 Music playing method, device and storage medium Active CN111090369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811243885.2A CN111090369B (en) 2018-10-24 2018-10-24 Music playing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811243885.2A CN111090369B (en) 2018-10-24 2018-10-24 Music playing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111090369A CN111090369A (en) 2020-05-01
CN111090369B true CN111090369B (en) 2023-10-27

Family

ID=70392741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811243885.2A Active CN111090369B (en) 2018-10-24 2018-10-24 Music playing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111090369B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836108B (en) * 2020-07-24 2023-04-14 广州酷狗计算机科技有限公司 Media resource playing method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN103488285A (en) * 2013-08-22 2014-01-01 英华达(南京)科技有限公司 Interaction device and method
CN103714836A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Method for playing audio information and electronic equipment
CN103885663A (en) * 2014-03-14 2014-06-25 深圳市东方拓宇科技有限公司 Music generating and playing method and corresponding terminal thereof
CN104361016A (en) * 2014-10-15 2015-02-18 广东小天才科技有限公司 Method and device for adjusting music play effect according to sport state
CN104867506A (en) * 2015-04-08 2015-08-26 小米科技有限责任公司 Music automatic control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226935A (en) * 2006-01-24 2007-09-06 Sony Corp Audio reproducing device, audio reproducing method, and audio reproducing program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN103714836A (en) * 2012-09-29 2014-04-09 联想(北京)有限公司 Method for playing audio information and electronic equipment
CN103488285A (en) * 2013-08-22 2014-01-01 英华达(南京)科技有限公司 Interaction device and method
CN103885663A (en) * 2014-03-14 2014-06-25 深圳市东方拓宇科技有限公司 Music generating and playing method and corresponding terminal thereof
CN104361016A (en) * 2014-10-15 2015-02-18 广东小天才科技有限公司 Method and device for adjusting music play effect according to sport state
CN104867506A (en) * 2015-04-08 2015-08-26 小米科技有限责任公司 Music automatic control method and device

Also Published As

Publication number Publication date
CN111090369A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN112863547B (en) Virtual resource transfer processing method, device, storage medium and computer equipment
CN109256146B (en) Audio detection method, device and storage medium
CN108197327B (en) Song recommendation method, device and storage medium
CN111210021B (en) Audio signal processing method, model training method and related device
US8228292B1 (en) Flipping for motion-based input
CN111179961A (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
CN104133851A (en) Audio similarity detecting method, audio similarity detecting device and electronic equipment
CN110674801B (en) Method and device for identifying user motion mode based on accelerometer and electronic equipment
CN111883091A (en) Audio noise reduction method and training method of audio noise reduction model
CN103139395A (en) Mobile terminal and control method thereof
CN101739384A (en) Multi-functional electronic device and application method thereof
CN109961787A (en) Determine the method and device of acquisition end time
CN104346074A (en) Terminal
CN107395872B (en) Application starting method and device, storage medium and electronic equipment
CN108704307A (en) Processing method, device, storage medium and the electronic device of touch information
CN111090369B (en) Music playing method, device and storage medium
CN104360800A (en) Adjustment method of unlocking mode
CN111857482B (en) Interaction method, device, equipment and readable medium
CN113823313A (en) Voice processing method, device, equipment and storage medium
US11443738B2 (en) Electronic device processing user utterance and control method thereof
CN109284783B (en) Machine learning-based worship counting method and device, user equipment and medium
CN115665319B (en) Application control method, device, equipment and storage medium based on wireless earphone
CN114979798B (en) Playing speed control method and electronic equipment
CN113744736B (en) Command word recognition method and device, electronic equipment and storage medium
CN110727411A (en) Audio signal processing method and device, storage medium and terminal

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