CN104731508B - Audio frequency playing method and device - Google Patents
Audio frequency playing method and device Download PDFInfo
- Publication number
- CN104731508B CN104731508B CN201510149509.7A CN201510149509A CN104731508B CN 104731508 B CN104731508 B CN 104731508B CN 201510149509 A CN201510149509 A CN 201510149509A CN 104731508 B CN104731508 B CN 104731508B
- Authority
- CN
- China
- Prior art keywords
- information
- music
- picture
- color
- music picture
- 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
Links
Landscapes
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of audio frequency playing method, the audio frequency playing method comprises the following steps:Detect and whether there is touch operation on preset music picture;The music picture includes note information and pronunciation length information;When detect touch operation be present on preset music picture when, parse the music picture obtain corresponding to note information and pronunciation length information;Audio broadcasting is carried out according to the note information and pronunciation length information.The invention also discloses a kind of audio playing apparatus.The present invention realizes the interactive function that touch operation plays with audio, improves the flexibility of audio broadcasting.
Description
Technical field
The present invention relates to Audiotechnica field, more particularly to audio frequency playing method and device.
Background technology
It is well known that existing audio, which plays, is typically required the corresponding player of user's opening, selected in player
Song carries out audio broadcasting.The mode that its audio plays is single, can not meet the individual demand of user, therefore improves audio and broadcast
The flexibility put, it is particularly important to enrich the function of mobile terminal.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of audio frequency playing method and device, it is intended to realize touch operation and audio
The interactive function of broadcasting, improve the flexibility that audio plays.
To achieve the above object, a kind of audio frequency playing method provided by the invention, the audio frequency playing method include following
Step:
Detect and whether there is touch operation on preset music picture;The music picture includes note information and pronunciation is grown
Spend information;
When detect touch operation be present on preset music picture when, parse the music picture obtain corresponding to note
Information and pronunciation length information;
Audio broadcasting is carried out according to the note information and pronunciation length information.
Preferably, also include before with the presence or absence of touch operation on the preset music picture of the detecting:
When receiving the generation request of music picture, the song information for asking currently to select is generated according to the music picture
Send to server;
The reception server MIDI music datas according to corresponding to the song information generate the spy for forming music picture
Levy data;
Music picture is generated according to the characteristic.
Preferably, also include after the generation music picture according to characteristic:
When receiving music picture and sharing request, the music picture is shown in preset position.
Preferably, the music picture includes multiple color bars, and the color of the color bar corresponds to the note information, institute
The length value for stating color bar corresponds to the pronunciation length information;
Note information and pronunciation length information include corresponding to the parsing music picture acquisition:
Determine the color and length value of color bar in the music picture;
The note information according to corresponding to obtaining the color of the color bar, pronunciation length letter is obtained according to the length value
Breath.
Preferably, the touch operation includes slide and clicking operation;
When the touch operation is slide, the color and length value bag of color bar in the music picture are determined
Include:
Obtain the color bar that sliding trace is passed through in the music picture and the speed slided;
Determine the color and length value for all color bars that the sliding trace passes through;
Described played according to note information and pronunciation length information progress audio includes:According to the note information, pronunciation
Length information and sliding speed carry out audio broadcasting.
In addition, in order to realize foregoing invention purpose, the present invention further provides a kind of audio playing apparatus, the audio is broadcast
Putting device includes:
Detecting module, it whether there is touch operation on preset music picture for detecting;The music picture includes sound
Accord with information and pronunciation length information;
Parsing module, for when detect touch operation be present on preset music picture when, parse the music picture
Note information corresponding to acquisition and pronunciation length information;
Playing module, for carrying out audio broadcasting according to the note information and pronunciation length information.
Preferably, the audio playing apparatus also includes:
Sending module, when being asked for receiving the generation of music picture, generating request according to the music picture will be current
The song information of selection is sent to server;
Receiving module, for the reception server, the MIDI music datas according to corresponding to the song information are generated for being formed
The characteristic of music picture;
Image generating module, for generating music picture according to the characteristic.
Preferably, the audio playing apparatus also includes:
Processing module, when sharing request for receiving music picture, the music picture is shown in preset position.
Preferably, the music picture includes multiple color bars, and the color of the color bar corresponds to the note information, institute
The length value for stating color bar corresponds to the pronunciation length information;
The parsing module includes:
Determining unit, for determining the color and length value of color bar in the music picture;
Acquiring unit, for the note information according to corresponding to the acquisition of the color of the color bar, obtained according to the length value
Take pronunciation length information.
Preferably, the touch operation includes slide and clicking operation;
When the touch operation is slide, the determining unit is specifically used for, and obtains sliding trace in the sound
The color bar passed through in happy picture and the speed slided;Determine the color and length for all color bars that the sliding trace passes through
Angle value;
The playing module is specifically used for, and audio is carried out according to the note information, pronunciation length information and sliding speed
Play.
The embodiment of the present invention is by the way that note information and pronunciation length information are associated with music picture, so as to by music
Picture is as on each UI interfaces of mobile terminal, when user carries out touch operation to the music picture, it is possible to achieve audio is broadcast
Put;It is achieved thereby that the interactive function that touch operation plays with audio, improves the flexibility of audio broadcasting.
Brief description of the drawings
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of audio frequency playing method first embodiment of the present invention;
Fig. 4 is the schematic flow sheet of audio frequency playing method second embodiment of the present invention;
Fig. 5 is the schematic flow sheet of audio frequency playing method 3rd embodiment of the present invention;
Fig. 6 is the refinement schematic flow sheet that music picture is parsed in the embodiment of audio frequency playing method one of the present invention;
Fig. 7 is the high-level schematic functional block diagram of audio playing apparatus first embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of audio playing apparatus second embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram of audio playing apparatus 3rd embodiment of the present invention;
Figure 10 is the refinement high-level schematic functional block diagram of parsing module in the embodiment of audio playing apparatus one of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP
The mobile terminal of (portable media player), guider etc. and such as digital 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 except being used in particular for moving
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 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 less 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 assemblies, and it allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, it is at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, 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 DMB (DMB) electronics
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can be broadcasted by using various types of broadcast system reception signals.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hold (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) 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 of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored 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 in server and/or receive from it radio signal.Such radio signal can lead to including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (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 junction service.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (I rDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and comes from three or more satellites
Range information and correct time information and for the Information application triangulation of calculating, so as to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended for the method for calculation position and temporal information using three
Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 1220, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static map
The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121
Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110
Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (voice 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 voice data.Audio (voice) data after processing can be changed in the case of telephone calling model
For the output of the form of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds
Noise eliminate (or suppress) algorithm with eliminate (or suppression) during receiving and sending audio signal caused noise or
Person disturbs.
User input unit 130 can control each of mobile terminal according to the order generation key input data that user inputs
Kind operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (for example, sensitive component of detection change of resistance, pressure, electric capacity etc. caused by being touched), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, 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 presence or absence of the contact (that is, touch input) of the position of mobile terminal 100, user for 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, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense
The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below
This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, 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 that storage is used to verify that user uses each of mobile terminal 100
Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 100.Interface unit 170 can be used for reception and come from
The input (for example, data message, 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 connected with external base, interface unit 170 may be used as allowing by it by electricity
Power provides to the path of mobile terminal 100 from base or may be used as allowing to pass through it from the various command signals that base inputs
It is transferred to the path of mobile terminal.It may be used as being used to identify that mobile terminal is from the various command signals or electric power of base input
The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed in mobile terminal 100 information handled.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file
Download etc.) related user interface (U I) or graphic user interface (GU I).When mobile terminal 100 is in video calling mould
When formula or image capture mode, display unit 151 can show the image of capture and/or the image of reception, video is shown or
UI or GUI of image and correlation function etc..
Meanwhile when display unit 151 and touch pad 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 can 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 be watched from outside, and 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 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is receiving or in memory 160 by wireless communication unit 110 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and to export be sound.Moreover, dio Output Modules 152 can provide and movement
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 performs.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
There is provided output, when receive calling, message or some it is other enter communication (incoming communication) when, alarm list
Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by tactile as offer, even in
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 dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., 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 the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can 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 memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can be with performing memory by network connection
The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 performs and voice call, data
Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or be can be structured as and controlled
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, 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), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
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 be with allowing to perform the single of at least one function or operation
Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai
Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, 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 packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system operate.
The communication system that can be wherein operated according to the mobile terminal of the present invention referring now to Fig. 2 descriptions.
Such communication system can use different air interface and/or physical layer.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) (especially, 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 teaching is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system can include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 2800MSC 280 are configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC 280 is also structured to be formed with the BSC 275 that can be couple to base station 270 via back haul link and connect
Mouthful.If back haul link can construct according to any of interface that Ganji knows, the interface includes such as E 1/T1, ATM,
IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that as shown in Figure 2 system can include it is multiple
BSC2750。
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion of line covering is radially away from BS 270.Or each subregion can by two for diversity reception or more
Multiple antennas covers.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency
Compose (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 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 representing single BSC
275 and at least one BS 270.Base station can also be referred to as " cellular station ".Or specific BS270 each subregion can be referred to as
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 BT 295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals
It is at least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning
Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100
Road signal.Mobile terminal 100 generally participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives each
Reverse link signal is handled in specific BS 270.The data of acquisition are forwarded to the BSC 275 of correlation.BSC is provided
Resource allocation of conversing and the mobile management function of the coordination including the soft switching process between BS 270.BSC 275 will also be received
To data be routed to MSC280, its provide for PSTN 290 formed interface extra route service.Similarly,
PSTN290 and MSC 280 form interface, and MSC and BSC 275 forms interface, and BSC 275 correspondingly control BS270 with by
Forward link signals are sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each of audio frequency playing method and device of the present invention is proposed
Individual embodiment.
As shown in Figure 3, it is proposed that a kind of first embodiment of audio frequency playing method of the present invention, the audio that the present embodiment provides
Player method comprises the following steps:
Step S10, detect and whether there is touch operation on preset music picture;The music picture includes note information
With pronunciation length information;
The audio frequency playing method that the present embodiment provides is mainly used in the control that mobile terminal plays to audio.Above-mentioned music
Picture is the pictures being made up of multiple color bars, can be shown in the respective interface of mobile terminal, such as can be with square
The form of shape release bar is shown in the unlock interface of mobile terminal, can also be shown in mobile terminal making virtual business cards and
On virtual greeting card, it can also be shown in audio player singer's album picture.The form being particularly shown and position are not done herein
Further limit.The form of above-mentioned touch operation can be a variety of, such as can be slide or clicking operation.
Step S20, when detect touch operation be present on preset music picture when, parse the music picture and obtain pair
The note information and pronunciation length information answered;
It whether there is touch operation on the music picture that mobile terminal is implemented to show in detecting current interface, touched when existing
During operation, parsing is obtained into corresponding note information and pronunciation length information on music picture.Wherein note information includes note
The information such as code, scale, tone loudness, dynamics, pronunciation length information are the time that each note code pronounces when playing.
Step S30, audio broadcasting is carried out according to the note information and pronunciation length information.
It should be noted that carrying out the mode of audio broadcasting can be configured according to being actually needed, in the present embodiment not
It is further to be limited, audio broadcasting can be carried out when touch operation is completed, audio can also be carried out during touch
Play (when touching some ad-hoc location, playing the note information of the position correspondence).Such as, a music picture includes 4 to row
Color bar, each of which color bar represent a note information and a pronunciation length information.A kind of broadcast mode is:Work as user
Finger carries out touch operation in color bar, and after the completion of touch operation, can be according to the order that color bar arranges according to corresponding
Pronunciation length information plays 4 note informations successively.Another broadcast mode is, when user's finger touches a certain color bar
When, it will be played out according to note information corresponding to the color bar and pronunciation length information, if the process played in note information
In change the color bar of touch, then the note information of a color bar can be waited to play next color bar again after finishing playing
Corresponding note information.
The embodiment of the present invention is by the way that note information and pronunciation length information are associated with music picture, so as to by music
Picture is as on each UI interfaces of mobile terminal, when user carries out touch operation to the music picture, it is possible to achieve audio is broadcast
Put;It is achieved thereby that the interactive function that touch operation plays with audio, improves the flexibility of audio broadcasting.
Further, reference picture 4, based on above-described embodiment, the audio frequency playing method that the present embodiment provides is in above-mentioned steps
Also include before S10:
Step S40, when receiving the generation request of music picture, will currently it be selected according to music picture generation request
Song information is sent to server;
Step S50, the reception server MIDI music datas according to corresponding to the song information are generated for forming music
The characteristic of picture;
Step S60, music picture is generated according to the characteristic.
In the present embodiment, above-mentioned song information can be the title of the song of song or the ID values (beacon information) of song.Above-mentioned spy
Levy the attribute information that data are music picture, such as can be with the width of each color bar in music picture, length, color, transparent
Degree etc. characteristic information.Illustrated in the present embodiment by taking the length and color of color bar as an example, specifically, the length of color bar
Corresponding with pronunciation length, color bar color and note information are corresponding.Specifically, known MIDI note coding tables can be used
Selections, wherein note code, scale, tone it will can become unique double byte WORD values, and ARGB is nybble position DWORD
Value, the space encoder of color are much larger than note coding space, can be evenly distributed to according to the code combination data of note
ARGB space encoder, a note coding can correspond to one section of color, and the length of a note can be by representing the note
Color bar length represents.
When stating function in realization, context menu " generation sound can be increased in existing music player list of songs
Happy picture ", when user clicks on the song in list of songs, ejection is up and down menu;Then " generation music picture " choosing is clicked on
Xiang Shi, by generation music picture generation request, the song ID that will currently be selected then according to generation music picture generation request
Server is issued by network, after server receives song ID, searches for the MIDI minors pleasure matched with the song, such as the song
Song is griggles, then obtains " you are my small griggles " about five seconds MIDI music datas, and the MIDI music datas include
Multiple note informations and corresponding pronunciation length information.The MIDI music datas of five seconds of this in this implementation include:The note of " you "
Information and pronunciation length information, the note information of "Yes" and pronunciation length information, the note information of " I " and pronunciation length information,
" " note information and pronunciation length information, the note information of " small " and pronunciation length information, the note information and hair of " "
Sound length information, the note information of " small " and pronunciation length information, the note information of " apple " and pronunciation length information and " fruit "
Note information and pronunciation length information.Server is according to note information and the corresponding relation and pronunciation length information of color
With the corresponding relation of length, note information corresponding to each character and pronunciation length information are converted into the feature of music picture
Data, and this feature data are sent to mobile terminal, this feature data are received by mobile terminal, and according to this feature data shape
Into corresponding music picture, it is shown on the preset position of music player interface.
Further, reference picture 5, based on above-described embodiment, in the present embodiment, also include after above-mentioned steps S60:
Step S70, when receiving music picture and sharing request, the music picture is shown in preset position.
In the present embodiment, user input music picture share request mode can according to being actually needed capable setting, such as
The present embodiment can be by the way of the input of long-press music picture.Specifically, as user on the interface of music player long-press
During above-mentioned music picture, generation music picture is shared into request, mobile terminal will share request by music according to the music picture
Picture is placed with unlocking screen, is placed with desktop, is placed with multimedia message, is placed with the positions such as QQ message, so that user is touched
Play., can due to music picture can be placed in various applications, therefore when performing the application function in the present embodiment
To realize music, so as to abundant Consumer's Experience, realize that individualized music is set.Such as unlocked music picture as slip
Unlocking screen bar, then slide unlock during can play corresponding music, with complete unlock during appreciate
To beautiful music.
Further, reference picture 6, based on above-described embodiment, in the present embodiment, above-mentioned music picture includes multiple colors
Bar, the color of the color bar correspond to the note information, and the length value of the color bar corresponds to the pronunciation length information;
The above-mentioned steps S20 includes:
Step S21, determine the color and length value of color bar in the music picture;
Step S22, the note information according to corresponding to obtaining the color of the color bar, obtain according to the length value
Length information.
In the present embodiment, the note information obtained and pronunciation length information are parsed also not according to the mode for touching broadcasting is different
Together.For example, when music picture is touched, all note informations included on whole music picture can be parsed and pronunciation is grown
Spend information;The note information of color bar corresponding to user's current touch location and pronunciation length information can also only be parsed.
It should be noted that above-mentioned touch operation includes slide and clicking operation;When for clicking operation when, can solve
All note informations included on whole music picture and pronunciation length information are analysed, is then played out;Can also only it parse
The note information and pronunciation length information for the color bar that user currently clicks on, are then played out.
When the touch operation is slide, the color and length value bag of color bar in the music picture are determined
Include:
Obtain the color bar that sliding trace is passed through in the music picture and the speed slided;
Determine the color and length value for all color bars that the sliding trace passes through;
Described played according to note information and pronunciation length information progress audio includes:According to the note information, pronunciation
Length information and sliding speed carry out audio broadcasting.
In the present embodiment, user touches the color that position is located on music picture when sliding music picture, according to user's finger
Colour bar position, so can be with the slip of user so as to calculate the position of audio broadcasting, can be with dynamic control music
Speed and progress.
It should be noted that the shape of above-mentioned color bar can be configured according to being actually needed, for example, can be rectangle,
Sector etc..The music picture being made up of color bar can be strip, sector and circle etc..
In addition, the present invention also provides a kind of audio playing apparatus, reference picture 7, audio playing apparatus bag provided by the invention
Include:
Detecting module 10, it whether there is touch operation on preset music picture for detecting;The music picture includes
Note information and pronunciation length information;
The audio playing apparatus that the present embodiment provides is mainly used in the control that mobile terminal plays to audio.Above-mentioned music
Picture is the pictures being made up of multiple color bars, can be shown in the respective interface of mobile terminal, such as can be with square
The form of shape release bar is shown in the unlock interface of mobile terminal, can also be shown in mobile terminal making virtual business cards and
On virtual greeting card, it can also be shown in audio player singer's album picture.The form being particularly shown and position are not done herein
Further limit.The form of above-mentioned touch operation can be a variety of, such as can be slide or clicking operation.
Parsing module 20, for when detect touch operation be present on preset music picture when, parse the music figure
Note information and pronunciation length information corresponding to piece acquisition;
It whether there is touch operation on the music picture that detecting module 10 is implemented to show in detecting current interface, touched when existing
When touching operation, parsing is obtained into corresponding note information and pronunciation length information on music picture.Wherein note information includes sound
Accord with code, scale, tone loudness, the information such as dynamics, pronunciation length information be each note code pronounce when playing when
Between.
Playing module 30, for carrying out audio broadcasting according to the note information and pronunciation length information.
It should be noted that carrying out the mode of audio broadcasting can be configured according to being actually needed, in the present embodiment not
It is further to be limited, audio broadcasting can be carried out when touch operation is completed, audio can also be carried out during touch
Play (when touching some ad-hoc location, playing the note information of the position correspondence).Such as, a music picture includes 4 to row
Color bar, each of which color bar represent a note information and a pronunciation length information.A kind of broadcast mode is:Work as user
Finger carries out touch operation in color bar, and after the completion of touch operation, can be according to the order that color bar arranges according to corresponding
Pronunciation length information plays 4 note informations successively.Another broadcast mode is, when user's finger touches a certain color bar
When, it will be played out according to note information corresponding to the color bar and pronunciation length information, if the process played in note information
In change the color bar of touch, then the note information of a color bar can be waited to play next color bar again after finishing playing
Corresponding note information.
The embodiment of the present invention is by the way that note information and pronunciation length information are associated with music picture, so as to by music
Picture is as on each UI interfaces of mobile terminal, when user carries out touch operation to the music picture, it is possible to achieve audio is broadcast
Put;It is achieved thereby that the interactive function that touch operation plays with audio, improves the flexibility of audio broadcasting.
Further, reference picture 8, based on above-described embodiment, the audio playing apparatus that the present embodiment provides also includes:
Sending module 40, when being asked for receiving the generation of music picture, generating request according to the music picture ought
The song information of preceding selection is sent to server;
Receiving module 50, for the reception server, the MIDI music datas according to corresponding to the song information are generated for shape
Into the characteristic of music picture;
Image generating module 60, for generating music picture according to the characteristic.
In the present embodiment, above-mentioned song information can be the title of the song of song or the ID values (beacon information) of song.Above-mentioned spy
Levy the attribute information that data are music picture, such as can be with the width of each color bar in music picture, length, color, transparent
Degree etc. characteristic information.Illustrated in the present embodiment by taking the length and color of color bar as an example, specifically, the length of color bar
Corresponding with pronunciation length, color bar color and note information are corresponding.Specifically, known MIDI note coding tables can be used
Selections, wherein note code, scale, tone it will can become unique double byte WORD values, and ARGB is nybble position DWORD
Value, the space encoder of color are much larger than note coding space, can be evenly distributed to according to the code combination data of note
ARGB space encoder, a note coding can correspond to one section of color, and the length of a note can be by representing the note
Color bar length represents.
When stating function in realization, context menu " generation sound can be increased in existing music player list of songs
Happy picture ", when user clicks on the song in list of songs, ejection is up and down menu;Then " generation music picture " choosing is clicked on
Xiang Shi, by generation music picture generation request, the song ID that will currently be selected then according to generation music picture generation request
Server is issued by network, after server receives song ID, searches for the MIDI minors pleasure matched with the song, such as the song
Song is griggles, then obtains " you are my small griggles " about five seconds MIDI music datas, and the MIDI music datas include
Multiple note informations and corresponding pronunciation length information.The MIDI music datas of five seconds of this in this implementation include:The note of " you "
Information and pronunciation length information, the note information of "Yes" and pronunciation length information, the note information of " I " and pronunciation length information,
" " note information and pronunciation length information, the note information of " small " and pronunciation length information, the note information and hair of " "
Sound length information, the note information of " small " and pronunciation length information, the note information of " apple " and pronunciation length information and " fruit "
Note information and pronunciation length information.Server is according to note information and the corresponding relation and pronunciation length information of color
With the corresponding relation of length, note information corresponding to each character and pronunciation length information are converted into the feature of music picture
Data, and this feature data are sent to mobile terminal, this feature data are received by mobile terminal, and according to this feature data shape
Into corresponding music picture, it is shown on the preset position of music player interface.
Further, reference picture 9, based on above-described embodiment, in the present embodiment, above-mentioned audio playing apparatus also includes:
Processing module 70, when sharing request for receiving music picture, the music picture is shown in preset position.
In the present embodiment, user input music picture share request mode can according to being actually needed capable setting, such as
The present embodiment can be by the way of the input of long-press music picture.Specifically, as user on the interface of music player long-press
During above-mentioned music picture, generation music picture is shared into request, mobile terminal will share request by music according to the music picture
Picture is placed with unlocking screen, is placed with desktop, is placed with multimedia message, is placed with the positions such as QQ message, so that user is touched
Play., can due to music picture can be placed in various applications, therefore when performing the application function in the present embodiment
To realize music, so as to abundant Consumer's Experience, realize that individualized music is set.Such as unlocked music picture as slip
Unlocking screen bar, then slide unlock during can play corresponding music, with complete unlock during appreciate
To beautiful music.
Further, reference picture 10, based on above-described embodiment, in the present embodiment, above-mentioned music picture includes multiple colors
Bar, the color of the color bar correspond to the note information, and the length value of the color bar corresponds to the pronunciation length information;
The parsing module 20 includes:
Determining unit 21, for determining the color and length value of color bar in the music picture;
Acquiring unit 22, for the note information according to corresponding to the acquisition of the color of the color bar, according to the length value
Obtain pronunciation length information.
In the present embodiment, the note information obtained and pronunciation length information are parsed also not according to the mode for touching broadcasting is different
Together.For example, when music picture is touched, all note informations included on whole music picture can be parsed and pronunciation is grown
Spend information;The note information of color bar corresponding to user's current touch location and pronunciation length information can also only be parsed.
It should be noted that above-mentioned touch operation includes slide and clicking operation;When for clicking operation when, can solve
All note informations included on whole music picture and pronunciation length information are analysed, is then played out;Can also only it parse
The note information and pronunciation length information for the color bar that user currently clicks on, are then played out.
When the touch operation is slide, above-mentioned determining unit 21 is specifically used for, and obtains sliding trace described
The color bar passed through in music picture and the speed slided;Determine all color bars that the sliding trace passes through color and
Length value;
The playing module 30 is specifically used for, and sound is carried out according to the note information, pronunciation length information and sliding speed
Frequency plays.
In the present embodiment, user touches the color that position is located on music picture when sliding music picture, according to user's finger
Colour bar position, so can be with the slip of user so as to calculate the position of audio broadcasting, can be with dynamic control music
Speed and progress.
It should be noted that the shape of above-mentioned color bar can be configured according to being actually needed, for example, can be rectangle,
Sector etc..The music picture being made up of color bar can be strip, sector and circle etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of audio frequency playing method, it is characterised in that the audio frequency playing method comprises the following steps:
When receiving the generation request of music picture, the song information currently selected is sent according to music picture generation request
To server;
The reception server MIDI music datas according to corresponding to the song information generate the characteristic for forming music picture
According to;
Music picture is generated according to the characteristic;
Detect and whether there is touch operation on preset music picture;The music picture includes note information and pronunciation length is believed
Breath;
When detect touch operation be present on preset music picture when, parse the music picture obtain corresponding to note information
With pronunciation length information;
Audio broadcasting is carried out according to the note information and pronunciation length information.
2. audio frequency playing method as claimed in claim 1, it is characterised in that it is described according to characteristic generate music picture it
Also include afterwards:
When receiving music picture and sharing request, the music picture is shown in preset position.
3. audio frequency playing method as claimed in claim 1, it is characterised in that the music picture includes multiple color bars, institute
The color for stating color bar corresponds to the note information, and the length value of the color bar corresponds to the pronunciation length information;
Note information and pronunciation length information include corresponding to the parsing music picture acquisition:
Determine the color and length value of color bar in the music picture;
The note information according to corresponding to obtaining the color of the color bar, pronunciation length information is obtained according to the length value.
4. audio frequency playing method as claimed in claim 3, it is characterised in that the touch operation includes slide and click
Operation;
When the touch operation is slide, determine that the color of color bar and length value include in the music picture:
Obtain the color bar that sliding trace is passed through in the music picture and the speed slided;
Determine the color and length value for all color bars that the sliding trace passes through;
Described played according to note information and pronunciation length information progress audio includes:According to the note information, pronunciation length
Information and sliding speed carry out audio broadcasting.
5. a kind of audio playing apparatus, it is characterised in that the audio playing apparatus includes:
Sending module, when being asked for receiving the generation of music picture, generating request according to the music picture will currently select
Song information send to server;
Receiving module, for the reception server, the MIDI music datas according to corresponding to the song information are generated for forming music
The characteristic of picture;
Image generating module, for generating music picture according to the characteristic;
Detecting module, it whether there is touch operation on preset music picture for detecting;The music picture is believed comprising note
Breath and pronunciation length information;
Parsing module, for when detect touch operation be present on preset music picture when, parse the music picture and obtain
Corresponding note information and pronunciation length information;
Playing module, for carrying out audio broadcasting according to the note information and pronunciation length information.
6. audio playing apparatus as claimed in claim 5, it is characterised in that the audio playing apparatus also includes:
Processing module, when sharing request for receiving music picture, the music picture is shown in preset position.
7. audio playing apparatus as claimed in claim 5, it is characterised in that the music picture includes multiple color bars, institute
The color for stating color bar corresponds to the note information, and the length value of the color bar corresponds to the pronunciation length information;
The parsing module includes:
Determining unit, for determining the color and length value of color bar in the music picture;
Acquiring unit, for the note information according to corresponding to the acquisition of the color of the color bar, obtained and sent out according to the length value
Sound length information.
8. audio playing apparatus as claimed in claim 7, it is characterised in that the touch operation includes slide and click
Operation;
When the touch operation is slide, the determining unit is specifically used for, and obtains sliding trace in the music figure
The color bar passed through in piece and the speed slided;Determine the color and length for all color bars that the sliding trace passes through
Value;
The playing module is specifically used for, and audio broadcasting is carried out according to the note information, pronunciation length information and sliding speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149509.7A CN104731508B (en) | 2015-03-31 | 2015-03-31 | Audio frequency playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510149509.7A CN104731508B (en) | 2015-03-31 | 2015-03-31 | Audio frequency playing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104731508A CN104731508A (en) | 2015-06-24 |
CN104731508B true CN104731508B (en) | 2017-12-22 |
Family
ID=53455445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510149509.7A Active CN104731508B (en) | 2015-03-31 | 2015-03-31 | Audio frequency playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104731508B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201456A (en) * | 2016-06-23 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of music display packing and media player |
CN107454506A (en) * | 2017-07-26 | 2017-12-08 | 苏飞 | Audio playing apparatus, system and system building method |
CN107767851B (en) * | 2017-11-08 | 2020-02-14 | 维沃移动通信有限公司 | Song playing method and mobile terminal |
CN108632718B (en) * | 2018-04-11 | 2021-09-21 | 维沃移动通信有限公司 | Audio sharing method and system |
CN113641851A (en) * | 2021-08-11 | 2021-11-12 | 乐聚(深圳)机器人技术有限公司 | Music score previewing method and device, terminal equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862656A (en) * | 2005-05-13 | 2006-11-15 | 杭州波导软件有限公司 | Method for converting musci score to music output and apparatus thereof |
US7608775B1 (en) * | 2005-01-07 | 2009-10-27 | Apple Inc. | Methods and systems for providing musical interfaces |
CN103594075A (en) * | 2012-08-14 | 2014-02-19 | 雅马哈株式会社 | Music information display control method and music information display control apparatus |
CN104156371A (en) * | 2013-05-15 | 2014-11-19 | 好看科技(深圳)有限公司 | Method and device for browsing images with hue changing along with musical scales |
-
2015
- 2015-03-31 CN CN201510149509.7A patent/CN104731508B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7608775B1 (en) * | 2005-01-07 | 2009-10-27 | Apple Inc. | Methods and systems for providing musical interfaces |
CN1862656A (en) * | 2005-05-13 | 2006-11-15 | 杭州波导软件有限公司 | Method for converting musci score to music output and apparatus thereof |
CN103594075A (en) * | 2012-08-14 | 2014-02-19 | 雅马哈株式会社 | Music information display control method and music information display control apparatus |
CN104156371A (en) * | 2013-05-15 | 2014-11-19 | 好看科技(深圳)有限公司 | Method and device for browsing images with hue changing along with musical scales |
Also Published As
Publication number | Publication date |
---|---|
CN104731508A (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105100892B (en) | Video play device and method | |
CN104866265B (en) | Multi-media file display method and device | |
CN104731512B (en) | The method, apparatus and terminal that picture is shared | |
CN106990828A (en) | A kind of apparatus and method for controlling screen display | |
CN106453538A (en) | Screen sharing apparatus and method | |
CN104731508B (en) | Audio frequency playing method and device | |
CN106990889A (en) | A kind of prompt operation implementation method and device | |
CN106911850A (en) | Mobile terminal and its screenshotss method | |
CN106157970A (en) | A kind of audio identification methods and terminal | |
CN104731456B (en) | Desktop widget display methods and device | |
CN106101455A (en) | Page jump management method, device and terminal | |
CN106873936A (en) | Electronic equipment and information processing method | |
CN106909681A (en) | A kind of information processing method and its device | |
CN106534500A (en) | Customization service system and method based on figure attributes | |
CN109033263A (en) | A kind of application recommended method and terminal | |
CN105183830B (en) | picture browsing method and device | |
CN106793159A (en) | A kind of screen prjection method and mobile terminal | |
CN104810033B (en) | Audio frequency playing method and device | |
CN106657579A (en) | Content sharing method, device and terminal | |
CN106873887A (en) | It is a kind of that the system and method for application function is controlled based on gesture | |
CN106130981A (en) | The self-defined device and method of digital label of augmented reality equipment | |
CN106128470A (en) | The device and method of display audible spectrum | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN107426282A (en) | A kind of picture loading method, terminal and server | |
CN104915230B (en) | application control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |