CN107301871A - A kind of adaptive method for playing music - Google Patents

A kind of adaptive method for playing music Download PDF

Info

Publication number
CN107301871A
CN107301871A CN201710380899.8A CN201710380899A CN107301871A CN 107301871 A CN107301871 A CN 107301871A CN 201710380899 A CN201710380899 A CN 201710380899A CN 107301871 A CN107301871 A CN 107301871A
Authority
CN
China
Prior art keywords
music
user
playlist
music file
value
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
CN201710380899.8A
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.)
Wuhan Rainbow Communication Technology Co Ltd
Original Assignee
Wuhan Rainbow Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Rainbow Communication Technology Co Ltd filed Critical Wuhan Rainbow Communication Technology Co Ltd
Priority to CN201710380899.8A priority Critical patent/CN107301871A/en
Publication of CN107301871A publication Critical patent/CN107301871A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/11Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information not detectable on the record carrier
    • 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

Abstract

The embodiments of the invention provide a kind of adaptive method for playing music, the method for playing music includes:The current motion state of magnetometric sensor sensing user, obtains the state value of the active user;According to the current user state value, according to the User Status value pre-set and audio index sequence number table, corresponding audio index sequence number is determined;According to the audio index sequence number, the index of query music file is concentrated in alternative file and determines the music file to be played, and plays the music file.

Description

