CN105118517B - A kind of device and method adjusting music rhythm - Google Patents

A kind of device and method adjusting music rhythm Download PDF

Info

Publication number
CN105118517B
CN105118517B CN201510368554.1A CN201510368554A CN105118517B CN 105118517 B CN105118517 B CN 105118517B CN 201510368554 A CN201510368554 A CN 201510368554A CN 105118517 B CN105118517 B CN 105118517B
Authority
CN
China
Prior art keywords
music
rhythm
preset length
module
tempo
Prior art date
Application number
CN201510368554.1A
Other languages
Chinese (zh)
Other versions
CN105118517A (en
Inventor
张圣杰
Original Assignee
努比亚技术有限公司
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 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Priority to CN201510368554.1A priority Critical patent/CN105118517B/en
Publication of CN105118517A publication Critical patent/CN105118517A/en
Application granted granted Critical
Publication of CN105118517B publication Critical patent/CN105118517B/en

Links

Abstract

The invention discloses a kind of device and method for adjusting music rhythm, when needing to adjust music rhythm, comprising: obtain module, processing module, adjustment module and playing module;Wherein, module is obtained, for obtaining the motion frequency of mobile terminal and obtaining the music of preset length;Processing module, the rhythm number of the music for analyzing the preset length obtained;Module is adjusted, for adjusting the rhythm of the music of the preset length analyzed according to the motion frequency of acquisition when the motion frequency of the rhythm number and acquisition that analyze does not wait;Playing module, for playing the music of preset length according to rhythm adjusted.It realizes music rhythm adjusted to match with the motion frequency of user itself, enhances the experience sense of user.

Description

A kind of device and method adjusting music rhythm

Technical field

The present invention relates to smart card techniques, espespecially a kind of device and method for adjusting music rhythm.

Background technique

Some researches show that 120~140 beat numbers (BPM, Beats Per Minute) per minute are the mankind in running Pleasant tempo range, can effectively improve exercise efficiency, adjust blood flow, and the functions such as promote blood circulation.Current mobile end End can not carry out the adjustment of music rhythm when playing music according to the motion frequency of mobile terminal itself.Such as Chinese public affairs The number of opening is " CN104361016A ", entitled " a kind of method and device that music effect is adjusted according to motion state " Application following technical scheme is disclosed: obtain the movement state information of user;It finds in default song library and believes with the motion state Cease the highest music of matching degree;The result of broadcast of the music is adjusted according to the movement state information.Above-mentioned first patent is only Be only find with the highest music of motion state matching degree, and the processing of speed-variation without tone, Wu Fashi are carried out to the music that finds The music liked for user.

In addition, also not necessarily user institute is ripe since the source of sound of 120~140BPM only accounts for seldom a part of whole music Know and receive, therefore user needs to spend very big time and efforts on the sport music for selecting correct rhythm to collect examination Mistake, it is very not humane.

Summary of the invention

In order to solve the above-mentioned technical problems, the present invention provides a kind of device and method for adjusting music rhythm, Neng Goushi Existing music rhythm adjusted is matched with the motion frequency of user itself, enhances the experience sense of user.

In order to reach the object of the invention, the present invention provides a kind of devices for adjusting music rhythm, when needing to adjust music When rhythm, comprising: obtain module, processing module, adjustment module and playing module;Wherein,

Module is obtained, for obtaining the motion frequency of mobile terminal and obtaining the music of preset length;

Processing module, the rhythm number of the music for analyzing the preset length obtained;

Module is adjusted, for when the motion frequency of the rhythm number and acquisition that analyze is not equal, according to the movement frequency of acquisition The rhythm of the music for the preset length that rate adjustment analyzes;

Playing module, for playing the music of preset length according to rhythm adjusted.

Further, the adjustment module, is specifically used for:

Determine the highest rhythm and lowest tempo of the music of the preset length obtained;

Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;

When the highest rhythm of the music of calculated preset length and the difference of lowest tempo are less than or equal to preset threshold When, it is pre-set rhythm area corresponding with the motion frequency of acquisition by the tempo range Linear Mapping of the music of preset length Between;

It, will be pre- when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold If the tempo range Nonlinear Mapping of the music of length is or level specific pressure is condensed to preset corresponding with the motion frequency obtained Rhythm section;

Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest tempo it is true It is fixed.

Further, which further includes cue module, for prompting user to enter the adjustment Music Day by interactive interface The interface played.

Further, module is adjusted, is also used to: according to the music of fixed rhythm section adjustment preset length set by user Rhythm.

The present invention also provides a kind of methods for adjusting music rhythm, when needing to adjust music rhythm, comprising:

It obtains the motion frequency of mobile terminal and obtains the music of preset length;

Analyze the rhythm number of the music of the preset length obtained;

When the motion frequency of the rhythm number and acquisition that analyze is not equal, analyzed according to the motion frequency adjustment of acquisition The rhythm of the music of preset length;

The music of preset length is played according to rhythm adjusted.

Further, the rhythm of the music for the preset length that the motion frequency adjustment according to acquisition analyzes includes:

Determine the highest rhythm and lowest tempo of the music of the preset length obtained;

Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;

When the highest rhythm of the music of calculated preset length and the difference of lowest tempo are less than or equal to preset threshold When, it is pre-set rhythm area corresponding with the motion frequency of acquisition by the tempo range Linear Mapping of the music of preset length Between;

It, will be pre- when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold If the tempo range Nonlinear Mapping of the music of length is or level specific pressure is condensed to preset corresponding with the motion frequency obtained Rhythm section;

Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest tempo it is true It is fixed.

Further, before this method further include: prompt user enters the interface of adjustment music rhythm by interactive interface.

Further, this method further include: according to the music of fixed rhythm section adjustment preset length set by user Rhythm.

Technical solution of the present invention includes: to obtain module, processing module, adjustment module and playing module;Wherein, mould is obtained Block, for obtaining the motion frequency of mobile terminal and obtaining the music of preset length;Processing module, for analyzing the default of acquisition The rhythm number of the music of length;Module is adjusted, for when the motion frequency of the rhythm number and acquisition that analyze is not equal, according to obtaining The rhythm of the music for the preset length that the motion frequency adjustment obtained analyzes;Playing module, for being broadcast according to rhythm adjusted Put the music of preset length.Technical solution of the present invention realizes the motion frequency of music rhythm adjusted Yu user itself Match, enhances the experience sense of user.

Detailed description of the invention

The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:

Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;

Fig. 2 is the schematic diagram for supporting the communication system communicated between mobile terminal of the present invention;

Fig. 3 is the structural schematic diagram of the device of present invention adjustment music rhythm;

Fig. 4 is the flow chart of the method for present invention adjustment music rhythm.

Specific embodiment

Technical solution of the present invention is described in detail below in conjunction with accompanying drawings and embodiments.

The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".

Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.

The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention.

Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.

Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.

Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).

Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.

