CN103530426A - Music search method, music search device and terminal equipment - Google Patents

Music search method, music search device and terminal equipment Download PDF

Info

Publication number
CN103530426A
CN103530426A CN201310535155.0A CN201310535155A CN103530426A CN 103530426 A CN103530426 A CN 103530426A CN 201310535155 A CN201310535155 A CN 201310535155A CN 103530426 A CN103530426 A CN 103530426A
Authority
CN
China
Prior art keywords
music
information
stored
searched
whipping
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.)
Pending
Application number
CN201310535155.0A
Other languages
Chinese (zh)
Inventor
成利君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201310535155.0A priority Critical patent/CN103530426A/en
Publication of CN103530426A publication Critical patent/CN103530426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • G06F16/636Filtering based on additional data, e.g. user or group profiles by using biological or physiological data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Biomedical Technology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Physiology (AREA)
  • Electrophonic Musical Instruments (AREA)
  • Auxiliary Devices For Music (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An embodiment of the invention discloses a music search method, a music search device and terminal equipment. The music search method includes the steps: acquiring a swing path, swing speed and swing time of the terminal equipment and converting the swing path, the swing speed and the swing time into music information including rhythm information and/or tone information of music to be searched; calculating similarity of the music information of the music to be searched and music information including rhythm information, tone information and/or attribute information of pre-stored music; sequentially arranging and displaying the pre-stored music and the corresponding attribute information according to the similarity value of the music information of the music to be searched and the music information of the pre-stored music. By implementing the music search method, music search difficulty can be reduced, a user conveniently searches the music, and user experience is improved.

Description

A kind of method for searching music, device and terminal device
Technical field
The present invention relates to areas of information technology, be specifically related to a kind of method for searching music and device, terminal device.
Background technology
Terminal device (Terminal Equipment, TE) is requisite electronic product in daily life, and along with the development of electronic technology, the function of TE is also being enriched constantly, as music searching.Music searching is one of the most basic function of TE, and TE carries out music searching and mainly contains two kinds of modes: wherein, mode one is: text search, with text messages such as the title of song, introduction, the lyrics, labels, as key word, search for; Mode two is: the characteristic information of the characteristic information of snatch of music frequency spectrum and music libraries intermediate frequency spectrum is carried out to match search.
In mode one, because user is that the text messages such as title by song, introduction, the lyrics, label are searched for as key word, but user usually forgets the title, the lyrics of song etc. when search music, thereby causes music searching difficulty to increase.In aforesaid way two, need to search for corresponding snatch of music with the frequency spectrum of snatch of music, but because user does not generally have ready-made music, be difficult to obtain the frequency spectrum of snatch of music, thereby make music searching difficulty high.
Summary of the invention
The invention discloses a kind of method for searching music, device and terminal device, for reducing music searching difficulty, facilitate user search music, promote user and experience.
The application's first aspect provides a kind of method for searching music, comprising:
Whipping path, speed and the time of acquisition terminal equipment, and described whipping path, speed and time are converted to the music information of music to be searched, the music information of described music to be searched comprises cadence information and/or the tone information of described music to be searched;
Determine the similarity between the music information of described music to be searched and the music information of pre-stored music, the music information of described pre-stored music comprises cadence information, tone information and/or the attribute information of described pre-stored music;
According to the similarity between the music information of described music to be searched and the music information of described pre-stored music, described pre-stored music and corresponding attribute information are arranged and shown.
The application's second aspect provides a kind of music searching device, comprising:
Collect conversion module, for whipping path, speed and the time of acquisition terminal equipment, and described whipping path, speed and time being converted to the music information of music to be searched, the music information of described music to be searched comprises cadence information and/or the tone information of described music to be searched;
Determination module, for determining the similarity between the music information of described music to be searched and the music information of pre-stored music, the music information of described pre-stored music comprises cadence information, tone information and/or the attribute information of described pre-stored music;
Arrange display module, for according to the similarity between the music information of described music to be searched and the music information of described pre-stored music, described pre-stored music and corresponding attribute information are arranged and shown.
The application's third aspect provides a kind of terminal device, described terminal device comprises the music searching device that display screen and the application's second aspect provide, wherein, described display screen is connected with described music searching device, for showing the music of described music searching device search and corresponding attribute information.
In the embodiment of the present invention, whipping path, speed and the time of acquisition terminal equipment, whipping path, speed and the time of terminal device are converted to the music information of music to be searched, and the similarity between definite music information of music to be searched and the music information of pre-stored music, and according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and shown.Visible, a kind of music searching mechanism disclosed by the invention, can reduce music searching difficulty, facilitates user search music, promotes user and experiences.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the disclosed a kind of method for searching music of the embodiment of the present invention;
The process flow diagram of the disclosed another kind of method for searching music of Fig. 2 embodiment of the present invention;
Fig. 3 is the structural drawing of the disclosed a kind of music searching device of the embodiment of the present invention;
Fig. 4 is the structural drawing of the disclosed a kind of terminal device of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method for searching music, device and terminal device, a kind of music searching mechanism is provided, can reduce music searching difficulty.Below be elaborated respectively.
Refer to Fig. 1, Fig. 1 is the process flow diagram of the disclosed a kind of method for searching music of the embodiment of the present invention.Wherein, the method for searching music shown in Fig. 1 is applicable to have the mobile terminal equipments such as mobile phone, panel computer that gather whipping path, speed and time quantum, and the embodiment of the present invention is not construed as limiting.As shown in Figure 1, this method for searching music can comprise the following steps.
Whipping path, speed and the time of S100, acquisition terminal equipment, and whipping path, speed and time are converted to the music information of music to be searched.
In the embodiment of the present invention, whipping path, speed and the time of terminal device acquisition terminal equipment, and whipping path, speed and time are converted to the music information of music to be searched.
In the embodiment of the present invention, when the music information of music to be searched comprises the cadence information of music to be searched and tone information, terminal device can adopt following steps to come whipping path, speed and the time of acquisition terminal equipment, and whipping path, speed and time are converted to the music information of music to be searched, specifically comprise the steps:
Whipping path, speed and the time of S101, acquisition terminal equipment.
In the embodiment of the present invention, user wishes that terminal device can search corresponding music according to the whipping of its hand, and therefore, first terminal device must possess acquisition function, can collect whipping path, speed and the time of terminal device.Wherein, whipping path can be default whipping direction or default whipping track, and speed can be acceleration, specifically can use whipping direction and the acceleration of Gravity accelerometer acquisition terminal equipment.Wherein, the time can obtain with the device of acquisition time.
S102, according to whipping path and time, terminal device is converted to cadence information along time interval of whipping path whipping.
In the embodiment of the present invention, the whipping of user's hand is regular, according to user's hand whipping path and time, terminal device is converted to cadence information along time interval of whipping path whipping.For instance, suppose that user beats beat by upper and lower action, all repeating upper and lower action at every turn, but each upper and lower process the path of process and asynchronism(-nization) used, each upper and lower action is converted to cadence information to the upper and lower action time interval used of the next one.
S103, according to whipping path, time and speed, terminal device is converted to tone information along the amplitude of whipping path whipping.
In the embodiment of the present invention, the whipping of user's hand is regular, according to whipping path, time and speed, terminal device is converted to tone information along the amplitude of whipping path whipping.For instance, suppose that user beats beat by upper and lower action, all repeating upper and lower action at every turn, but each upper and lower process path, time used and the speed of process be all different, and that action the most important thing is down while beating beat, according to the path of going down, time and speed at every turn, obtain the amplitude that this action produces, the amplitude that this action is produced is cadence information.
In the embodiment of the present invention, S102 and S103 can be as required, individualism or simultaneously existence.
S104, the cadence information of conversion and/or tone information are stored as to the music information of music to be searched.
In the embodiment of the present invention, the cadence information that terminal device Collect conversion is obtained and/or tone information are stored as the music information of music to be searched, while carrying out music searching so that follow-up, as information to be searched, call.
Similarity between the music information of S200, the music information of determining music to be searched and pre-stored music, the music information of this pre-stored music comprises cadence information, tone information and/or the attribute information of pre-stored music.
In the embodiment of the present invention, terminal device is determined the similarity between the music information of music to be searched and the music information of pre-stored music.
In the embodiment of the present invention, when the music information of music to be searched comprises the cadence information of music to be searched and tone information, terminal device can adopt following steps to determine the similarity between the music information of music to be searched and the music information of pre-stored music, that is:
S201, the cadence information of obtaining arbitrary Qu Yinle from pre-stored music and tone information.
In the embodiment of the present invention, need to from pre-stored music, obtain cadence information and the tone information of a bent music, to carry out respectively similarity calculating with cadence information and the tone information of music to be searched, wherein, the music information of music to be searched is the music information of a certain section of music in a bent music, and the music information that music information in pre-stored music is whole Qu Yinle, when calculating similarity, is to carry out similarity calculating with the music information of this section of music and the music information of whole Qu Yinle.
S202, determine music to be searched and obtain the similarity of the cadence information between music, and music to be searched and obtain the similarity of the tone information between music.
In the embodiment of the present invention, for instance, the music information of the music to be searched that terminal device gathers can be as shown in table 1, that is:
The music information of table 1 music to be searched
300,50 350,56 255,57 400,40 200,20 200,24 200,23 200,22
Wherein, one group of cadence information and tone information of gathering are shown in each list, and in the time interval that first data are rhythm, second data is tone.
In the embodiment of the present invention, for instance, the cadence information of pre-stored music and tone information can be as shown in table 2, that is:
Cadence information and the tone information of table 2 pre-stored music
Music numbering Rhythm, tone
1 (300,50),(350,60),(255,57)…
2 (310,60),(310,60),(200,70)…
In the embodiment of the present invention, calculate music to be searched as follows with the method for similarity of obtaining music:
Cadence information shown in the table 1 that terminal device whipping is produced and the data of tone information are designated as D g, cadence information and tone information shown in the table 2 obtaining from pre-stored music are designated as to D m.The music information producing due to terminal device whipping may not be that to take the top of music rhythm of pre-stored music be starting point, may be just from the some section of beginning wherein of the music rhythm of pre-stored music, so from D mtop get successively and D gone section of isometric D micarry out similarity calculating.Wherein:
D g={(r g1,t g1),(r g2,t g2),(r g3,t g3)……(r gn,t gn)}
D mi={(r m(i+1),t m(i+1)),(r m(i+2),t m(i+2)),(r m(i+3),t m(i+3))……(r m(i+n),t m(i+n))}
Wherein, D micomprise D min i+1 cadence information and tone information to D min i+n cadence information and the sub-information of tone information, wherein i is more than or equal to 0 positive integer, n represents cadence information that terminal device whipping produces and the number of tone information, it is to be more than or equal to 1 positive integer.R gcadence information, t for the generation of terminal device whipping gtone information for the generation of terminal device whipping; r mcadence information, t for pre-stored music mtone information for pre-stored music.
Music to be searched and the distance d obtaining between the cadence information of music are as follows:
d=∑ k((r gk-r m(i+k)) 2)
Wherein, k is more than or equal to 1 and be less than or equal to the positive integer of n.
Music to be searched and the similarity S that obtains the cadence information of music dfor:
S d=1/(1+d)
The cadence information obtaining due to the whipping by terminal device is to obtain according to the theme of music, and the thematic cadence information gathering from music is not necessarily accurate, therefore, should comprise fault-tolerant processing.Its concrete grammar is: a distance M between maximum cadence information is set, as abs ((r gk-r mk))>during M, think that this rhythm cannot embody the theme of music to be searched, skip this section is played the similarity of the tone that rhythm is corresponding therewith and is calculated, and wherein, abs () takes absolute value.
In addition, because distance proportion between two tones may be different, therefore, each tone is divided by, and the intensity of variation of trying to achieve tone by differential quadratic sum to be to obtain the distance t of two groups of tone informations, and formula is as follows:
t=∑ k(((t g(k+1)/t m(i+k+1))-(t gk/t m(i+k))) 2)
Music to be searched and the similarity S that obtains the tone information of music tfor:
S t=1/(1+t)
S203, according to the similarity of the similarity of cadence information and tone information, determine music to be searched and obtain the similarity between music.
In the embodiment of the present invention, the similarity S of music to be searched and pre-stored music is with the similarity S of cadence information dsimilarity S with tone information trelevant, can be they two and, that is:
S=S d+S t
Also can be their square root sum squares,
S=(S d 2+S t 2) 1/2
In addition, the more than above-mentioned two kinds of acquisition patterns of the similarity S of music to be searched and pre-stored music, as long as can enough appropriate data processing methods use the similarity S of music to be searched and pre-stored music the similarity S of cadence information dsimilarity S with tone information tshow.
The threshold threshold S of a similarity degree is set minif S is less than S minthink that coupling is unsuccessful, continue to take off one section of D m( i+1) carry out similarity calculating, until S is greater than S minor mate successively D mfinish, coupling finishes S and is not still greater than S min, think that it fails to match and set S=0 with current pre-stored music.
In the embodiment of the present invention, after having determined the similarity S of a bent pre-stored music and music to be searched, also need to judge whether this song pre-stored music is last Qu Yinle in pre-stored music, if, carry out S300, if not, carry out S201, from pre-stored music, obtain next Qu Yinle.
S300, according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and are shown.
In the embodiment of the present invention, terminal device, according to the similarity between the music information of music to be searched and the music information of pre-stored music, is arranged pre-stored music and corresponding attribute information show.
In the embodiment of the present invention, when the music information of music to be searched comprises the cadence information of music to be searched and tone information, terminal device can adopt S301~S303 that pre-stored music and corresponding attribute information are arranged and shown, that is:
S301, the numbering of pre-stored music is arranged according to music to be searched and the similarity obtained between music.
In the embodiment of the present invention, obtain music and be pre-stored music, due to numbering corresponding to the music information of different pre-stored music, after obtaining the similarity value of the music information of music to be searched and the music information of pre-stored music, the numbering of pre-stored music is arranged successively according to music to be searched and the similarity value of obtaining music.Arrangement herein can be descending sort, and the pre-stored music that similarity value is the highest is placed on foremost, and because similarity value is higher, the probability mating with music to be searched is larger.
S302, according to the numbering of pre-stored music, from pre-stored music, obtain corresponding music and attribute information.
In the embodiment of the present invention, the numbering of the music information of the numbering of pre-stored music and pre-stored music is one to one, therefore, can from pre-stored music, obtain according to the numbering of pre-stored music corresponding music and attribute information.
S303, the corresponding music of obtaining and attribute information are arranged and shown by putting in order of reference numeral.
In the embodiment of the present invention, the corresponding music of obtaining and attribute information are arranged and are presented on display screen by putting in order of reference numeral, be convenient to user and check.
In the embodiment of the present invention, the music information of music to be searched can be cadence information, can be also tone information, can also be cadence information and tone information.But when separately the music information using cadence information or tone information as music to be searched carries out music searching, degree of accuracy when the music information using cadence information and tone information as music to be searched does not carry out music searching is high.
In the method shown in Fig. 1, whipping path, speed and the time of terminal device acquisition terminal equipment, whipping path, speed and the time of terminal device are converted to the music information of music to be searched, and the similarity between definite music information of music to be searched and the music information of pre-stored music, and according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and shown.Visible, the method shown in Fig. 1 discloses a kind of music searching mechanism, can reduce music searching difficulty, facilitates user search music, promotes user and experiences.
Refer to Fig. 2, Fig. 2 is the process flow diagram of the disclosed another kind of method for searching music of the embodiment of the present invention.Wherein, the method for searching music shown in Fig. 2 is applicable to have the mobile terminal equipments such as mobile phone, panel computer that gather whipping path, speed and time quantum, and the embodiment of the present invention is not construed as limiting.As shown in Figure 2, this method for searching music can comprise the following steps.
S401, terminal device storage pre-stored music, and be pre-stored music distribution numbering.
In the embodiment of the present invention, in advance pre-stored music, and the numbering that be pre-stored music distribution, therefore, the corresponding specifically music of specific numbering.
S402, terminal device gather the music information of pre-stored music, and make the music information of pre-stored music and the numbering of pre-stored music corresponding one by one.
In the embodiment of the present invention, in order to search for music, need to gather the music information of pre-stored music, to carry out similarity calculating with the music information of music to be searched, because pre-stored music has specific numbering, therefore, the music information of the pre-stored music of collection also has specific numbering, and corresponding one by one with the numbering of pre-stored music.
The music information of S403, terminal device storage pre-stored music and the numbering of its correspondence.
In the embodiment of the present invention, the music information of pre-stored music stores two tables, wherein, a table stores cadence information and the tone information of pre-stored music, can be as shown in table 2, another table stores the attribute information of pre-stored music can be as shown in table 3, that is:
The attribute information of table 3 pre-stored music
Music numbering Music title Music path
1 music1 Path1
2 music2 Path2
music3 Path3
Whipping path, speed and the time of S404, terminal device acquisition terminal equipment, and whipping path, speed and time are converted to the music information of music to be searched.
In the embodiment of the present invention, S404 is identical with S100, and particular content refers to the description of S100, does not repeat them here.
S405, terminal device are determined the similarity between the music information of music to be searched and the music information of pre-stored music, and the music information of this pre-stored music comprises cadence information, tone information and/or the attribute information of pre-stored music.
In the embodiment of the present invention, S405 is identical with S200, and particular content refers to the description of S200, does not repeat them here.
S406, terminal device, according to the similarity between the music information of music to be searched and the music information of pre-stored music, are arranged pre-stored music and corresponding attribute information show.
In the embodiment of the present invention, S406 is identical with S300, and particular content refers to the description of S300, does not repeat them here.
In the method shown in Fig. 2, terminal device storage pre-stored music, and the numbering that has been pre-stored music distribution; Gather the music information of pre-stored music, and make the music information of pre-stored music and the numbering of pre-stored music corresponding one by one; The music information of storage pre-stored music and the numbering of its correspondence; Whipping path, speed and the time of acquisition terminal equipment, whipping path, speed and the time of terminal device are converted to the music information of music to be searched; And the similarity between definite music information of music to be searched and the music information of pre-stored music; And according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and shown.Visible, the method shown in Fig. 2 discloses a kind of music searching mechanism, can reduce music searching difficulty, facilitates user search music, promotes user and experiences.
Refer to Fig. 3, Fig. 3 is the structural drawing of the disclosed a kind of music searching device of the embodiment of the present invention.Wherein, the music searching device shown in Fig. 3 is applicable to have the mobile terminal equipments such as mobile phone, panel computer that gather whipping path, speed and time quantum, and the embodiment of the present invention is not construed as limiting.As shown in Figure 3, this music searching device 300 can comprise:
Collect conversion module 301, for whipping path, speed and the time of acquisition terminal equipment, and whipping path, speed and time being converted to the music information of music to be searched, the music information of music to be searched comprises cadence information and/or the tone information of music to be searched;
Particularly, the music information of music to be searched can be cadence information, can be also tone information, can also be cadence information and tone information.Cadence information and tone information simultaneously when the music information of music to be searched carries out music searching, are had advantages of to degree of accuracy is high.
Determination module 302, for determining the similarity between the music information of music to be searched and the music information of pre-stored music, the music information of pre-stored music comprises cadence information, tone information and/or the attribute information of pre-stored music;
Arrange display module 303, for according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and shown.
As a kind of possible embodiment, music searching device 300 can also comprise:
Pre-stored music module 304, for whipping path, speed and the time at Collect conversion module 301 acquisition terminal equipment, and before whipping path, speed and time being converted to the music information of music to be searched, storage pre-stored music, and be pre-stored music distribution numbering, gather the music information of pre-stored music, and make the music information of pre-stored music corresponding one by one with the numbering of pre-stored music, store the music information of pre-stored music and the numbering of its correspondence.
This pre-stored music module 304 specifically can comprise:
The storage of pre-stored music and numbered cell 3041 for storing pre-stored music, and are pre-stored music distribution numbering;
Pre-stored music information collecting unit 3042, for gathering the music information of pre-stored music, and make the music information of pre-stored music and the numbering of pre-stored music corresponding one by one;
Pre-stored music information storage unit 3043, for storing the music information of pre-stored music and the numbering of its correspondence.
Particularly, the music information of pre-stored music information cell stores pre-stored music can be divided into two tables, and wherein, a table stores cadence information and the tone information of pre-stored music, can be as shown in table 2, another table stores the attribute information of pre-stored music can be as shown in table 3.
As a kind of possible embodiment, when the music information obtaining when Collect conversion module 301 comprises the cadence information of music to be searched and tone information, Collect conversion module 301 can comprise:
Data acquisition unit 3011, for whipping path, speed and the time of acquisition terminal equipment;
Cadence information converting unit 3012, for according to whipping path and time, is converted to cadence information by terminal device along time interval of whipping path whipping;
Tone information converting unit 3013, for according to whipping path, time and speed, is converted to tone information by terminal device along the amplitude of whipping path whipping;
Music information storage unit 3014 to be searched, for being stored as the cadence information of conversion and/or tone information the music information of music to be searched.
As a kind of possible embodiment, when the music information obtaining when Collect conversion unit 301 comprises the cadence information of music to be searched and tone information, determining unit 302 can comprise:
Information acquisition unit 3021, for obtaining cadence information and the tone information of arbitrary Qu Yinle from pre-stored music;
The first determining unit 3022, for determining music to be searched and obtaining the similarity between the cadence information of music, and music to be searched and obtain the similarity of the tone information between music;
Particularly, the music information of the music to be searched that terminal device gathers can be as shown in table 1, and one group of cadence information and tone information of gathering are shown in each list, and in the time interval that first data are rhythm, second data is tone.
In the embodiment of the present invention, for instance, the cadence information of pre-stored music and tone information can be as shown in table 2.
In the embodiment of the present invention, the first determining unit 3032 determines music to be searched and obtains the similarity between the cadence information of music, and music to be searched and to obtain the method for similarity of the tone information between music as follows:
Cadence information shown in the table 1 that terminal device whipping is produced and the data of tone information are designated as D g, cadence information and tone information shown in the table 2 obtaining from pre-stored music are designated as to D m.The music information producing due to terminal device whipping may not be that to take the top of music rhythm of pre-stored music be starting point, may be just from the some section of beginning wherein of the music rhythm of pre-stored music, so from D mtop get successively and D gone section of isometric D micarry out similarity calculating.Wherein:
D g={(r g1,t g1),(r g2,t g2),(r g3,t g3)……(r gn,t gn)}
D mi={(r m(i+1),t m(i+1)),(r m(i+2),t m(i+2)),(r m(i+3),t m(i+3))……(r m(i+n),t m(i+n))}
Wherein, D micomprise D min i+1 cadence information and tone information to D min i+n cadence information and the sub-information of tone information, wherein i is more than or equal to 0 positive integer, n represents cadence information that terminal device whipping produces and the number of tone information, it is to be more than or equal to 1 positive integer.R gcadence information, t for the generation of terminal device whipping gtone information for the generation of terminal device whipping; r mcadence information, t for pre-stored music mtone information for pre-stored music.
Music to be searched and the distance d obtaining between the cadence information of music are as follows:
d=∑ k((r gk-r m(i+k)) 2)
Wherein, k is more than or equal to 1 and be less than or equal to the positive integer of n.
Music to be searched and the similarity S that obtains the cadence information of music dfor:
S d=1/(1+d)
The cadence information obtaining due to the whipping by terminal device is to obtain according to the theme of music, and the thematic cadence information gathering from music is not necessarily accurate, therefore, should comprise fault-tolerant processing.Its concrete grammar is: a distance M between maximum cadence information is set, as abs ((r gk-r mk))>during M, think that this rhythm cannot embody the theme of music to be searched, skip this section is played the similarity of the tone that rhythm is corresponding therewith and is calculated, and wherein, abs () takes absolute value.
In addition, because distance proportion between two tones may be different, therefore, each tone is divided by, and the intensity of variation of trying to achieve tone by differential quadratic sum to be to obtain the distance t of two groups of tone informations, and formula is as follows:
t=∑ k(((t g(k+1)/t m(i+k+1))-(t gk/t m(i+k))) 2)
Music to be searched and the similarity S that obtains the tone information of music tfor:
S t=1/(1+t)
The second determining unit 3023, for according to the similarity of the similarity of cadence information and tone information, determines music to be searched and obtains the similarity between music.
Particularly, the similarity S of music to be searched and pre-stored music is with the similarity S of cadence information dsimilarity S with tone information trelevant, can be they two and, that is:
S=S d+S t
Also can be their square root sum squares,
S=(S d 2+S t 2) 1/2
In addition, the second determining unit 3023 determines that the method for the similarity S of music to be searched and pre-stored music comprises above-mentioned two kinds of methods but more than above-mentioned two kinds of acquisition patterns need only and can enough appropriate data processing methods the similarity S of music to be searched and pre-stored music be used to the similarity S of cadence information dsimilarity S with tone information tshow.
The threshold threshold S of a similarity degree is set minif S is less than S minthink that coupling is unsuccessful, continue to take off one section of D m( i+1) carry out similarity calculating, until S is greater than S minor mate successively D mfinish, coupling finishes S and is not still greater than S min, think that it fails to match and set S=0 with current pre-stored music.
After having determined the similarity S of a bent pre-stored music and music to be searched, from pre-stored music, obtain the judgement that next Qu Yinle carries out similarity, until last Qu Yinle in pre-stored music.
As a kind of possible embodiment, when the music information obtaining when Collect conversion module 301 comprises the cadence information of music to be searched and tone information, arranging display module 303 can comprise:
Arrangement units 3031, for arranging the numbering of pre-stored music according to music to be searched and the similarity obtained between music;
Music acquiring unit 3032, for obtaining corresponding music and attribute information according to the numbering of pre-stored music from pre-stored music;
Display unit 3033, for arranging the corresponding music of obtaining and attribute information show by putting in order of reference numeral.
In the device shown in Fig. 3, terminal device storage is pre-stored with music, and the numbering that has been pre-stored music distribution; Gather the music information of pre-stored music, and make the music information of pre-stored music and the numbering of pre-stored music corresponding one by one; The music information of storage pre-stored music and the numbering of its correspondence; Whipping path, speed and the time of acquisition terminal equipment, whipping path, speed and the time of terminal device are converted to the music information of music to be searched; And the similarity between definite music information of music to be searched and the music information of pre-stored music; And according to the similarity between the music information of music to be searched and the music information of pre-stored music, pre-stored music and corresponding attribute information are arranged and shown.Visible, the method shown in Fig. 2 discloses a kind of music searching mechanism, can reduce music searching difficulty, facilitates user search music, promotes user and experiences.
Refer to Fig. 4, Fig. 4 is the structural drawing of the disclosed a kind of terminal device of the embodiment of the present invention.Wherein, the terminal device shown in Fig. 4 has music demonstration and music information acquisition function.As shown in Figure 4, this terminal device 400 can comprise: display screen 401 and music searching device 402, wherein, the structure of music searching device 402, function can be identical with structure, the function of the music searching device shown in Fig. 3, and the embodiment of the present invention does not repeat.
In the terminal device 400 shown in Fig. 4, display screen 401 is connected with music searching device 402, for showing the music of music searching device 402 search and corresponding attribute information.Terminal device shown in Fig. 4 collects the whipping path of terminal device, speed and after the time, can be converted into voluntarily the music information of music to be searched, and calculate the similarity of the music information of music to be searched and the music information of pre-stored music, then pre-stored music and corresponding attribute information are arranged successively and shown according to the similarity value of the music information of the music information of music to be searched and pre-stored music, visible, terminal device can be according to the whipping path of terminal device, speed and time, search music by its demonstration, thereby can reduce music searching difficulty, in addition, because user just can search for music by whipping terminal device, thereby search music is more interesting, promoting user experiences.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
The sequence of steps of the method for the embodiment of the present invention can be adjusted according to actual needs, merges or delete.The module of the terminal of the embodiment of the present invention can be integrated according to actual needs, Further Division or delete.
The module of the embodiment of the present invention or module, can be with universal integrated circuit (as central processor CPU), or realizes with special IC (ASIC).
The method for searching music above embodiment of the present invention being provided, device and terminal device are described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a method for searching music, is characterized in that, comprising:
Whipping path, speed and the time of acquisition terminal equipment, and described whipping path, speed and time are converted to the music information of music to be searched, the music information of described music to be searched comprises cadence information and/or the tone information of described music to be searched;
Determine the similarity between the music information of described music to be searched and the music information of pre-stored music, the music information of described pre-stored music comprises cadence information, tone information and/or the attribute information of described pre-stored music;
According to the similarity between the music information of described music to be searched and the music information of described pre-stored music, described pre-stored music and corresponding attribute information are arranged and shown.
2. the method for claim 1, is characterized in that, whipping path, speed and the time of described acquisition terminal equipment, and before described whipping path, speed and time are converted to the music information of music to be searched, also comprise:
Storage pre-stored music, and be described pre-stored music distribution numbering;
Gather the music information of described pre-stored music, and make the music information of described pre-stored music and the numbering of described pre-stored music corresponding one by one;
Store the music information of described pre-stored music and the numbering of its correspondence.
3. method as claimed in claim 2, is characterized in that, whipping path, speed and the time of described acquisition terminal equipment, and described whipping path, speed and time are converted to the music information of music to be searched, comprising:
Whipping path, speed and the time of acquisition terminal equipment;
According to described whipping path and time, described terminal device is converted to cadence information along time interval of described whipping path whipping;
According to described whipping path, time and speed, described terminal device is converted to tone information along the amplitude of described whipping path whipping;
The cadence information of described conversion and/or tone information are stored as to the music information of music to be searched.
4. the method as described in claim 1 or 3, is characterized in that, the described similarity of determining between the music information of described music to be searched and the music information of pre-stored music, comprising:
From described pre-stored music, obtain cadence information and the tone information of arbitrary Qu Yinle;
Determine described music to be searched and described in obtain the similarity of the cadence information between music, and described music to be searched and described in obtain the similarity of the tone information between music;
According to the similarity of the similarity of described cadence information and described tone information, determine described music to be searched and described in obtain the similarity between music.
5. the method for claim 1, is characterized in that, describedly according to the similarity between the music information of described music to be searched and the music information of described pre-stored music, described pre-stored music and corresponding attribute information is arranged and is shown, comprising:
By the numbering of described pre-stored music according to described music to be searched and described in the similarity obtained between music arrange;
According to the numbering of described pre-stored music, from described pre-stored music, obtain corresponding music and attribute information;
The described corresponding music of obtaining and attribute information are arranged and shown by putting in order of reference numeral.
6. a music searching device, is characterized in that, comprising:
Collect conversion module, for whipping path, speed and the time of acquisition terminal equipment, and described whipping path, speed and time being converted to the music information of music to be searched, the music information of described music to be searched comprises cadence information and/or the tone information of described music to be searched;
Determination module, for determining the similarity between the music information of described music to be searched and the music information of pre-stored music, the music information of described pre-stored music comprises cadence information, tone information and/or the attribute information of described pre-stored music;
Arrange display module, for according to the similarity between the music information of described music to be searched and the music information of described pre-stored music, described pre-stored music and corresponding attribute information are arranged and shown.
7. device as claimed in claim 6, is characterized in that, also comprises pre-stored music module:
Described pre-stored music module, be used for storing pre-stored music, and be described pre-stored music distribution numbering, gather the music information of described pre-stored music, and make the music information of described pre-stored music and the numbering of described pre-stored music corresponding one by one, store the music information of described pre-stored music and the numbering of its correspondence.
8. device as claimed in claim 7, is characterized in that, described Collect conversion module comprises:
Data acquisition unit, for whipping path, speed and the time of acquisition terminal equipment;
Cadence information converting unit, for according to described whipping path and time, is converted to cadence information by described terminal device along time interval of described whipping path whipping;
Tone information converting unit, for according to described whipping path, time and speed, is converted to tone information by described terminal device along the amplitude of described whipping path whipping;
Music information storage unit to be searched, for being stored as the cadence information of described conversion and/or tone information the music information of music to be searched.
9. the device as described in claim 6 or 8, is characterized in that, described determining unit comprises:
Information acquisition unit, for obtaining cadence information and the tone information of arbitrary Qu Yinle from described pre-stored music;
The first determining unit, for determine described music to be searched and described in obtain the similarity of the cadence information between music, and described music to be searched and described in obtain the similarity of the tone information between music;
The second determining unit, for according to the similarity of the similarity of described cadence information and described tone information, determine described music to be searched and described in obtain the similarity between music.
10. a terminal device, it is characterized in that, comprise the music searching device described in display screen and claim 6~9 any one, wherein, described display screen is connected with described music searching device, for showing the music of described music searching device search and corresponding attribute information.
CN201310535155.0A 2013-11-01 2013-11-01 Music search method, music search device and terminal equipment Pending CN103530426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310535155.0A CN103530426A (en) 2013-11-01 2013-11-01 Music search method, music search device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310535155.0A CN103530426A (en) 2013-11-01 2013-11-01 Music search method, music search device and terminal equipment

Publications (1)

Publication Number Publication Date
CN103530426A true CN103530426A (en) 2014-01-22

Family

ID=49932435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310535155.0A Pending CN103530426A (en) 2013-11-01 2013-11-01 Music search method, music search device and terminal equipment

Country Status (1)

Country Link
CN (1) CN103530426A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866494A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and electronic equipment
CN105389356A (en) * 2015-11-04 2016-03-09 上海艺瓣文化传播有限公司 Music database retrieval system based on feature extraction
CN105589970A (en) * 2015-12-25 2016-05-18 小米科技有限责任公司 Music searching method and device
CN106681997A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Information processing method and device
CN107133344A (en) * 2017-05-19 2017-09-05 腾讯音乐娱乐(深圳)有限公司 A kind of data processing method and device
CN113157968A (en) * 2021-04-07 2021-07-23 腾讯音乐娱乐科技(深圳)有限公司 Method, terminal and storage medium for acquiring homopolar musical instrument audio set
CN113742514A (en) * 2021-09-03 2021-12-03 林飞鹏 Accurate music searching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1219036A (en) * 1997-12-02 1999-06-09 三星电子株式会社 Music input method for communication terminal
JP2001056817A (en) * 1999-08-18 2001-02-27 Alpine Electronics Inc Music retrieval system
JP2005004576A (en) * 2003-06-13 2005-01-06 Sony Corp Music retrieval system and method, information processing device and method, program, and recording medium
CN1937634A (en) * 2005-09-23 2007-03-28 英华达(上海)电子有限公司 Mobile telecommunication device with music generating function and music generating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1219036A (en) * 1997-12-02 1999-06-09 三星电子株式会社 Music input method for communication terminal
JP2001056817A (en) * 1999-08-18 2001-02-27 Alpine Electronics Inc Music retrieval system
JP2005004576A (en) * 2003-06-13 2005-01-06 Sony Corp Music retrieval system and method, information processing device and method, program, and recording medium
CN1937634A (en) * 2005-09-23 2007-03-28 英华达(上海)电子有限公司 Mobile telecommunication device with music generating function and music generating method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866494A (en) * 2014-02-24 2015-08-26 联想(北京)有限公司 Information processing method and electronic equipment
CN104866494B (en) * 2014-02-24 2019-07-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105389356A (en) * 2015-11-04 2016-03-09 上海艺瓣文化传播有限公司 Music database retrieval system based on feature extraction
CN105389356B (en) * 2015-11-04 2019-05-28 上海艺瓣文化传播有限公司 A kind of musical database searching system based on feature extraction
CN106681997A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Information processing method and device
CN106681997B (en) * 2015-11-05 2020-09-08 中国移动通信集团公司 Information processing method and device
CN105589970A (en) * 2015-12-25 2016-05-18 小米科技有限责任公司 Music searching method and device
CN107133344A (en) * 2017-05-19 2017-09-05 腾讯音乐娱乐(深圳)有限公司 A kind of data processing method and device
CN113157968A (en) * 2021-04-07 2021-07-23 腾讯音乐娱乐科技(深圳)有限公司 Method, terminal and storage medium for acquiring homopolar musical instrument audio set
CN113742514A (en) * 2021-09-03 2021-12-03 林飞鹏 Accurate music searching method and device
CN113742514B (en) * 2021-09-03 2023-11-24 林飞鹏 Music accurate searching method and device

Similar Documents

Publication Publication Date Title
CN103530426A (en) Music search method, music search device and terminal equipment
CN101452696B (en) Signal processing device, signal processing method and program
CN103885663A (en) Music generating and playing method and corresponding terminal thereof
CN106782600A (en) The methods of marking and device of audio file
CN103488669B (en) Message processing device, information processing method and program
US20110046955A1 (en) Speech processing apparatus, speech processing method and program
CN106157979B (en) A kind of method and apparatus obtaining voice pitch data
CN105161087A (en) Automatic harmony method, device, and terminal automatic harmony operation method
KR20070063455A (en) Taste profile production apparatus, taste profile production method and profile production program
CN101866667A (en) Music playing method and mobile terminal
CN108648520A (en) A kind of piano performance learning method and device
CN101438342A (en) Method and electronic device for aligning a song with its lyrics
CN108182227B (en) Accompanying audio recommendation method and device and computer-readable storage medium
CN104067273A (en) Grouping search results into a profile page
CN111680079A (en) Method and device for converting Json data into dictionary data and electronic equipment
CN103955490A (en) Audio playing method and audio playing equipment
CN102456342A (en) Audio processing apparatus and method, and program
CN104102659A (en) Music searching method and terminal
CN102881282B (en) Method and system for obtaining prosodic boundary information
CN104078063A (en) Audio file playing method and system
US20140180448A1 (en) Crowdsourced discovery of music for improving performance
CN104410906A (en) Detection method and detection device for video playing behavior
CN105575400A (en) Method, terminal, server, and system for obtaining song information
CN106095943B (en) It gives song recitals and knows well range detection method and device
CN106844504B (en) A kind of method and apparatus for sending song and singly identifying

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140122