A kind of adaptive method for playing music
Technical field
The present embodiments relate to a kind of technical field of information processing, specifically, being related to a kind of adaptive music side Method.
Background technology
At present, with the development of mobile communication, network technology, mobile terminal has turned into people's daily life and work can not One of or scarce equipment.Wherein, with purposes such as amusement, decompressions, people usually can play various music in the selection of various occasions.Example Such as, in some formal field feelings, some stereo sets can be disposed at the scene, play the music related to theme.Usually, Ren Menye Various music files can be stored in mobile terminal, such as mobile phone, such as various songs, melody.People pass through the audio in mobile phone Playout software (or being multimedia player) just can play these music files.
Wherein, audio playing software has many kinds, and such as current " Netease's cloud music ", " KuGoo player " applies journey Sequence, can make people more freely in the pleasant to the ear music oneself liked of mobile phone.It is to open the application that it, which is operated most of, The music to be listened is found in mobile phone, adds it in the application, then plays.During broadcasting, there can be various modes, such as order Broadcasting, shuffle or single loop play etc..
However, the present inventor has found during the present invention is realized, when user is in motion, want to listen music, or work as The rhythm of preceding music is not inconsistent with current motion state, and user only stops motion, and then manual search, audition play again, and After be further continued for motion.This can make troubles to user, and not have suitable technical scheme at present to be kept in motion User plays suitable music automatically.
The content of the invention
The technical problem to be solved of the embodiment of the present invention is, for that can not be the user being kept in motion in the prior art There is provided a kind of adaptive method for playing music for the problem of playing suitable music.
In order to solve the above-mentioned technical problem, according to the one side of the embodiment of the present disclosure, there is provided a kind of music side Method, wherein, comprise the following steps:
The current motion state of magnetometric sensor sensing user, obtains the state value of the active user;Worked as according to described Preceding User Status value, according to the User Status value pre-set and audio index sequence number table, determines corresponding audio index sequence number; According to the audio index sequence number, the index of query music file is concentrated in alternative file and determines the music file to be played, and Play the music file.
The embodiment of the present invention is played and the fortune for user automatically by sensing the motion state of user according to motion state The music that dynamic state rhythm is consistent, makes the music that user listens to be consistent with motion state, while motion, can listen to happiness Joyous music, it is no longer necessary to which user, in order to select a suitable music and motion of stopping, manual search, is user in motion Music is listened to offer convenience and interest.
Brief description of the drawings
Description by referring to the following drawings to the embodiment of the present disclosure, the above-mentioned and other purpose of the embodiment of the present disclosure, Feature and advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the flow chart of the adaptive method for playing music of the embodiment of the present invention;
Fig. 2 is another flow chart of the adaptive method for playing music of the embodiment of the present invention.
Embodiment
The embodiment of the present disclosure is described below based on embodiment, but the embodiment of the present disclosure is not restricted to these Embodiment.It is detailed to describe some specific detail sections below in the detailed description of the embodiment of the present disclosure.To this area The description of part can also understand the embodiment of the present disclosure completely without these details for technical staff.In order to avoid obscuring this public affairs The essence of embodiment is opened, known method, process, flow are not described in detail.What other accompanying drawing was not necessarily drawn to scale.
As shown in figure 1, the embodiment of the present disclosure provides a kind of method for playing music, wherein, comprise the following steps:
Step 1, the current motion state of magnetometric sensor sensing user, obtains the state value of the active user;
Step 2, according to the current user state value, according to the User Status value pre-set and audio index sequence number Table, determines corresponding audio index sequence number;
Step 3, according to the audio index sequence number, the index of query music file concentrates determination to broadcast in alternative file The music file put;
Step 4, the music file is played.
Wherein, the step 1 is specifically included:
Step 11, the current motion state of user is sensed by magnetometric sensor.
Specifically, user carries the terminal with magnetometric sensor, magnetometric sensor is held to the motion state of user Continuous detection.In the present embodiment, the movement rhythm of user is predominantly detected, is such as run.Thus, it is usually required mainly for obtain human body amplitude Change information.Embodiment is as follows:
One piece of magnet is arranged on earphone, specific position is not limited, and the working face of earphone upper magnet has two kinds of poles of N, S Property, when human motion, earphone motion is driven, the magnetic field that the contained magnet of earphone is produced can pass through the surface of magnetometric sensor, when When earphone is with man-machine tempo variation, the relative position of magnet and magnetometric sensor in earphone also changes, and constitutes one The magnetic field of change, i.e.,:The size of magnetic field intensity also changes within the specific period, can produce electrical potential difference, magnetic force sensing Device is judged the electrical potential difference of special time, it can be deduced that human body is with specific tempo variation.From the point of view of experimental data, When the magnet and the distance of magnetometric sensor on earphone are 50 centimetres, when magnetic field intensity is 1000 tesla, electrical potential difference exceedes During 5V, it is believed that the displacement of earphone is the displacement of the running generation of human body.
In addition, the electrical potential difference more than 5V is in 1 second, the rhythm changed repeatedly is more than 4 times, you can existed with being inferred to human body Jog;During more than 6 times, hurried up with being inferred to human body.It is above-mentioned to be recorded by the counter of magnet sensor, generation fortune Dynamic amplitude.
Step 12, the sensing data of the sensor is handled, motion amplitude versus time curve is obtained.Specifically,
The magnetometric sensor can be obtained motion amplitude and be changed with time song by classical blending algorithm Line.
Step 13, calculated according to the change curve and obtain motion frequency;
Motion frequency is obtained specifically, being calculated according to the change curve, so as to learn the human body variation rule of user.
Step 14, according to the mapping table of motion frequency and state value, user's current state value is determined.
In addition, in order to be able to play out suitable music from terminal, store in the terminal on user's current state with The corresponding relation of music, for example, when user is in relatively slow motion state, to play the music releived, and works as user When handling allegro motion state, strong, the cheerful and light-hearted music of rhythm is played.Thus, the shape for representing user movement state State value has the music that multiple, different values represent different rhythm.Thus, when obtaining user's current state according to sensing data After value, the selection standard of music file just can be determined, so as to select suitable music.
On the mapping table of motion frequency and state value, because user is different, even at equal state, it is moved Frequency has certain difference, even if same user, and each motion frequency when being likely to be at same state also has Certain difference, thus, according to many experiments, the different motion frequencies of same state are obtained, so as to obtain same shape The corresponding motion frequency scope of state.Thus, the mapping table of the motion frequency and state value can essentially be motion frequency The mapping table of rate scope and state value.After motion frequency is obtained according to change curve calculating, by the motion frequency Rate is compared with predetermined threshold value (two end values up and down of a certain motion frequency scope), so that it is determined that current kinetic frequency belongs to In which motion frequency scope;According to the scope, phase is determined in the mapping table from the motion frequency with state value The state value answered.For example, the mapping table of motion frequency and state value is as shown in table 1, it should be noted that, the data in the table Only as a kind of example, not normal data, motion frequency scope is also suitable because of people, with different setting values.
In the present invention, music file index is provided with corresponding music file, system in order to search, with the rope Draw corresponding for an index feature collection.Index feature, which is concentrated, includes a plurality of index, is numbered with sequence number.One index record It is used for all characteristic values of the specific music file of correspondence, i.e., one index characteristic value collection.The characteristic value corresponds to A sorting item of each music file in the musical database, for example:Include multiple features, such as music file name Title, album name, artist name, composer's name, school etc., assign a character string, FM [n to above-mentioned each feature (mi)].Wherein, F is characterized code, and M (n) is n-th of music file code, and m is characterized sequence number, and m, n are natural number 1,2,3 Deng the sequence number that, i is this feature value, the characteristic value of each feature is a discrete set.
One music file generally has multiple features, and each feature has the characteristic value of determination, thus, it is all when knowing The characteristic value of feature, has just also determined that corresponding music file.
The feature of such as the 1st music file has four features, is respectively:F M11i:Music file names;F M12i: Album name;F M13i:Artist name;F M14i:Movement rhythm.As shown in table 2:
Table 2
Different features, the discrete set of its characteristic value is different, for example, for this feature of FM11i, because it represents sound Only one of which value in music file title, its usual characteristic value collection, there is the music file of alias for some, such as, different languages The title of speech, might have multiple values.For F M13i, it represents artist name, for same first song, might have different Singer sings, and thus, the name of all singers is had in its characteristic value collection.
User's current motion state of the present invention is one of feature, it is assumed that the character string of the feature is FM14i, obtained state value is then characterized a particular value in value set.The set of state value i.e. described in table 1 is This feature value set.
Audio index sequence number S (n) can be determined by one or more of characteristic set characteristic value, for example, S (n)={ FM [n (mi)] }, just can be with when the characteristic value of one of feature is different from the characteristic value in other call numbers Index number is determined, if identical characteristic value, then compares other characteristic values, until distinguishing index number.
For example:In artist name this feature, for the singer of a determination name, then the characteristic value of this feature is true It is fixed, but might have a plurality of index and meet this feature, it is now continuous using new in the index aggregate relay for meeting this feature Feature distinguish, such as other features of album name.
In the disclosed embodiments, premised on the characteristic value of other features in this feature set is for known to, i.e., true During accordatura music file, the characteristic value of other features has been known parameters.For example, for user before running, having set will The musical database listened, specific one storehouse is set to by the database that can carry out music file selection, as oneself is collected Like music list, or set the special edition of feature, at this point it is possible to be confirmed by this feature of current motion state Index number, passes through index number, the index of query music file, it is determined that the music file to be played.
For the characteristic value of each feature, there is corresponding setting value, for example, for this feature of school, its The mapping table of setting value and specific features value is as shown in table 3 below:
Table 3
Setting value Characteristic value
Setting value 1 CLASSIC
Setting value 2 COUNTRY
Setting value 3 HIPPOP
…… ……
When user is after before use, select some particular music files (hereinafter referred to as alternative file collection), then greatly contract The small scope for determining music file according to motion state in motion, also reduces difficulty.
On the determination of alternative file collection, it can determine in several ways, such as user sets, or is not set in user When, automatic acquiescence gathers the music file that user likes, is used as alternative file collection.The music file liked on user Collection, for example in the application of some musics, generally can all there is user's favorites list, Yong Huke by user's sets itself To be added to from the music file for being about to oneself like in the list.Or, by the broadcasting time of each music file of system statistics Number and frequency, by analysis, determine the music file that user likes, and these music files are incorporated into a set, Alternative file collection is used as when user is not set.
The preferred embodiment of the embodiment of the present disclosure is the foregoing is only, the embodiment of the present disclosure is not limited to, for this For art personnel, the embodiment of the present disclosure can have various changes and change.All spiritual and originals in the embodiment of the present disclosure Any modification, equivalent substitution and improvements made within reason etc., should be included within the protection domain of the embodiment of the present disclosure.

