CN110624243A - Method and device for playing music and electronic equipment - Google Patents

Method and device for playing music and electronic equipment Download PDF

Info

Publication number
CN110624243A
CN110624243A CN201910811574.XA CN201910811574A CN110624243A CN 110624243 A CN110624243 A CN 110624243A CN 201910811574 A CN201910811574 A CN 201910811574A CN 110624243 A CN110624243 A CN 110624243A
Authority
CN
China
Prior art keywords
music group
audio
playing
group
current
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.)
Withdrawn
Application number
CN201910811574.XA
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910811574.XA priority Critical patent/CN110624243A/en
Publication of CN110624243A publication Critical patent/CN110624243A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method, a device and electronic equipment for playing music, wherein the method comprises the following steps: playing the audio in the current music group; generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group; and taking the next music group to be played as the current music group, and playing the audio in the current music group. By the embodiment of the invention, the plurality of audios are grouped to form the plurality of music groups, and the music groups are randomly selected to be played, so that a user can experience that music is continuously changed, the endless playing and rich randomness of the music are realized, and the manufacturing cost of the music, the occupation of a mobile phone memory during the operation and the capacity of the bag body are reduced.

Description

Method and device for playing music and electronic equipment
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for playing music, and an electronic device.
Background
For music type games, music is the core of the game. In the endless level type music game, in order to enable a player to experience the music inexhaustible, the player must make background music for a long enough time, and then circularly play the background music in the game process, which is also some existing processing schemes, but the scheme has great disadvantages, such as the player has good technology, the player can not fail for ten minutes or more than half an hour, and then the player cannot make the background music for one tenth minute or more than half an hour, which brings great music making cost, and the music files are also large, thus causing a series of problems of excessive memory occupation, too large game bag body and the like.
Disclosure of Invention
The present invention is directed to solving at least one of the above problems.
Therefore, the embodiment of the invention provides a method, a device and electronic equipment for playing music, which are used for grouping a plurality of audios to form a plurality of music groups and randomly selecting the music groups to play, so that a user can experience that music is continuously changed, the endless playing and rich randomness of the music are realized, and the manufacturing cost of the music, the occupation of a mobile phone memory during the operation and the capacity of a bag body are reduced.
In a first aspect, an embodiment of the present invention provides a method for playing music, including the following steps:
playing the audio in the current music group;
generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group;
and taking the next music group to be played as the current music group, and playing the audio in the current music group.
With reference to the first aspect, in a first implementation manner of the first aspect, the method further includes: the plurality of audios are divided into a plurality of music groups in advance according to the beats per minute of the audios.
With reference to the first aspect, in a second implementation manner of the first aspect, the playing the audio in the current music group includes:
playing preset transition audio first, and then playing the audio in the current music group;
or, the audio in the current music group is played first, and then the preset transition audio is played.
With reference to the first aspect, in a third implementation manner of the first aspect, the pre-configuring a start time and an end time of each music group, and the playing the audio in the current music group includes:
playing the audio in the current music group through a system player according to the starting time of the current music group;
the step of generating the first random number is performed when the end time of the current music group is reached.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the skipping condition is that a current music group skips to a numerical range corresponding to each music group;
the determining of the next music group to be played according to the first random number and the skip condition of the current music group comprises: and taking the music group corresponding to the numerical range matched with the first random number as the next music group to be played.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the playing the audio in the current music group includes: selecting one audio frequency from the current music group and playing
With reference to the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the randomly selecting one audio from the current music group includes: and generating a second random number, and determining the played audio according to the second random number and the playing condition of each audio in the current music group.
With reference to the first aspect, in a seventh implementation manner of the first aspect, the method further includes:
determining a display object corresponding to the current music group;
and displaying the display object corresponding to the current music group when the audio in the current music group is played.
In a second aspect, an embodiment of the present invention provides an apparatus for playing music, including: the device comprises a first playing module, a first determining module and a first updating module;
the first playing module is used for playing the audio in the current music group;
the first determining module is used for generating a first random number and determining a next music group to be played according to the first random number and the skipping condition of the current music group;
the first updating module is configured to use the next music group to be played, which is determined by the first determining module, as a current music group, and start the first playing module to play the audio in the current music group.
With reference to the second aspect, in a first implementation manner of the second aspect, the apparatus further includes: a first grouping module;
the first grouping module is used for preliminarily dividing the plurality of audios into a plurality of music groups according to the beats per minute of the audios.
With reference to the second aspect, in a second implementation manner of the second aspect, the first playing module is specifically configured to: playing preset transition audio first, and then playing the audio in the current music group; or, the audio in the current music group is played first, and then the preset transition audio is played.
With reference to the second aspect, in a third embodiment of the second aspect, the apparatus further comprises: a first configuration module;
the first configuration module is used for configuring the starting time and the ending time of each music group in advance;
the first playing module is specifically configured to: playing the audio in the current music group through a system player according to the start time of the current music group configured by the first configuration module; and when the ending time of the current music group is reached, the first determining module is started to determine the next music group to be played.
With reference to the second aspect, in a fourth implementation manner of the second aspect, the skipping condition is that the current music group skips to a numerical range corresponding to each music group;
the first determining module is specifically configured to: and generating a first random number, and taking the music group corresponding to the numerical range matched with the first random number as the next music group to be played.
With reference to the second aspect, in a fifth implementation manner of the second aspect, the first playing module includes: the device comprises a first selection unit and a first playing unit;
the first selection unit is used for selecting one audio from the current music group;
and the first playing unit is used for playing the audio selected by the first selecting unit.
With reference to the fifth implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the first selecting unit is specifically configured to generate a second random number, and determine the played audio according to the second random number and a playing condition of each audio in the current music group.
With reference to the second aspect, in a seventh implementation manner of the second aspect, the apparatus further includes: the device comprises a second determination module and a first display module;
the second determining module is used for determining a display object corresponding to the current music group;
and the first display module is used for displaying the display object which is determined by the second determination module and corresponds to the current music group when the audio in the current music group is played.
In a third aspect, an embodiment of the present invention provides an electronic device for playing music, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor reads the executable program code stored in the memory and performs the following operations:
playing the audio in the current music group;
generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group;
and taking the next music group to be played as the current music group, and playing the audio in the current music group.
According to the method, the device and the electronic equipment for playing the music, provided by the embodiment of the invention, the plurality of audios are grouped according to the beats per minute to form a plurality of music groups, and different music groups correspond to different display objects in the level card, so that the game background music is more suitable for the game content; the music group is randomly selected, then the audio frequencies in the music group are randomly selected, so that a plurality of audio frequencies have more combination modes to form game background music, better game experience is brought to a user, the user can experience that the music is continuously changed, the music is played endlessly and rich randomness is realized, and the manufacturing cost of the music, the occupation of a mobile phone memory during operation and the capacity of a bag body are reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for playing music according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for playing music according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating an apparatus for playing music according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
Furthermore, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated, whereby a feature defined as "first", "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Example one
Fig. 1 is a flowchart of a method for playing music according to a first embodiment of the present invention, and as shown in fig. 1, the method of this embodiment may be applied to a target application of a mobile terminal, and may include:
step 101, playing the audio in the current music group;
102, generating a first random number, and determining a next music group to be played according to the first random number and the skipping condition of the current music group;
and 103, taking the next music group to be played as the current music group, and playing the audio in the current music group.
According to the method for playing the music, the plurality of audios are grouped to form the plurality of music groups, the music groups are randomly selected to be played, a user can experience that the music is constantly changed, the music is played endlessly and rich randomness is achieved, and the manufacturing cost of the music, the occupation of a mobile phone memory during operation and the capacity of the bag body are reduced.
Example two
Fig. 2 is a flowchart of a method for playing music according to a second embodiment of the present invention, and as shown in fig. 2, the method of this embodiment may be applied to a target application of a mobile terminal, and may include:
step 201, according to the start time of the current music group, playing the audio in the current music group through a system player, and when the end time of the current music group is reached, executing step 202;
in this embodiment, the current music group includes at least two audios.
In this embodiment, the plurality of audios are divided into a plurality of music groups in advance according to the beats per minute of the audios, that is, the beats per minute of the audios in one music group are the same. For example, there are A, B, C three music groups, 130 beats per minute for audio in the a music group, 100 beats per minute for audio in the B music group, and 150 beats per minute for audio in the C music group, where there are audio a1, a2, and a3 in the a music group, audio B1, B2, and B3 in the B music group, and audio C1 and C2 in the C music group. The time lengths of the respective audios in the same music group may be the same for program playing and processing, but of course, the time lengths of the respective audios in the same music group may also be different.
In this embodiment, the music groups may be spliced into a background music audio, and each music group has a respective start time and end time. For example, the duration of the a music group is 20 seconds, the duration of the B music group is 15 seconds, the duration of the C music group is 10 seconds, and after A, B, C three music groups are spliced into one audio, the start time of the a music group is 0 th second and the end time is 20 th second, the start time of the B music group is 20 th second and the end time is 35 th second, and the start time of the C music group is 35 th second and the end time is 45 th second. If the current music group is the B music group, the 20 th to 35 th seconds of the background music audio are played through the system player, that is, the audio in the current music group is played through the system player.
In this embodiment, when the first event is monitored, the audio in the current music group is played. For example, the first event is an event that a user clicks a "start" button is received, and when the first event is monitored and music needs to be played, the audio in the music group starts to be played.
Step 202, generating a first random number within a first preset range, and determining a next music group to be played according to the first random number and the skip condition of the current music group.
In this embodiment, the skipping condition is that the current music group skips to a numerical range corresponding to each music group; for example, the first preset range is 0 to 100, and the jumping condition of the a music group is: the first range is 0 to 20, and then jumping to the A music group; a second range 21 to 60, then jump to music group B; third range 61 to 100, then jump to the C music group.
In this embodiment, determining the next music group to be played according to the first random number and the skip condition of the current music group includes: and taking the music group corresponding to the numerical range matched with the first random number as the next music group to be played. For example, if the first random number is 53, the first random number matches the second range, the corresponding skipped music group is a B music group, and the next music group to be played is a B music group.
Step 203, taking the next music group to be played as the current music group, and returning to step 201.
In this embodiment, can also include the predetermined transition audio frequency, the transition audio frequency is used for playing in the clearance of two music group plays, prevents to appear the problem that the audio frequency group is too stiff when jumping the broadcast, makes the audio frequency group jump the broadcast softly naturally, and after the play of last music group was accomplished promptly, before the play of next music group begins, the play transition audio frequency, consequently, the audio frequency of playing in the current music group can include:
playing preset transition audio first, and then playing the audio in the current music group;
or, the audio in the current music group is played first, and then the preset transition audio is played.
In this embodiment, playing the audio in the current music group includes: and selecting one audio from the current music group and playing. For example, if the current music group is a B music group, and there are audio B1, B2 and B3 in the B music group, one of the audio B1, B2 and B3 is selected for playing.
In this embodiment, randomly selecting one audio from the current music group includes: and generating a second random number in a second preset range, and determining the played audio according to the second random number and the playing condition of each audio in the current music group.
In this embodiment, the playing condition is a numerical range corresponding to each audio in the current music group; for example, the second predetermined range is 0 to 100, the range corresponding to the audio b1 is 0 to 30, the range corresponding to the audio b2 is 31 to 65, the range corresponding to the audio b3 is 66 to 100, and if the second random number is 26, the second random number matches with the range corresponding to the audio b1, it is determined that the played audio is the audio b 1.
In this embodiment, when the second event is monitored, the audio in the current music group stops playing. For example, the second event is an event that a game failure of the user is received or the user pushes out a game, and when the second event is monitored, it is determined that music does not need to be played, the playing of the audio in the music group is stopped.
In this embodiment, the method may further include:
step 204, determining the display object corresponding to the current music group.
In this embodiment, the display object includes a display icon and a display number.
In this embodiment, the music groups are associated with the display objects of the level, and different music groups correspond to different display objects in the level. For example, different music groups correspond to different game difficulties in the level, the display icons of the display objects corresponding to the music group with a larger number of beats per minute are larger or the display number is larger, and the display icons of the display objects corresponding to the music group with a smaller number of beats per minute are smaller or the display number is smaller.
In step 205, when the audio in the current music group is played, the display object corresponding to the current music group is displayed.
In this embodiment, when the audio in the current music group is played, the corresponding display object is displayed, and the audio is matched with the display object of the level, so that better game experience can be brought to the user.
According to the method for playing the music, the plurality of audios are grouped according to the beats per minute to form a plurality of music groups, and different music groups correspond to different display objects in the level card, so that the game background music is more fit with the game content; the music group is randomly selected, then the audio frequencies in the music group are randomly selected, so that a plurality of audio frequencies have more combination modes to form game background music, better game experience is brought to a user, the user can experience that the music is continuously changed, the music is played endlessly and rich randomness is realized, and the manufacturing cost of the music, the occupation of a mobile phone memory during operation and the capacity of a bag body are reduced.
Example four
Fig. 3 is a schematic structural diagram of an apparatus for playing music according to a third embodiment of the present invention, as shown in fig. 3, the apparatus of the present embodiment includes: a first playing module 301, a first determining module 302 and a first updating module 303;
the first playing module 301 is configured to play audio in a current music group;
the first determining module 302 is configured to generate a first random number, and determine a next music group to be played according to the first random number and a skip condition of a current music group;
the first updating module 303 is configured to use the next music group to be played, which is determined by the first determining module 302, as a current music group, and start the first playing module 301 to play the audio in the current music group.
In this embodiment, the apparatus further includes: a first grouping module;
the first grouping module is used for preliminarily dividing the plurality of audios into a plurality of music groups according to the beats per minute of the audios.
In this embodiment, the first playing module 301 is specifically configured to: playing preset transition audio first, and then playing the audio in the current music group; or, the audio in the current music group is played first, and then the preset transition audio is played.
In this embodiment, the apparatus further includes: a first configuration module;
the first configuration module is used for configuring the starting time and the ending time of each music group in advance;
the first playing module 301 is specifically configured to: playing the audio in the current music group through a system player according to the start time of the current music group configured by the first configuration module; when the end time of the current music group is reached, the first determining module 302 is started to determine the next music group to be played.
In this embodiment, the skipping condition is that the current music group skips to a numerical range corresponding to each music group;
the first determining module 302 is specifically configured to: and generating a first random number, and taking the music group corresponding to the numerical range matched with the first random number as the next music group to be played.
In this embodiment, the first playing module 301 includes: the device comprises a first selection unit and a first playing unit;
the first selection unit is used for selecting one audio from the current music group;
and the first playing unit is used for playing the audio selected by the first selecting unit.
In this embodiment, the first selecting unit is specifically configured to generate a second random number, and determine the audio to be played according to the second random number and the playing condition of each audio in the current music group.
In this embodiment, the apparatus further includes: the device comprises a second determination module and a first display module;
the second determining module is used for determining a display object corresponding to the current music group;
and the first display module is used for displaying the display object which is determined by the second determination module and corresponds to the current music group when the audio in the current music group is played.
According to the device for playing music, the plurality of audios are grouped according to the beats per minute to form a plurality of music groups, and different music groups correspond to different display objects in the level card, so that the game background music is more fit with the game content; the music group is randomly selected, then the audio frequencies in the music group are randomly selected, so that a plurality of audio frequencies have more combination modes to form game background music, better game experience is brought to a user, the user can experience that the music is continuously changed, the music is played endlessly and rich randomness is realized, and the manufacturing cost of the music, the occupation of a mobile phone memory during operation and the capacity of a bag body are reduced.
The embodiment of the invention also provides electronic equipment for playing music.
Fig. 4 is a schematic structural diagram of an embodiment of an electronic device of the present invention, where the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, and performs the following operations:
playing the audio in the current music group;
generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group;
and taking the next music group to be played as the current music group, and playing the audio in the current music group.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1-2 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
The above description of the embodiments will make clear to those skilled in the art that the present invention can be implemented
The invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example" or "some examples" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method of playing music, comprising the steps of:
playing the audio in the current music group;
generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group;
and taking the next music group to be played as the current music group, and playing the audio in the current music group.
2. The method of claim 1, further comprising: the plurality of audios are divided into a plurality of music groups in advance according to the beats per minute of the audios.
3. The method of claim 1, wherein playing the audio in the current music group comprises:
playing preset transition audio first, and then playing the audio in the current music group;
or, the audio in the current music group is played first, and then the preset transition audio is played.
4. The method of claim 1, wherein the start time and the end time of each music group are pre-configured, and wherein playing the audio in the current music group comprises:
playing the audio in the current music group through a system player according to the starting time of the current music group;
the step of generating the first random number is performed when the end time of the current music group is reached.
5. The method according to claim 1, wherein the skipping condition is that the current music group skips to a numerical range corresponding to each music group;
the determining of the next music group to be played according to the first random number and the skip condition of the current music group comprises: and taking the music group corresponding to the numerical range matched with the first random number as the next music group to be played.
6. The method of claim 1, wherein playing the audio in the current music group comprises: and selecting one audio from the current music group and playing.
7. The method of claim 6, wherein randomly selecting an audio from the current music group comprises: and generating a second random number, and determining the played audio according to the second random number and the playing condition of each audio in the current music group.
8. The method of claim 1, further comprising:
determining a display object corresponding to the current music group;
and displaying the display object corresponding to the current music group when the audio in the current music group is played.
9. An apparatus for playing music, comprising: the device comprises a first playing module, a first determining module and a first updating module;
the first playing module is used for playing the audio in the current music group;
the first determining module is used for generating a first random number and determining a next music group to be played according to the first random number and the skipping condition of the current music group;
the first updating module is configured to use the next music group to be played, which is determined by the first determining module, as a current music group, and trigger the first playing module to play the audio in the current music group.
10. An electronic device that plays music, the electronic device comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor reads the executable program code stored in the memory and performs the following operations:
playing the audio in the current music group;
generating a first random number, and determining the next music group to be played according to the first random number and the skipping condition of the current music group;
and taking the next music group to be played as the current music group, and playing the audio in the current music group.
CN201910811574.XA 2019-08-29 2019-08-29 Method and device for playing music and electronic equipment Withdrawn CN110624243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910811574.XA CN110624243A (en) 2019-08-29 2019-08-29 Method and device for playing music and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910811574.XA CN110624243A (en) 2019-08-29 2019-08-29 Method and device for playing music and electronic equipment