The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..

Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..

Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.

A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121 Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110 It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122 Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or Person's interference.

The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.

Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below Touch screen is described this.

Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).

In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..

Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..

Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.

Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..

Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.

Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.

Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.

The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure Piece draws input and is identified as character or image.

Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.

Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.

So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.

Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.

Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.

Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.

With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.

Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).

What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.

As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.

In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.

As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.

Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.

Fig. 3 is the structural schematic diagram of the device of present invention adjustment music rhythm, as shown in figure 3, when needing to adjust the Music Day When playing, comprising: obtain module, processing module, adjustment module and playing module.Wherein,

Module is obtained, for obtaining the motion frequency of mobile terminal and obtaining the music of preset length.

Processing module, the rhythm number of the music for analyzing the preset length obtained.

Module is adjusted, for when the motion frequency of the rhythm number and acquisition that analyze is not equal, according to the movement frequency of acquisition The rhythm of the music for the preset length that rate adjustment analyzes.

Wherein, module is adjusted, is specifically used for:

Determine the highest rhythm and lowest tempo of the music of the preset length obtained;

Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;

When the highest rhythm of the music of calculated preset length and the difference of lowest tempo are less than or equal to preset threshold When, it is pre-set rhythm area corresponding with the motion frequency of acquisition by the tempo range Linear Mapping of the music of preset length Between;