Claims (6)

1. a kind of adaptive method for playing music, it is characterised in that including:
The current motion state of magnetometric sensor sensing user, obtains the state value of the active user;
According to the current user state value, according to the User Status value pre-set and audio index sequence number table, it is determined that correspondence Audio index sequence number;
According to the audio index sequence number, the index of query music file is concentrated in alternative file and determines the music to be played text Part, and play the music file.
2. adaptive method for playing music as claimed in claim 1, wherein, the fortune of the magnetometric sensor sensing user currently Dynamic state, the state value for obtaining the active user is specifically included:
The change of the magnetic field intensity of magnet in the magnetometric sensor sensing earphone;
It is determined that in special time caused by the change of the magnetic field intensity potential change frequency;
Motion frequency is generated according to the change frequency of the potential;
According to the mapping table of the motion frequency and state value, user's current state value is determined.
3. the adaptive method for playing music as described in claim 1 or 2 is any, wherein, the broadcasting music file Step includes:
The playlist corresponding with User Status value is created, the music file is added in the playlist, The playlist is preserved, and is set to current play list;
Play the music file in current play list.
4. adaptive method for playing music as claimed in claim 3, wherein, when the index number is multiple, obtain phase The multiple music files answered;
The multiple music file is added in the playlist;
In the music file in playing the playlist, multiple music text in playlist described in order or shuffle Part.
5. method for playing music as claimed in claim 4 adaptive, wherein, according to user's current state value, it is determined that Before corresponding index number, whether inquiry is existing with the corresponding playlist of User Status value;
When not being worth corresponding playlist with the User Status, according to user's current state value, determine corresponding Index number;
When existing with the User Status corresponding playlist of value, the playlist is set to current play list, Play the music file in the current play list.
6. adaptive method for playing music as claimed in claim 5, wherein, before the music file is played, inquiry is It is no existing with the corresponding playlist of User Status value;
When not being worth corresponding playlist with the User Status, create and the corresponding played column of User Status value Table, and set it to current play list;
Exist be worth corresponding playlist with the User Status when, detect in the playlist whether the existing sound Music file;
If the existing music file, current play list is set as by the playlist;If without the music File, is added to the playlist, and set it to current play list by the music file.
CN201710380899.8A 2017-05-25 2017-05-25 A kind of adaptive method for playing music Pending CN107301871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710380899.8A CN107301871A (en) 2017-05-25 2017-05-25 A kind of adaptive method for playing music

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710380899.8A CN107301871A (en) 2017-05-25 2017-05-25 A kind of adaptive method for playing music