Publications (1)

Publication Number Publication Date
CN110624243A true CN110624243A (en) 2019-12-31

Family

ID=68969520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910811574.XA Withdrawn CN110624243A (en) 2019-08-29 2019-08-29 Method and device for playing music and electronic equipment

Country Status (1)

Country Link
CN (1) CN110624243A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112494944A (en) * 2020-11-26 2021-03-16 北京达佳互联信息技术有限公司 Game control method, device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313556A (en) * 2000-02-07 2001-09-19 科乐美股份有限公司 Game device, game music output method, game program distributing device and method
CN106777009A (en) * 2016-12-07 2017-05-31 北京奇虎科技有限公司 Smart machine and task scheduling perform control method and device
CN108355356A (en) * 2018-03-14 2018-08-03 网易(杭州)网络有限公司 Scene of game sound intermediate frequency control method for playing back and device
CN109718551A (en) * 2018-12-29 2019-05-07 北京金山安全软件有限公司 Music file processing method and device
CN110244998A (en) * 2019-06-13 2019-09-17 广州酷狗计算机科技有限公司 Page layout background, the setting method of live page background, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1313556A (en) * 2000-02-07 2001-09-19 科乐美股份有限公司 Game device, game music output method, game program distributing device and method
CN106777009A (en) * 2016-12-07 2017-05-31 北京奇虎科技有限公司 Smart machine and task scheduling perform control method and device
CN108355356A (en) * 2018-03-14 2018-08-03 网易(杭州)网络有限公司 Scene of game sound intermediate frequency control method for playing back and device
CN109718551A (en) * 2018-12-29 2019-05-07 北京金山安全软件有限公司 Music file processing method and device
CN110244998A (en) * 2019-06-13 2019-09-17 广州酷狗计算机科技有限公司 Page layout background, the setting method of live page background, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112494944A (en) * 2020-11-26 2021-03-16 北京达佳互联信息技术有限公司 Game control method, device, electronic equipment and medium
CN112494944B (en) * 2020-11-26 2023-12-05 北京达佳互联信息技术有限公司 Game control method, game control device, electronic equipment, medium and product