It, will be pre- when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold If the tempo range Nonlinear Mapping of the music of length is or level specific pressure is condensed to preset corresponding with the motion frequency obtained Rhythm section.Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest section Play determination.

Playing module, for playing the music of preset length according to rhythm adjusted.

Further, which further includes cue module, for prompting user to enter the adjustment Music Day by interactive interface The interface played.

Further, module is adjusted, can be also used for: according to fixed rhythm section adjustment preset length set by user The rhythm of music.

It should be noted that the acquisition module in the device can be set in the sensing unit 140 in Fig. 1, mould is handled Block and adjustment module can be set in the controller 180 in Fig. 1, and playing module and cue module can be set in Fig. 1 In output unit 150.

Fig. 4 is the flow chart of the method for present invention adjustment music rhythm, as shown in figure 4, when needing to adjust music rhythm, Include:

Step 401: obtaining the motion frequency of mobile terminal and obtain the music of preset length.

Wherein, the motion frequency for obtaining mobile terminal includes: the movement letter that mobile terminal is obtained by acceleration transducer Breath;

The motion frequency of mobile terminal is calculated according to the motion information of the mobile terminal of acquisition.

Wherein, motion information includes the direction etc. of instantaneous acceleration value and acceleration.On how to be added according to instantaneous The motion frequency that direction of velocity amplitude and acceleration etc. calculates mobile terminal belongs to usual skill well-known to those skilled in the art Art means.

Further, before this method further include: prompt user enters the interface of adjustment music rhythm by interactive interface.

Step 402: analyzing the rhythm number of the music of the preset length of acquisition.

Wherein, this step specifically includes: of the duration shortest single-tone of the music for the preset length that statistics obtains Number;Summation operation is carried out to the number of statistics;Numerical value after summation operation as obtains pre- divided by the resulting value of preset length If the rhythm number of the music of length.

Wherein, single-tone refers to the single note in music field.

Step 403: when the motion frequency of the rhythm number and acquisition that analyze is not equal, being adjusted according to the motion frequency of acquisition The rhythm of the music of the preset length analyzed.

This step specifically includes:

Determine the highest rhythm and lowest tempo of the music of the preset length obtained;

Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;

When the highest rhythm of the music of calculated preset length and the difference of lowest tempo are less than or equal to preset threshold When, it is pre-set rhythm area corresponding with the motion frequency of acquisition by the tempo range Linear Mapping of the music of preset length Between;

It, will be pre- when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold If the tempo range Nonlinear Mapping of the music of length is or level specific pressure is condensed to preset corresponding with the motion frequency obtained Rhythm section.Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest section Play determination.

It should be noted that how to obtain the tempo range of music, highest rhythm and lowest tempo belongs to art technology Conventional techniques known to personnel, details are not described herein.

It should be noted that according to incompletely statistics, the prehuman musical works tempo range of mesh in [20,200] BPM, Therefore it when being mapped to the rhythm section of [120,140] BPM, needs using linearly or nonlinearly mapping method, wherein non-linear Mapping is further referred to as level specific pressure contracting.For example, the whole tempo range of one section of music is [70,80] BPM, belongs to variation and exist Within 20BPM, then it can be changed by Linear Mapping as [120,130] BPM;The whole tempo range of another section of music is [100,160] BPM, then [100,120] are partially compressed to [120,127], and [120,140] are partially compressed to [127,133], [140,160] it is partially compressed to [133,140] BPM.Above example is that is, need to consider the change of whole music rhythm Change, if the rhythm of whole section of music is all relatively unified (variation is within 20BPM), can map directly to pleasant section ([120, 140] BPM) in;It has been more than 20BPM if front and back tempo variation is larger, then has needed to carry out level specific pressure contracting or Nonlinear Mapping.About How to carry out Nonlinear Mapping or level specific pressure contracting and carry out Linear Mapping, belongs to the common knowledge of this field, be not used to limit The system present invention, details are not described herein.

Further, when the rhythm number analyzed is equal with the motion frequency of acquisition, this method further include: directly play The music of the preset length of acquisition.

Step 404: the music of preset length is played according to rhythm adjusted.