Publications (1)

Publication Number Publication Date
CN107301871A true CN107301871A (en) 2017-10-27

Family

ID=60138017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710380899.8A Pending CN107301871A (en) 2017-05-25 2017-05-25 A kind of adaptive method for playing music

Country Status (1)

Country Link
CN (1) CN107301871A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108297985A (en) * 2017-11-07 2018-07-20 盐城工学院 Bicycle
CN109446350A (en) * 2018-11-09 2019-03-08 腾讯音乐娱乐科技(深圳)有限公司 Multi-medium play method, device, terminal and storage medium
CN109584848A (en) * 2018-11-22 2019-04-05 黑天鹅智能科技(福建)有限公司 Play music system and its method of playing music based on induced magnetic field variation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007052710A (en) * 2005-08-19 2007-03-01 Seiko Epson Corp Music piece selection system and music piece distribution system
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN105589970A (en) * 2015-12-25 2016-05-18 小米科技有限责任公司 Music searching method and device
KR20160087536A (en) * 2015-01-14 2016-07-22 계명대학교 산학협력단 Bio-signal feedback based instrument education system and method
CN106372248A (en) * 2016-09-22 2017-02-01 广东远峰电子科技股份有限公司 Music playing method and device
CN106527734A (en) * 2016-11-30 2017-03-22 杭州联络互动信息科技股份有限公司 Music playing control method and device
CN106547787A (en) * 2015-09-22 2017-03-29 腾讯科技(深圳)有限公司 A kind of method of music recommendation, apparatus and system
CN106599123A (en) * 2016-11-29 2017-04-26 上海斐讯数据通信技术有限公司 Music playing method and system for use during exercise
CN106687958A (en) * 2016-12-08 2017-05-17 深圳市汇顶科技股份有限公司 Audio playing device, system and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007052710A (en) * 2005-08-19 2007-03-01 Seiko Epson Corp Music piece selection system and music piece distribution system
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
KR20160087536A (en) * 2015-01-14 2016-07-22 계명대학교 산학협력단 Bio-signal feedback based instrument education system and method
CN106547787A (en) * 2015-09-22 2017-03-29 腾讯科技(深圳)有限公司 A kind of method of music recommendation, apparatus and system
CN105589970A (en) * 2015-12-25 2016-05-18 小米科技有限责任公司 Music searching method and device
CN106372248A (en) * 2016-09-22 2017-02-01 广东远峰电子科技股份有限公司 Music playing method and device
CN106599123A (en) * 2016-11-29 2017-04-26 上海斐讯数据通信技术有限公司 Music playing method and system for use during exercise
CN106527734A (en) * 2016-11-30 2017-03-22 杭州联络互动信息科技股份有限公司 Music playing control method and device
CN106687958A (en) * 2016-12-08 2017-05-17 深圳市汇顶科技股份有限公司 Audio playing device, system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108297985A (en) * 2017-11-07 2018-07-20 盐城工学院 Bicycle
CN109446350A (en) * 2018-11-09 2019-03-08 腾讯音乐娱乐科技(深圳)有限公司 Multi-medium play method, device, terminal and storage medium
CN109584848A (en) * 2018-11-22 2019-04-05 黑天鹅智能科技(福建)有限公司 Play music system and its method of playing music based on induced magnetic field variation
CN109584848B (en) * 2018-11-22 2021-11-12 黑天鹅智能科技(福建)有限公司 Music playing system based on induction magnetic field change and music playing method thereof