Similar Documents

Publication Publication Date Title
CN106331822B (en) Method and device for playing multiple videos and electronic equipment
CN108038398B (en) Two-dimensional code analysis capability test method and device and electronic equipment
CN106250182B (en) File processing method and device and electronic equipment
US20080320041A1 (en) Adding virtual features via real world accessories
CN106843635B (en) Information display method and device and electronic equipment
CN106599680B (en) Method and device for setting application program permission and electronic equipment
CN105487760A (en) Method and device for displaying message and electronic equipment
CN106095587B (en) Cache scanning method and device of application program and electronic equipment
US8832122B2 (en) Media list management
CN111158750A (en) Unity-based game installation package packaging method and device
CN110624243A (en) Method and device for playing music and electronic equipment
CN110221878A (en) Game service updating method and device, electronic equipment and storage medium
CN112085208A (en) Method and device for model training by using cloud
CN112740178B (en) Small game access method and related equipment
WO2020171966A1 (en) Mapped views of digital content
CN110633148A (en) System operation optimization method and device, electronic equipment and storage medium
CN114339325B (en) Multi-engine dynamic wallpaper playing method and device based on android system
KR100874201B1 (en) Game Service System Using Near Field Communication
CN112698791A (en) System disk cleaning method and device, electronic equipment and storage medium
CN106991016B (en) Information display method and device and electronic equipment
CN109688266B (en) Ringtone setting method and device and electronic equipment
CN106775748B (en) Screen locking switching method and device and electronic equipment
CN106383898B (en) Chat content recommendation method and device and electronic equipment
CN111368208A (en) Method and device for recommending target object to user and electronic equipment
CN113797542B (en) Task data generation method and device, storage medium and electronic device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191231