Further, this method can also include: the sound according to fixed rhythm section adjustment preset length set by user Happy rhythm.Further, this method further include: according to the sound of fixed rhythm section preset length adjusted set by user Happy rhythm plays the music of the preset length obtained.

In the method for the present invention, music segments are adjusted by the motion frequency of mobile terminal, realize music rhythm adjusted It is matched with the motion frequency of user itself, enhances the experience sense of user.

Embodiment

Embodiment provides the detailed process of the method for present invention adjustment music rhythm, comprising the following steps:

Step 1: prompt user enters the interface of adjustment music rhythm by interactive interface.

Step 2: obtaining the motion frequency of mobile terminal and obtains the music of preset length.

Step 3: the rhythm number of the music of the preset length of acquisition is analyzed.

Step 4: it when the motion frequency of the rhythm number and acquisition that analyze is not equal, is adjusted according to the motion frequency of acquisition The rhythm of the music of the preset length analyzed.

Step 5: next section of music is adjusted.Step 2 is repeated to five, adjustment needs the music adjusted in real time.

In addition to the above-mentioned method of adjustment in the present embodiment, music can also be adjusted in the following manner: user's sets itself Fixed rhythm section;According to the rhythm of the music of fixed rhythm section adjustment preset length set by user.

It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.

The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.

The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (6)

1. a kind of device for adjusting music rhythm, when needing to adjust music rhythm characterized by comprising obtain module, place Manage module, adjustment module and playing module;Wherein,
Module is obtained, for obtaining the motion frequency of mobile terminal and obtaining the music of preset length;
Processing module, the rhythm number of the music for analyzing the preset length obtained;
Module is adjusted, for when the motion frequency of the rhythm number and acquisition that analyze is not equal, according to the motion frequency tune of acquisition The rhythm of the music of the whole preset length analyzed;
Playing module, for playing the music of preset length according to rhythm adjusted;
The adjustment module, is specifically used for:
Determine the highest rhythm and lowest tempo of the music of the preset length obtained;
Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;
It, will when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is less than or equal to preset threshold The tempo range Linear Mapping of the music of preset length is pre-set rhythm section corresponding with the motion frequency of acquisition;
When the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold, by default length The tempo range Nonlinear Mapping of the music of degree is or level specific pressure is condensed to pre-set section corresponding with the motion frequency obtained Play section;
Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest tempo determine.
2. the apparatus according to claim 1, which is characterized in that the device further includes cue module, for prompting user logical Cross the interface that interactive interface enters adjustment music rhythm.
3. the apparatus according to claim 1, which is characterized in that adjustment module is also used to: according to fixed knot set by user Play the rhythm of the music of section adjustment preset length.
4. a kind of method for adjusting music rhythm, when needing to adjust music rhythm characterized by comprising
It obtains the motion frequency of mobile terminal and obtains the music of preset length;
Analyze the rhythm number of the music of the preset length obtained;
When the motion frequency of the rhythm number and acquisition that analyze is not equal, analyzed according to the motion frequency adjustment of acquisition default The rhythm of the music of length;
The music of preset length is played according to rhythm adjusted;
The rhythm of the music for the preset length that the motion frequency adjustment according to acquisition analyzes includes:
Determine the highest rhythm and lowest tempo of the music of the preset length obtained;
Calculate the highest rhythm of the music of determining preset length and the difference of lowest tempo;
It, will when the difference of the highest rhythm of the music of calculated preset length and lowest tempo is less than or equal to preset threshold The tempo range Linear Mapping of the music of preset length is pre-set rhythm section corresponding with the motion frequency of acquisition;
When the difference of the highest rhythm of the music of calculated preset length and lowest tempo is greater than preset threshold, by default length The tempo range Nonlinear Mapping of the music of degree is or level specific pressure is condensed to pre-set section corresponding with the motion frequency obtained Play section;
Wherein, the tempo range of the music of preset length by the preset length music highest rhythm and lowest tempo determine.
5. according to the method described in claim 4, it is characterized in that, before this method further include: prompt user passes through interaction circle Face enters the interface of adjustment music rhythm.
6. according to the method described in claim 4, it is characterized in that, this method further include: according to fixed rhythm set by user Section adjusts the rhythm of the music of preset length.
CN201510368554.1A 2015-06-29 2015-06-29 A kind of device and method adjusting music rhythm CN105118517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510368554.1A CN105118517B (en) 2015-06-29 2015-06-29 A kind of device and method adjusting music rhythm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510368554.1A CN105118517B (en) 2015-06-29 2015-06-29 A kind of device and method adjusting music rhythm