Similar Documents

Publication Publication Date Title
CN101496094B (en) Method of and system for browsing of music
Pampalk Islands of music: Analysis, organization, and visualization of music archives
US10229669B2 (en) Apparatus, process, and program for combining speech and audio data
CN100479054C (en) Method for creating and accessing a menu for audio content without using a display
US9495449B2 (en) Music steering with automatically detected musical attributes
JP4033944B2 (en) Online karaoke system characterized by recommended music selection function according to music to be played
CN102654859A (en) Method and system for recommending songs
CN101399037B (en) Method and device for providing an overview of pieces of music
CN109299318A (en) Method, apparatus, storage medium and the terminal device that music is recommended
CN102654860A (en) Personalized music recommendation method and system
CN107301871A (en) A kind of adaptive method for playing music
KR20060128925A (en) Method and system for determining a measure of tempo ambiguity for a music input signal
KR20060091063A (en) Music contents classification method, and system and method for providing music contents using the classification method
CN101197180B (en) Player and method for playing media file
CN106548792A (en) Intelligent sound box device, mobile terminal and music processing method
JP2009204936A (en) Karaoke machine and booking music piece search method
CN106775567B (en) Sound effect matching method and system
Collins et al. A new curated corpus of historical electronic music: Collation, data and research findings
CN101370216B (en) Emotional processing and playing method for mobile phone audio files
CN106448710B (en) A kind of calibration method and music player devices of music play parameters
Lehtiniemi et al. Evaluation of automatic mobile playlist generator
Al-Beitawi et al. Cluster analysis of musical attributes for top trending songs
CN106649643B (en) A kind of audio data processing method and its device
CN102890948A (en) Online music playing method and terminal equipment thereof
TWI385645B (en) The system and method of singing with the voice of the interactive voice interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171027

WD01 Invention patent application deemed withdrawn after publication