CN108255460A - Music shuffle method, mobile terminal and computer readable storage medium - Google Patents
Music shuffle method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108255460A CN108255460A CN201810025839.9A CN201810025839A CN108255460A CN 108255460 A CN108255460 A CN 108255460A CN 201810025839 A CN201810025839 A CN 201810025839A CN 108255460 A CN108255460 A CN 108255460A
- Authority
- CN
- China
- Prior art keywords
- music
- music file
- shuffle
- played
- category
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004364 calculation method Methods 0.000 claims description 16
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 238000009331 sowing Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000005945 translocation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Abstract
The invention discloses a kind of music shuffle method, the music shuffle method includes the following steps:The corresponding singer informations of music file to be played are obtained, and are classified based on the singer informations to the music file to be played, to obtain the classification results being made of multiple classifications;Based on the classification results, the music file to be played is ranked up, to obtain corresponding shuffle playlist;According to the shuffle playlist, corresponding music file is played.The invention also discloses a kind of mobile terminal and computer readable storage mediums.The present invention is realized in the shuffle for carrying out music, and the music file of different singers can be played alternately, preferably to enhance user experience.
Description
Technical field
The present invention relates to a kind of music technical field more particularly to music shuffle method, mobile terminal and meters
Calculation machine readable storage medium storing program for executing.
Background technology
Music shuffle is a kind of common play mode of music player, under this shuffle play mode, is played
Music in list is not played out according to playlist sequence, but shuffle, that is, next song is works as
Any one head in preceding playlist.
The characteristics of due to shuffle play mode existing at present so that music is one kind in form with machine sowing
It puts, but in real experiences, next music listened to of user is but likely to be the music that previous head had just been listened to, and
And when user creates music list, singer informations included in list are also and more than one so that are broadcast in practical music
During putting, next song played is not only likely to be the music of same singer, it is also possible to be same a piece of music.
Invention content
It is a primary object of the present invention to provide a kind of music shuffle method, mobile terminal and computer-readable storage
Medium, it is intended to solve how when singing music single progress shuffle, to avoid next song and adjacent preceding a piece of music category
In the same singer the technical issues of.
To achieve the above object, the present invention provides a kind of music shuffle method, the music shuffle method packet
Include following steps:
The corresponding singer informations of music file to be played are obtained, and based on the singer informations to the music text to be played
Part is classified, to obtain the classification results being made of multiple classifications;
Based on the classification results, the music file to be played is ranked up, is arranged with obtaining corresponding shuffle
Table;
According to the shuffle playlist, corresponding music file is played.
Preferably, it is described to obtain the corresponding singer informations of music to be played, and wait to broadcast to described based on the singer informations
The step of being classified of putting the music on includes:
Obtain the corresponding singer informations of music to be played, and by the identical sound of singer informations in the music file to be played
Music file is as a classification, to obtain multiple music file classifications.
Preferably, it is described to obtain the corresponding identification information of music to be played, and be based on waiting to broadcast described in the identification information pair
The step of being classified of putting the music on further includes:
If the corresponding singer informations of the music file to be played are unknown message, by the corresponding sound of the unknown message
Music file is as a classification.
Preferably, it is described based on the classification results, the music file to be played is ranked up, to obtain accordingly
The step of shuffle playlist, includes:
Based on the classification results, the quantity of the corresponding music file of all categories is obtained;
The magnitude relationship of quantity based on the corresponding music file of all categories, is ranked up the classification,
To obtain corresponding sequence list;
Based on the sequence list, the music to be played is ranked up, to obtain the shuffle playlist.
Preferably, it is described to be based on the sequence list, the music to be played is ranked up, it is described with machine sowing to obtain
The step of emplacing table includes:
Based on the sequence list, using the most classification of music file quantity corresponding in the sequence list as first
Classification;
By the secondary music file in the sequence list in addition to the corresponding music file of the first category, according to pre-
If mode is inserted into the first category between adjacent two music file, to obtain the shuffle playlist.
Preferably, the secondary music by the sequence list in addition to the corresponding music file of the first category
File is inserted into according to predetermined manner in the first category between adjacent two music file, to obtain the shuffle playlist
The step of include:
The second category in the sequence list is obtained, and by the corresponding music file of the second category according to default side
Formula is uniformly inserted into the corresponding music file of the first category, to obtain the first playlist;
Based on the sequence list, according to the predetermined manner, each of insertion will not be completed in the sequence list successively
The corresponding music file of classification is inserted into respectively in adjacent preceding primary obtained playlist between adjacent two music file, until institute
Stating music file to be played, all sequence is completed, to obtain the shuffle playlist.
Preferably, the second category obtained in the sequence list, and the corresponding music of the second category is literary
Part is uniformly inserted into according to predetermined manner in the first category between adjacent two music file, to obtain the step of the first playlist
Suddenly include:
Based on the sequence list, the first category and the corresponding music file number of the second category are obtained
Amount;
According to position calculation formula, it is corresponding in the first category to calculate corresponding music file in the second category
The position being inserted into music file;
Based on the result of calculation, music file corresponding in the second category is inserted into adjacent in the first category
Between two music files, to obtain the first playlist.
Preferably, the music shuffle method further includes:
When the music file to be played in the shuffle playlist finishes, play in the shuffle playlist
First music file, wherein the first music file be initial play music file.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile whole terminal includes:Storage
Device, processor and the music shuffle program that is stored on the memory and can run on the processor, the sound
Happy shuffle program realizes the step of music shuffle method as described above when being performed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Music shuffle program is stored on storage medium, is realized when the music shuffle program is executed by processor as above-mentioned
The step of described music shuffle method.
A kind of music shuffle method that the embodiment of the present invention proposes, by obtaining the corresponding song of music file to be played
Hand information, and music file to be played is classified based on singer informations, then according to classification results to music to be played text
Part is sorted accordingly, to obtain corresponding shuffle playlist, so that when carrying out music, based on what is obtained
Shuffle playlist plays music file to be played.It realizes when music carries out shuffle, by according to music file
Identification information pair music file is ranked up, so that the music file of different singers can be played alternately, improves user's body
It tests.
Description of the drawings
Fig. 1 is the terminal schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of one embodiment of music shuffle method of the present invention;
Fig. 3 is the refinement flow diagram of step S20 in Fig. 2;
Fig. 4 is the refinement flow diagram of step S23 in Fig. 3;
Fig. 5 is the generating mode schematic diagram of shuffle playlist in Fig. 4 embodiments.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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.
As shown in Figure 1, the terminal structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency level 3) player, pocket computer etc. have the packaged type terminal device of display function.
As shown in Figure 1, the terminal can include:Processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used to implement the connection communication between these components.
User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor such as optical sensor, motion sensor and other sensors.Specifically, light
Sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can according to the light and shade of ambient light come
The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when mobile terminal is moved in one's ear.As
One kind of motion sensor, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, quiet
It can detect that size and the direction of gravity when only, the application that can be used to identify mobile terminal posture is (such as horizontal/vertical screen switching, related
Game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile terminal can also match
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor are put, details are not described herein.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can wrap
It includes and either combines certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer storage media including operating system, network
Believe module, Subscriber Interface Module SIM and music shuffle program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communicate;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the music shuffle program stored in memory 1005, and perform following operate:
The corresponding singer informations of music file to be played are obtained, and based on the singer informations to the music text to be played
Part is classified, to obtain the classification results being made of multiple classifications;
Based on the classification results, the music file to be played is ranked up, is arranged with obtaining corresponding shuffle
Table;
According to the shuffle playlist, corresponding music file is played.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
Obtain the corresponding singer informations of music to be played, and by the identical sound of singer informations in the music file to be played
Music file is as a classification, to obtain multiple music file classifications.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
If the corresponding singer informations of the music file to be played are unknown message, by the corresponding sound of the unknown message
Music file is as a classification.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
Based on the classification results, the quantity of the corresponding music file of all categories is obtained;
The magnitude relationship of quantity based on the corresponding music file of all categories, is ranked up the classification,
To obtain corresponding sequence list;
Based on the sequence list, the music to be played is ranked up, to obtain the shuffle playlist.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
Based on the sequence list, using the most classification of music file quantity corresponding in the sequence list as first
Classification;
By the secondary music file in the sequence list in addition to the corresponding music file of the first category, according to pre-
If mode is inserted into the first category between adjacent two music file, to obtain the shuffle playlist.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
The second category in the sequence list is obtained, and by the corresponding music file of the second category according to default side
Formula is uniformly inserted into the first category between adjacent two music file, to obtain the first playlist;
Based on the sequence list, according to the predetermined manner, each of insertion will not be completed in the sequence list successively
The corresponding music file of classification is inserted into respectively in adjacent preceding primary obtained playlist between adjacent two music file, until institute
Stating music file to be played, all sequence is completed, to obtain the shuffle playlist.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
Based on the sequence list, the first category and the corresponding music file number of the second category are obtained
Amount;
According to position calculation formula, it is corresponding in the first category to calculate corresponding music file in the second category
The position being inserted into music file;
Based on the result of calculation, music file corresponding in the second category is inserted into adjacent in the first category
Between two music files, to obtain the first playlist.
Further, processor 1001 can call the music shuffle program stored in memory 1005, also perform
It operates below:
When the music file to be played in the shuffle playlist finishes, play in the shuffle playlist
First music file, wherein the first music file be initial play music file.
With reference to Fig. 2, Fig. 2 is the flow diagram of one embodiment of music shuffle method of the present invention, and the music is random
Playback method includes:
Step S10 obtains the corresponding singer informations of music file to be played, and waits to broadcast to described based on the singer informations
Playback music file is classified, to obtain the classification results being made of multiple classifications;
In the present embodiment, the corresponding singer informations of music file to be played are obtained, then according to singer informations, to institute
The music file to be played having is classified, to obtain the classification results being made of multiple classifications.Specifically, it is broadcast in progress music
When putting, user can create song list, and add in the music oneself liked in list is sung based on itself hobby, so that one
Often there are the corresponding music files of multiple singers in music song list.When carrying out music shuffle, first according to music
The corresponding singer informations of file classify music file, using the music of same singer as a classification, simultaneously as
Music information it is incomplete, singer informations are unknown when leading to music download so that this class music there is no corresponding singer, and
For the music file that this kind of singer informations is unknown, by it collectively as a classification.For example known singer has 3 in song list
A, respectively A, B, C, and also a few song files do not have singer informations, then the classification obtained when being classified at this time has 4
It is a, respectively A classifications, B classifications, C classifications and unknown classification.
Step S20 based on the classification results, is ranked up the music file to be played, with obtain accordingly with
Machine playlist;
In the present embodiment, after music file to be played is classified according to singer informations, according to classification results to institute
The music file to be played having is ranked up, and obtains final shuffle playlist.Specifically, divided treating played file
When class is to obtain A, B, C and unknown classification, according to the magnitude relationship of included music file quantity of all categories, then according to phase
The music file location calculation formula answered calculates the location information of music file to be played, with to all music files to be played
Carry out translocation sorting so that the music file of identical singer adjacent will not occur, and then obtain final shuffle playlist.Than
Such as, 4 classifications and its corresponding music file quantity classified are respectively:A classifications have 5 song files, B classifications to have 4
Song, C classifications have 3 songs and unknown classification to have 2 songs, at this time using A classifications as target classification, and to A classifications
In music file be ranked up, then calculate in B classifications, C classifications and unknown classification corresponding music file in A classification sounds
B classifications, C classifications and the corresponding music file of unknown classification are finally inserted into A classes by the location information in music file list successively
In not corresponding music file sequence, to form final shuffle playlist.
Step S30 according to the shuffle playlist, plays corresponding music file.
In the present embodiment, treat in the manner described above after playing music is ranked up, obtain final shuffle
List, and then the to be played music file all according to obtained shuffle playlist loop play when carrying out shuffle.
Have 3 singers, corresponding music for 5 song file of A singer (A1, A2,
A3, A4, A5), 4 song file (B1, B2, B3, B4) of B singer and C singer 3 song file (C1, C2, C3), at this time
The shuffle playlist arrived be A1B1C1A2B2A3C2B3A4B4C3A5, and then when playing music according to obtained with machine sowing
It emplaces table and carries out music.When user, which is based on obtained shuffle playlist, carries out music, if in list
When all music files finish, then again play shuffle playlist in first music file, such as user play
First music file is A1, when carrying out music according to shuffle playlist, when A5 music files finish playing, is broadcast herein
Playback music file A1, and foundation is played out according to the playing sequence of music file in shuffle playlist.
It should be noted that number is only the differentiation to music file, a specific music file is not limited to,
By taking shuffle playlist A1B1C1A2B2A3C2B3A4B4C3A5 as an example, the positions of 3 songs of C singer be respectively C1, C2 with
And C3, wherein C1, C2, C3 are any one head in 3 songs, but and are differed, that is, C1, C2, C3 represent difference respectively
Music file.
In the present embodiment, it by obtaining the corresponding singer informations of music file to be played, and will be treated based on singer informations
Playing music is classified, and is then treated playing music according to classification results and is sorted accordingly, to obtain pair
So that when carrying out music, sound to be played is played based on obtained shuffle playlist for the shuffle playlist answered
Music file.It realizes when music carries out shuffle, the music file of different singers can be played alternately, improve user's body
It tests.
Further, with reference to Fig. 3, Fig. 3 is the refinement flow diagram of step S20 in Fig. 2.
Based on Fig. 2, step S20, based on the classification results, the music file to be played is ranked up, to obtain
Corresponding shuffle playlist, including:
Step S21 based on the classification results, obtains the quantity of the corresponding music file of all categories;
Step S22, the magnitude relationship of the quantity based on the corresponding music file of all categories, to the classification into
Row sequence, to obtain corresponding sequence list;
Step S23 based on the sequence list, the music to be played is ranked up, to obtain the shuffle
List.
In the present embodiment, according to classification results, the corresponding music file quantity of institute of all categories is obtained, then according to each
Music file quantity corresponding to classification, is ranked up to of all categories, right finally according to the ordering relation between of all categories
All music files to be played are ranked up.Specifically, the classification results obtained after singing in antiphonal style and singly being classified have for A classifications
5 song files, B classifications have 4 songs, C classifications to have 3 songs and unknown classification to have 2 songs, wherein unknown classification is used
U identify, it is of all categories at this time between the magnitude relationship based on music file quantity be:A>B>C>U, then by music file number
Measure most classification target classifications, and by remaining in of all categories corresponding music file according to music file quantity magnitude relationship
It is sequentially inserted into target classification, it is, using A classifications as target classification, the sequence of music file is A1A2A3A4A5, due to
The magnitude relationship of music file quantity between BCU is B>C>U, then by the calculation formula of position first by B classifications 4 first sounds
Music file (B1, B2, B3, B4) is uniformly inserted into the corresponding sequence of A classification music files, is obtained one and is included two classifications of AB
Then music file in two classifications of CU is uniformly inserted into adjacent by the sequence A1B1A2B2A3B3A4B4A5 of music file successively
In preceding primary obtained sequence, final shuffle playlist is obtained.
It should be pointed out that A1, A2, A3, A4, A5 are only the area to carrying out music file in A classifications in the present embodiment
Point, a specific music file is not limited to, but A1, A2, A3, A4, A5 represent 5 first different sounds in A classifications respectively
Music file.
Further, with reference to Fig. 4, Fig. 4 is the refinement flow diagram of step S23 in Fig. 3.
Based on Fig. 3, step S23, based on the sequence list, the music to be played is ranked up, it is described to obtain
Shuffle playlist, including:
Step S231, based on the sequence list, by the most class of music file quantity corresponding in the sequence list
It Zuo Wei not first category;
Step S232, by the secondary music text in the sequence list in addition to the corresponding music file of the first category
Part is inserted into according to predetermined manner in the first category between adjacent two music file, to obtain the shuffle playlist.
In the present embodiment, according to obtained sequence list, the most classification of music file quantity is determined, and this classification is made
For first category, then all music files in addition to the music file that first category is included are inserted according to preset mode
Enter in the corresponding music file sequence of first category, and then obtain shuffle playlist.Specifically, it is based between of all categories at this time
The magnitude relationship of music file quantity is:A>B>C>U, wherein A classifications have 5 song files, B classifications to have 4 songs, C
Classification has 3 songs and U (unknown) classification to have 2 songs, then at this time using A classifications as first category, then by B, C, U tri-
Music file in a classification is inserted into first category.
Further, step S232, by the sequence list in addition to the corresponding music file of the first category
Music file is inserted into according to predetermined manner in the corresponding music file of the first category, to obtain the shuffle playlist,
Including:
Step a, obtains the second category in the sequence list, and by the corresponding music file of the second category according to
Predetermined manner is uniformly inserted into the first category between adjacent two music file, to form the first playlist;
Step b based on the sequence list, according to the predetermined manner, will not be completed in the sequence list insert successively
The corresponding music file of all categories entered be inserted into respectively it is adjacent before in primary obtained playlist adjacent two music file it
Between, until the music file to be played all complete by sequence, to obtain the shuffle playlist.
In the present embodiment, first according to sequence list, first category and the corresponding music text of second category are obtained
Number of packages amount then according to position calculation formula, calculates in second category corresponding music file in the corresponding music of first category
Music file corresponding in second category again according to result of calculation, is inserted into first category pair by the position being inserted into file
In the music file answered, to obtain the first playlist, finally according to same mode successively by included music of all categories
File is inserted into the adjacent preceding playlist once obtained, and then finally obtains shuffle playlist.
Specifically, using A classifications as during first category, the second category in sequence list is obtained first, wherein second
Classification comes second classification for music file population size, and in the present embodiment, the second music file classification is B classifications, A
Classification is first category and includes 5 song files (A1, A2, A3, A4, A5), includes 4 song files in B classifications
(B1, B2, B3, B4) with reference to Fig. 5, is first ranked up the music file in A classifications, to obtain the music file in A classifications
Sequence is A1A2A3A4A5, then calculates the position that each music file is inserted into A classification sequence lists in B classifications, wherein
Between amount music file, calculation formula is for specific insertion position:Bi=round (i-1+i*a/b), wherein, Bi represents B classes
Position of the i-th song file in new sequence in not, round bands round up in vain seeks integer, and a represents the sound in A classifications
Music file quantity, b represent music file quantity in B classifications, then position of the music file in B classifications in the first playlist
Respectively:
B1=round (1-1+1*5/4)=round (1.25)=2;
B2=round (2-1+2*5/4)=round (3.5)=4;
B3=round (3-1+3*5/4)=round (5.75)=6;
B4=round (4-1+4*5/4)=round (8)=8.
There are 9 (5+4) song files in the first playlist then obtained at this time, new sequence is
A1B1A2B2A3B3A4B4A5。
Equally, the music included for remaining classification in song list, calculates each music file institute in the same way
The position of insertion for 3 songs in C classifications, according to calculation formula Ci=round (i-1+i* (a+b)/c), obtains C1=
3, C2=7, C3=11, i.e. the second playlist are A1B1C1A2B2A3C2B3A4B4C3A5.Then will not have in song list successively
The music file corresponding to classification that corresponding music file is inserted into obtains its specific location according to position calculation formula and inserts
Enter corresponding position, i.e., the music file in U classifications is inserted into the adjacent preceding playlist once obtained, by calculation formula Ui
=round (i-1+i* (a+b+c)/u), obtains U1=6, U2=13, to obtain shuffle playlist
A1B1C1A2B2U1A3C2B3A4B4C3U2A5。
Based on above-mentioned calculation formula, general formula is:S (n) i=(i-1+i* ∑ s (n)/s (n)), wherein, S (n) is
N-th classification, i represent the i-th song file in S (n), and ∑ s (n) represents first category to the corresponding music file number of the n-th classification
The summation of amount, s (n) represent the music file quantity of the n-th classification.
The present invention also provides a kind of mobile terminals.
Mobile terminal provided by the present invention includes:It memory, processor and is stored on the memory and can be in institute
The music shuffle program run on processor is stated, is realized such as when the music shuffle program is performed by the processor
The step of music shuffle method described above.
Wherein, the music shuffle program run on the processor is performed realized method and can refer to this
The each embodiment of invention music shuffle method, details are not described herein.
In addition the embodiment of the present invention also proposes a kind of computer readable storage medium.
Music shuffle program, the music shuffle program are stored on computer readable storage medium of the present invention
The step of music shuffle method as described above is realized when being executed by processor.
Wherein, the music shuffle program run on the processor is performed realized method and can refer to this
The each embodiment of invention music shuffle method, details are not described herein.
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 system including a series of elements not only include those elements, and
And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or system institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or system.
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 of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
- A kind of 1. music shuffle method, which is characterized in that the music shuffle method includes the following steps:Obtain the corresponding singer informations of music file to be played, and based on the singer informations to the music file to be played into Row classification, to obtain the classification results being made of multiple classifications;Based on the classification results, the music file to be played is ranked up, to obtain corresponding shuffle playlist;According to the shuffle playlist, corresponding music file is played.
- 2. music shuffle method as described in claim 1, which is characterized in that described to obtain the corresponding song of music to be played Hand information, and the step of being classified based on the singer informations to the music to be played include:The corresponding singer informations of music to be played are obtained, and the identical music of singer informations in the music file to be played is literary Part is as a classification.
- 3. music shuffle method as claimed in claim 2, which is characterized in that described to obtain the corresponding mark of music to be played The step of knowing information, and being classified based on music to be played described in the identification information pair is further included:If the corresponding singer informations of the music file to be played are unknown message, by the corresponding music text of the unknown message Part is as a classification.
- 4. music shuffle method as claimed in claim 3, which is characterized in that it is described based on the classification results, to institute It states music file to be played to be ranked up, to obtain corresponding shuffle playlist the step of includes:Based on the classification results, the quantity of the corresponding music file of all categories is obtained;The magnitude relationship of quantity based on the corresponding music file of all categories, is ranked up the classification, with To corresponding sequence list;Based on the sequence list, the music to be played is ranked up, to obtain the shuffle playlist.
- 5. music shuffle method as claimed in claim 4, which is characterized in that it is described based on the sequence list, by institute It states music to be played to be ranked up, to obtain shuffle playlist the step of includes:Based on the sequence list, using the most classification of music file quantity corresponding in the sequence list as the first kind Not;By the secondary music file in the sequence list in addition to the corresponding music file of the first category, according to default side Formula is inserted into the first category between adjacent two music file, to obtain the shuffle playlist.
- 6. music shuffle method as claimed in claim 5, which is characterized in that it is described will be in the sequence list except described Secondary music file except the corresponding music file of first category is inserted into according to predetermined manner adjacent two in the first category Between music file, to obtain shuffle playlist the step of includes:The second category in the sequence list is obtained, and the corresponding music file of the second category is equal according to predetermined manner It is even to be inserted into the first category between adjacent two music file, to obtain the first playlist;Based on the sequence list, according to the predetermined manner, the of all categories of insertion will not be completed in the sequence list successively Corresponding music file is inserted into respectively in adjacent preceding primary obtained playlist between adjacent two music file, until described treat Playing music all complete by sequence, to obtain the shuffle playlist.
- 7. music shuffle method as claimed in claim 6, which is characterized in that it is described obtain in the sequence list the Two classifications, and the corresponding music file of the second category is uniformly inserted into according to predetermined manner adjacent two in the first category Between music file, to obtain the first playlist the step of includes:Based on the sequence list, the first category and the corresponding music file quantity of the second category are obtained;According to position calculation formula, corresponding music file is calculated in the second category in the corresponding music of the first category The position being inserted into file;Based on the result of calculation, music file corresponding in the second category is inserted into adjacent two sound in the first category Between music file, to obtain the first playlist.
- 8. music shuffle method as described in claim 1, which is characterized in that the music shuffle method is also wrapped It includes:When the music file to be played in the shuffle playlist finishes, in the shuffle playlist is played One music file, wherein the first music file is initial play music file.
- 9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Memory, processor and it is stored in the storage On device and the music shuffle program that can run on the processor, the music shuffle program is by the processor It is realized during execution such as the step of music shuffle method described in any item of the claim 1 to 8.
- 10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium music with Machine playing program is realized when the music shuffle program is executed by processor as described in any item of the claim 1 to 8 The step of music shuffle method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810025839.9A CN108255460A (en) | 2018-01-11 | 2018-01-11 | Music shuffle method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810025839.9A CN108255460A (en) | 2018-01-11 | 2018-01-11 | Music shuffle method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108255460A true CN108255460A (en) | 2018-07-06 |
Family
ID=62726121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810025839.9A Pending CN108255460A (en) | 2018-01-11 | 2018-01-11 | Music shuffle method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108255460A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110472073A (en) * | 2019-08-20 | 2019-11-19 | 深圳传音控股股份有限公司 | Shuffle method, apparatus and computer readable storage medium |
CN110706040A (en) * | 2019-10-16 | 2020-01-17 | 柯优兔区块链研究(广州)中心(有限合伙) | Information acquisition method and device |
CN112235065A (en) * | 2020-09-23 | 2021-01-15 | 湖南声广信息科技有限公司 | Broadcasting station song arrangement method and system |
CN112528070A (en) * | 2019-09-17 | 2021-03-19 | 惠州迪芬尼声学科技股份有限公司 | Method for playing music and computer with music playing function |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575599A (en) * | 2001-08-31 | 2005-02-02 | 克里A·汤普森 | Method and apparatus for random play technology |
CN1875639A (en) * | 2003-11-06 | 2006-12-06 | 诺基亚公司 | Automatic personal playlist generation with implicit user feedback |
US20110107213A1 (en) * | 2009-10-30 | 2011-05-05 | Apple Inc. | Song flow methodology in random playback |
CN102054509A (en) * | 2009-10-30 | 2011-05-11 | 炬力集成电路设计有限公司 | Random playing method and device |
CN104978981A (en) * | 2015-01-29 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Random playing method and device of music |
CN105138557A (en) * | 2015-07-22 | 2015-12-09 | 北京锤子数码科技有限公司 | Music random play method and apparatus |
-
2018
- 2018-01-11 CN CN201810025839.9A patent/CN108255460A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575599A (en) * | 2001-08-31 | 2005-02-02 | 克里A·汤普森 | Method and apparatus for random play technology |
CN1875639A (en) * | 2003-11-06 | 2006-12-06 | 诺基亚公司 | Automatic personal playlist generation with implicit user feedback |
US20110107213A1 (en) * | 2009-10-30 | 2011-05-05 | Apple Inc. | Song flow methodology in random playback |
CN102054509A (en) * | 2009-10-30 | 2011-05-11 | 炬力集成电路设计有限公司 | Random playing method and device |
CN104978981A (en) * | 2015-01-29 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Random playing method and device of music |
CN105138557A (en) * | 2015-07-22 | 2015-12-09 | 北京锤子数码科技有限公司 | Music random play method and apparatus |
Non-Patent Citations (1)
Title |
---|
GENTLEMING: "随机音乐播放的算法", 《PMCAFF》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110472073A (en) * | 2019-08-20 | 2019-11-19 | 深圳传音控股股份有限公司 | Shuffle method, apparatus and computer readable storage medium |
CN112528070A (en) * | 2019-09-17 | 2021-03-19 | 惠州迪芬尼声学科技股份有限公司 | Method for playing music and computer with music playing function |
CN110706040A (en) * | 2019-10-16 | 2020-01-17 | 柯优兔区块链研究(广州)中心(有限合伙) | Information acquisition method and device |
CN110706040B (en) * | 2019-10-16 | 2023-05-05 | 柯优兔区块链研究(广州)中心(有限合伙) | Information acquisition method and device |
CN112235065A (en) * | 2020-09-23 | 2021-01-15 | 湖南声广信息科技有限公司 | Broadcasting station song arrangement method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255460A (en) | Music shuffle method, mobile terminal and computer readable storage medium | |
CN108769814A (en) | Video interaction method, device and readable medium | |
KR102207208B1 (en) | Method and apparatus for visualizing music information | |
US10661175B2 (en) | Intelligent user-based game soundtrack | |
CN107885889A (en) | Feedback method, methods of exhibiting and the device of search result | |
CN107871500A (en) | One kind plays multimedia method and apparatus | |
US20080201000A1 (en) | Contextual grouping of media items | |
CN108805091A (en) | Method and apparatus for generating model | |
CN109688469A (en) | A kind of advertisement demonstration method and show device | |
US20220391060A1 (en) | Methods for displaying and providing multimedia resources | |
CN109040297A (en) | User's portrait generation method and device | |
US20070180389A1 (en) | Graphical user interface for accessing data files | |
CN106649697B (en) | A kind of software online interaction experiential method | |
CN107872685A (en) | A kind of player method of multi-medium data, device and computer installation | |
US20140031086A1 (en) | System of servicing famous people's characters in smart phone and operation method thereof | |
CN108763564A (en) | Using method for pushing, device and computer readable storage medium | |
CN108763452A (en) | Game application method for pushing, system and computer storage media based on big data | |
CN109754316A (en) | Products Show method, Products Show system and storage medium | |
CN108134961A (en) | Video filtering method, mobile terminal and computer readable storage medium | |
CN103488669B (en) | Message processing device, information processing method and program | |
CN109600628A (en) | Video creating method, device, computer equipment and storage medium | |
US9839851B2 (en) | Allowing media and gaming environments to effectively interact and/or affect each other | |
KR20200011779A (en) | Method and apparatus for providing user’s motion recognition based dance game | |
CN109361930A (en) | Method for processing business, device and computer readable storage medium | |
CN107391608B (en) | Picture display method and device, storage medium and electronic equipment |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221215 Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203 Applicant after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd. Address before: Room 922 / 926, block a, No. 1, Lane 399, shengxia Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203 Applicant before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180706 |
|
RJ01 | Rejection of invention patent application after publication |