Publications (2)

Publication Number Publication Date
CN105118517A CN105118517A (en) 2015-12-02
CN105118517B true CN105118517B (en) 2019-01-15

Family

ID=54666480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510368554.1A CN105118517B (en) 2015-06-29 2015-06-29 A kind of device and method adjusting music rhythm

Country Status (1)

Country Link
CN (1) CN105118517B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1748242A (en) * 2003-02-12 2006-03-15 皇家飞利浦电子股份有限公司 Audio reproduction apparatus, method, computer program
CN1819014A (en) * 2006-03-22 2006-08-16 曹坚 Method for playing related rhythm music according to kinematic rhythm by digital musicial player
US7915512B2 (en) * 2008-10-15 2011-03-29 Agere Systems, Inc. Method and apparatus for adjusting the cadence of music on a personal audio device
CN102290045A (en) * 2011-05-13 2011-12-21 北京瑞信在线系统技术有限公司 A method of controlling a rhythm of music, the mobile terminal apparatus and
CN104361016A (en) * 2014-10-15 2015-02-18 广东小天才科技有限公司 Method and device for adjusting music play effect according to sport state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1748242A (en) * 2003-02-12 2006-03-15 皇家飞利浦电子股份有限公司 Audio reproduction apparatus, method, computer program
CN1819014A (en) * 2006-03-22 2006-08-16 曹坚 Method for playing related rhythm music according to kinematic rhythm by digital musicial player
US7915512B2 (en) * 2008-10-15 2011-03-29 Agere Systems, Inc. Method and apparatus for adjusting the cadence of music on a personal audio device
CN102290045A (en) * 2011-05-13 2011-12-21 北京瑞信在线系统技术有限公司 A method of controlling a rhythm of music, the mobile terminal apparatus and
CN104361016A (en) * 2014-10-15 2015-02-18 广东小天才科技有限公司 Method and device for adjusting music play effect according to sport state

Also Published As

Publication number Publication date
CN105118517A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
KR101597512B1 (en) Mobile terminal as operation method and based on this, the mobile terminal
KR20140113118A (en) Mobile terminal and method for controlling the same
KR20090127881A (en) Method, apparatus, and computer program product for determining user status indicators
KR20120092737A (en) Mobile terminal and method for cancelling hold thereof
CN104915143B (en) The control method and terminal of Rimless mobile terminal
CN104917881A (en) Multi-mode mobile terminal and implementation method thereof
CN104991819B (en) Terminal applies switching method and device
CN105356037B (en) A kind of antenna and mobile terminal
CN106101736B (en) A kind of methods of exhibiting and system of virtual present
CN104811538A (en) Audio-based breathing lamp control method and device
KR101604692B1 (en) Mobile terminal and method for controlling the same
CN104301877A (en) Short message prompting method and device
US20130179784A1 (en) Mobile terminal and control method thereof
CN105101366B (en) Method for controlling mobile terminal and mobile terminal
CN105302904A (en) Information pushing method and apparatus
CN105122780B (en) An electronic device and a method for controlling the electronic device
CN103581791B (en) Mobile device and its control method
CN104284014B (en) Mobile terminal and its control method
CN104917896A (en) Data pushing method and terminal equipment
US8443018B2 (en) Mobile terminal and unit converting method thereof
CN105259996B (en) Mobile terminal temperature-adjusting device and method
US8611964B2 (en) Mobile terminal and method of controlling the same
CN104935739A (en) Audio and video application control method and device
KR20110005174A (en) Portable terminal for explaining information of wine and contol method thereof
US10097591B2 (en) Methods and devices to determine a preferred electronic device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01