CN117379787A - Music control method and device in game, readable storage medium and electronic equipment - Google Patents

Music control method and device in game, readable storage medium and electronic equipment Download PDF

Info

Publication number
CN117379787A
CN117379787A CN202311323202.5A CN202311323202A CN117379787A CN 117379787 A CN117379787 A CN 117379787A CN 202311323202 A CN202311323202 A CN 202311323202A CN 117379787 A CN117379787 A CN 117379787A
Authority
CN
China
Prior art keywords
scene
music
preset attribute
attribute type
control parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311323202.5A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202311323202.5A priority Critical patent/CN117379787A/en
Publication of CN117379787A publication Critical patent/CN117379787A/en
Pending 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/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • 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
    • A63F2300/6072Methods for processing data by generating or executing the game program for sound processing of an input signal, e.g. pitch and rhythm extraction, voice recognition
    • 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8047Music games

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The disclosure provides a music control method and device in a game, a storage medium and electronic equipment, and relates to the technical field of computers. The music control in the game includes: responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type; determining play control parameter values corresponding to associated music resources of all preset attribute types based on attribute values of the scene components under all preset attribute types; and playing the associated music resources of each preset attribute type in a mixed mode based on the play control parameter values corresponding to the associated music resources of each preset attribute type. According to the method and the device, the playing of the music resource is controlled through the attribute value of the scene component, so that the diversity of the music hearing effect is enhanced, the manufacturing cost of the music resource is reduced, and the method and the device have strong instantaneity.

Description

Music control method and device in game, readable storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a music control method in a game, a music control device in a game, a computer readable storage medium, and an electronic device.
Background
In some game scenarios, the music playing content may change as affected by interactions with the field Jing Zujian in the game scenario.
In the related art, a plurality of different audio resources are generally directly bound to different scene components, and when a player interacts with the scene components, the music resources bound by the components are directly played. In this way, the generated hearing effect is single, and when the number or type of scene components is large, or the interaction between the player and the scene components is huge, a large amount of music resources are needed to be manufactured for use, and the manufacturing cost is high.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure provides a music control method in a game, a music control device in the game, a computer readable storage medium and an electronic device, so as to overcome the problems of single music hearing effect and high music resource manufacturing cost in the related art at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a music control method in a game, the method comprising: responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type; determining play control parameter values corresponding to associated music resources of all preset attribute types based on the attribute values of the scene component under all preset attribute types; and based on the play control parameter values corresponding to the associated music resources of each preset attribute type, performing mixed play on the associated music resources of each preset attribute type.
According to a second aspect of the present disclosure, there is provided a music control apparatus in a game, the apparatus comprising: the attribute value acquisition module is used for responding to an interaction event triggering a scene component in a game scene and acquiring attribute values of the scene component under each preset attribute type; the play parameter determining module is used for determining play control parameter values corresponding to the associated music resources of each preset attribute type based on the attribute values of the scene component under each preset attribute type; and the music mixed playing module is used for carrying out mixed playing on the associated music resources of each preset attribute type based on the playing control parameter values corresponding to the associated music resources of each preset attribute type.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the music control method in a game described above and possible implementations thereof.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the music control method in a game described above and possible implementations thereof.
In the music control process in the game, responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type; determining play control parameter values corresponding to associated music resources of all preset attribute types based on attribute values of the scene components under all preset attribute types; and playing the associated music resources of each preset attribute type in a mixed mode based on the play control parameter values corresponding to the associated music resources of each preset attribute type. According to the method and the device, the playing of the music resource is controlled through the attribute value of the scene component, a large number of music hearing effects can be obtained through a small amount of the music resource, the diversity of the music hearing effects is enhanced, and the manufacturing cost of the music resource is reduced. In addition, the method and the device acquire the relevant attribute data in real time by responding to the interaction event triggering the scene component in the game scene, and control the listening sense of the music by the acquired relevant attribute data to feed back the interaction behavior of the player, so that the player can feel the dynamic change of the music in real time, and the instantaneity is strong.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely some embodiments of the present disclosure and that other drawings may be derived from these drawings without undue effort.
FIG. 1 illustrates a flow chart of a music control method in a game in accordance with one of the exemplary embodiments of the present disclosure;
FIG. 2 illustrates a flow chart for obtaining attribute values for a scene component under each preset attribute type in one of the exemplary embodiments of the present disclosure;
FIG. 3 illustrates a flow chart of one of the exemplary embodiments of the present disclosure for adjusting a music playback effect;
FIG. 4 illustrates a flow chart of one of the exemplary embodiments of the present disclosure for audio asset mix playback;
fig. 5 is a block diagram showing a configuration of a music control apparatus in a game according to one of exemplary embodiments of the present disclosure;
Fig. 6 illustrates an electronic device for implementing the music control method in the above-described game according to one of exemplary embodiments of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Herein, "first," "second," and the like are labels for specific objects, and do not limit the number or order of objects.
In the related art, a plurality of different audio resources are generally directly bound to different scene components, and when a player interacts with the scene components, the music resources bound by the components are directly played, so that the generated hearing effect is single, and the manufacturing cost is high.
In view of one or more of the problems described above, exemplary embodiments of the present disclosure provide a music control method in a game, a music control apparatus in a game, a computer-readable storage medium, and an electronic device.
The music control method in the game in one embodiment of the present disclosure may be run on a local terminal device or a server. When the music control method in the game runs on the server, the music control method in the game can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, such as: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, a running main body of the game program and a game picture presentation main body are separated, the storage and running of a music control method in the game are completed on a cloud game server, and the function of a client device is used for receiving and sending data and presenting game pictures, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but controlling is cloud game servers in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
The embodiment of the disclosure provides a flow chart of a music control method in a game, as shown in fig. 1, specifically including the following steps S110 to S130:
step S110, responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type;
step S120, based on the attribute values of the scene components under each preset attribute type, determining the play control parameter values corresponding to the associated music resources of each preset attribute type;
Step S130, based on the play control parameter values corresponding to the associated music resources of each preset attribute type, performing mixed play on the associated music resources of each preset attribute type.
In the music control process in the game, the play of the music resource is controlled through the attribute value of the scene component, so that a large number of music hearing effects can be obtained through a small amount of the music resource, the diversity of the music hearing effects is enhanced, and the manufacturing cost of the music resource is reduced. In addition, the relevant attribute data are acquired in real time by responding to the interaction event triggering the scene component in the game scene, and the listening sense of the music is controlled by the acquired relevant attribute data so as to feed back the interaction behavior of the player, so that the player can feel the dynamic change of the music in real time, and the instantaneity is strong.
Each step of fig. 1 is described in detail below.
In step S110, attribute values of the scene components under each preset attribute type are obtained in response to the interaction event triggering the scene components in the game scene.
The game scene may be a simulation scene of the real world, a semi-simulation and semi-fictional three-dimensional scene, or a pure fictional three-dimensional scene, which is not particularly limited in this disclosure.
Wherein a scenario component refers to a virtual object that can be deployed in a game scenario for interaction through player operations, such as: parlor furniture scene components, dance hall prop scene components, showcase exhibit scene components, and the like, to which this disclosure is not specifically limited.
The interaction event of the scene component in the game scene can be an interaction event triggered by interaction between the game player and the scene component in the game scene through the terminal equipment.
Optionally, the interaction event triggering the scene component in the game scene may be that the game character controlled by the terminal device enters the interactive range of the scene component, or that the game picture is switched to the interactive range of the scene component. Taking a living room furniture scene component as an example, when a game character controlled by the terminal equipment enters the interactive range of the living room furniture scene component, triggering an interaction event of the living room furniture scene component. In this case, the interactive range may be set in advance for the scene components in the game scene so as to trigger the interaction event.
Optionally, the interaction event triggering the scene component in the game scene may also be a touch event of the game character controlled by the terminal device to the scene component, taking the showcase showpiece scene component as an example, the game character controlled by the terminal device touches the showcase component, and triggers the interaction event of the showcase showpiece scene component.
The preset attribute type refers to a preset attribute type, such as a courage attribute, a tough attribute, a happy attribute, a calm attribute, a mystery attribute, an ice-cold attribute, a fire-heat attribute, a fear attribute, and the like, which is not specifically limited in the present disclosure. Different music resources can be associated for each preset attribute type in advance so as to enrich the playing effect of music while realizing music interaction.
Alternatively, a scenario component may comprise multiple scenario sub-components, which may be added from a scenario sub-component library. Illustratively, taking living room furniture scene components as an example, scene sub-components such as tables, chairs, sofas, and the like may be included.
In an alternative embodiment, the obtaining the attribute values of the scene component under each preset attribute type, as shown in fig. 2, may be implemented by the following steps:
step S210, obtaining attribute values of each scene sub-component in the scene components under each preset attribute type;
step S220, based on the attribute values of each scene sub-component in the scene components under each preset attribute type, determining the attribute values of the scene components under each preset attribute type.
Specifically, different attribute values may be set for each scene sub-component included in the scene sub-component library in advance for each preset attribute type, and then the attribute values of the scene components under each preset attribute type are determined by querying the attribute values of each scene sub-component included in the scene components under each preset attribute type.
Optionally, the attribute values of each scene sub-component in the scene component under each preset attribute type may be added respectively according to the attribute types to obtain the attribute values of the scene component under each preset attribute type.
By associating the attribute values of the scene components with the scene sub-components they contain, the controllability of the attribute values of the scene components is enhanced. When scene sub-components contained in the scene components are different, the attribute values of the obtained scene components under each preset attribute type are also different, and under the condition, not only can richer music effects be obtained, but also additional music resources are not required to be added.
After obtaining the attribute values of the scene component under each preset attribute type, the following step S120 may be continuously performed.
In step S120, based on the attribute values of the scene component under each preset attribute type, the play control parameter values corresponding to the associated music resources of each preset attribute type are determined.
Corresponding association relations can be configured between the preset attribute types and the music resources.
Note that, in order to ensure harmony of performance effects, different music resources in the present disclosure may be music resources corresponding to different vocal parts of the same music. In particular, different instruments may be employed to perform different parts of the music.
The associated music resources of each preset attribute type can be music resources obtained by playing the same music by different music instruments, and the consistency and coordination of the music in the mixed playing process can be ensured to a certain extent.
Wherein, the play control parameter refers to a parameter capable of controlling the play effect of the music resource. Illustratively, the play control parameter values may include, but are not limited to, one or more of a volume control parameter value, a reverberation control parameter value, and a sound band saturation control parameter.
The attribute value of the scene component under each preset attribute type and the play control parameter value corresponding to the associated music resource of each preset attribute type may have a certain mapping relationship. Optionally, the attribute value of the scene component under each preset attribute type is in direct proportion to the play control parameter value corresponding to the associated music resource of each preset attribute type.
By taking the play control parameter as an example of the volume control parameter, the attribute values of the scene component under each preset attribute type can be mapped through the mapping relation to obtain the volume control parameter value of the audio resource associated with the corresponding attribute type, so that the control of music can be realized through the attribute values of the scene component.
After determining the play control parameter, step S130 may be continued.
In step S130, the associated music resources of each preset attribute type are mixed for playing based on the play control parameter values corresponding to the associated music resources of each preset attribute type.
For example, taking the play control parameter as the volume control parameter, as the volume control parameter corresponding to the associated music resource of a certain preset attribute type is larger, the play sound of the associated music resource of the preset attribute type is larger. If the preset attribute type comprises a preset attribute type 1, a preset attribute type 2 and a preset attribute type 3, recording associated music resources of the preset attribute type 1 by adopting a piano; recording associated music resources of a preset attribute type 2 by using a harp; the associated music resource of the preset attribute type 3 is recorded by a violin, if the volume control parameter corresponding to the associated music resource of the preset attribute type 1 is 0, the volume control parameter corresponding to the associated music resource of the preset attribute type 2 is 5, and the volume control parameter corresponding to the associated music resource of the preset attribute type 3 is 10, then the player can hear the music played by the violin and the violin.
Specifically, after the play control parameter values corresponding to the associated music resources of each preset attribute type are obtained, the associated music resources of each preset attribute type can be subjected to preprocessing such as parameter configuration through a preprocessing container so as to adjust the play effect of the music resources.
Optionally, the associated music resource of each preset attribute type may be set to be played circularly, so as to further enhance the continuity of music playing.
In the hybrid playing, in order to ensure the coordination of the playing effect, the related music resources may be aligned and then synchronously played.
Optionally, when step S130 is performed, the mixed music playing effect may be adjusted based on the preset total playing control parameter value, so that the final playing effect is always within a reasonable and effective range acceptable to the player. The preset total play control parameters can be configured correspondingly according to configuration operations of players.
In an alternative embodiment, as shown in fig. 3, the music playing effect may also be adjusted by:
step S310, in response to the scene sub-assembly included in the scene assembly being changed, adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type;
step S320, controlling the associated music resources of each preset attribute type to perform mixed playing based on the adjusted play control parameter values corresponding to the associated audio resources of each preset attribute type.
Alternatively, the player may add or delete a scene sub-component to the scene component via the terminal device to cause the scene sub-component contained in the scene component to change. Taking a living room furniture scene component as an example, a player can add scene sub-components such as a table, a chair and the like into a living room game scene through terminal equipment, so that scene sub-components contained in the living room furniture scene component are changed, and interaction between the player and the scene component is realized.
Through the scene sub-assembly in the scene assembly, the flexible adjustment of the music playing effect is realized, so that the music playing effect can be changed in real time when a player interacts with the scene assembly, and the hearing experience of the player is improved to a certain extent.
In an optional implementation manner, the adjusting the play control parameter value corresponding to the associated audio resource of each preset attribute type in response to the change of the scene sub-component included in the scene component may be specifically implemented by the following steps: determining updated scene sub-components in the scene components in response to the scene sub-components contained in the scene components being changed; acquiring attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type; and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type based on the updated attribute values of the scene component under each preset attribute type.
Specifically, when the scene sub-components contained in the scene component are changed, the corresponding play control parameters can be adjusted by updating the updated attribute values of the scene component under each preset attribute type, so that the real-time update of the play control parameters is realized, various play effects are further generated, and the hearing experience of a player is improved.
As shown in fig. 4, a flow chart of audio resource mixed playing is provided, which specifically includes the following steps:
step S401, responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of each scene sub-component in the scene component under each preset attribute type;
step S402, determining the attribute value of the scene component under each preset attribute type based on the attribute value of each scene sub-component in the scene component under each preset attribute type;
step S403, based on the attribute values of the scene component under each preset attribute type, determining the play control parameter values corresponding to the associated music resources of each preset attribute type;
step S404, based on the play control parameter values corresponding to the associated music resources of each preset attribute type, performing mixed play on the associated music resources of each preset attribute type;
Step S405, in response to a scene sub-component included in the scene component being changed, determining an updated scene sub-component in the scene component;
step S406, obtaining the attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type;
step S407, based on the updated attribute values of the scene component under each preset attribute type, adjusting the play control parameter values corresponding to the associated audio resources of each preset attribute type;
step S408, adjusting the mixed playing state based on the adjusted playing control parameter values corresponding to the associated audio resources of each preset attribute type.
Optionally, before executing the steps shown in fig. 1, the scene music may be further divided into a plurality of vocal parts according to the number of types of preset attribute types in advance, so that the types of attribute types are the same as the number of the divided vocal parts, and further different music instruments are adopted for playing and recording for different vocal parts, so as to obtain the associated music resources of each preset attribute type.
For example, if the preset attribute types include 8 attribute types of courage attribute, toughness attribute, happiness attribute, calm attribute, mystery attribute, ice-cold attribute, fire and heat attribute and fear attribute, scene music can be divided into 8 musical instrument playing soundtracks of organ, piano, music box, violin, flute, harp, lupeo and acoustic synthesizer, and music recording is performed through corresponding musical instruments, so as to obtain the associated music resources of the preset attribute types. It should be noted that, the division of the vocal part is only exemplary, and the division of the vocal part may be performed according to a specific game scene in the actual application process, which is not specifically limited in the present disclosure.
Furthermore, in order to realize that the interaction between the player and the scene component can influence the music effect in real time, the recorded associated music resources of each preset attribute type can be imported into an audio engine, a multi-track recording event is newly established, the associated music resources of each preset attribute type are aligned in the same multi-track event, so that a plurality of music resources can be synchronously played, then a layer can be independently built for each associated music resource of each preset attribute type in the multi-track recording event, and a playing control parameter is built for each layer, so that each playing control parameter can control the corresponding music resource. Alternatively, the naming of the play control parameter may correspond to the naming of the layer for easy identification. For example, if the layer corresponds to a music resource played by a piano, the layer may be named "piano", and the play control parameter set by the layer may be named "param_piano", where it should be noted that the naming manner of the play control parameter described herein is merely an exemplary illustration, and in practical application, a developer may also name the play control parameter in different manners according to practical requirements, which is not specifically limited in this disclosure.
Because the corresponding relation exists between the play control parameter and the preset attribute type, the change of the attribute value can realize the control of the audio resource through the play control parameter. By splitting the music at the sound part level, the burden of game music production is reduced. On the aspect of representation, the music before splitting the vocal part is a complete music, and music resources obtained after splitting can be smoothly graded under the control of parameters, so that the music can be always complete and coherent in hearing during playing, the feeling of splitting can not be generated, and the hearing effect is ensured to a certain extent.
Fig. 5 illustrates an in-game music control apparatus 500 in an exemplary embodiment of the present disclosure, as illustrated in fig. 5, the in-game music control apparatus 500 may include:
the attribute value obtaining module 510 is configured to obtain attribute values of a scene component under each preset attribute type in response to an interaction event triggering the scene component in the game scene;
the play parameter determining module 520 is configured to determine a play control parameter value corresponding to an associated music resource of each preset attribute type based on an attribute value of the scene component under each preset attribute type;
The music mixed playing module 530 is configured to perform mixed playing on the associated music resources of each preset attribute type based on the playing control parameter values corresponding to the associated music resources of each preset attribute type.
In an alternative embodiment, based on the foregoing solution, the attribute value of the scene component under each preset attribute type is proportional to the play control parameter value corresponding to the associated music resource of each preset attribute type.
In an alternative embodiment, based on the foregoing, the scenario component comprises a plurality of scenario sub-components; the attribute value acquisition module 510 may be configured to: acquiring attribute values of each scene sub-component in the scene components under each preset attribute type; and determining the attribute value of the scene component under each preset attribute type based on the attribute value of each scene sub-component in the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the in-game music control apparatus 500 may further include: the play parameter adjustment module is used for adjusting play control parameter values corresponding to associated audio resources of all preset attribute types in response to the change of scene sub-components contained in the scene components; and the music dynamic control module is used for controlling the associated music resources of each preset attribute type to carry out mixed play based on the adjusted play control parameter values corresponding to the associated audio resources of each preset attribute type.
In an alternative embodiment, based on the foregoing scheme, the play parameter adjustment module may be configured to: determining updated scene sub-components in the scene components in response to the scene sub-components contained in the scene components being changed; acquiring attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type; and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type based on the updated attribute values of the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the play control parameter values may include one or more of a volume control parameter value, a reverberation control parameter value, and a sound band saturation control parameter.
In an alternative embodiment, based on the foregoing scheme, the associated music resources of each preset attribute type are music resources obtained by playing the same music with different music instruments.
The specific details of each module in the above-mentioned music control device 500 in the game are already described in the method part of the embodiments, and the details that are not disclosed can be referred to the embodiment of the method part, so that the details are not described again.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the music control method in the game described above in the present specification. In some possible implementations, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing an electronic device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on an electronic device.
In particular, a program product stored on a computer readable storage medium may cause an electronic device to perform the steps of:
responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type;
determining play control parameter values corresponding to associated music resources of all preset attribute types based on attribute values of the scene components under all preset attribute types;
and playing the associated music resources of each preset attribute type in a mixed mode based on the play control parameter values corresponding to the associated music resources of each preset attribute type.
In an alternative embodiment, based on the foregoing solution, the attribute value of the scene component under each preset attribute type is proportional to the play control parameter value corresponding to the associated music resource of each preset attribute type.
In an alternative embodiment, based on the foregoing, a scenario component may comprise a plurality of scenario sub-components; the above-mentioned obtaining the attribute value of the scene component under each preset attribute type, the electronic device may be implemented by the following steps: acquiring attribute values of each scene sub-component in the scene components under each preset attribute type; and determining the attribute value of the scene component under each preset attribute type based on the attribute value of each scene sub-component in the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the electronic device may further perform the steps of: responding to the change of scene sub-components contained in the scene components, and adjusting play control parameter values corresponding to associated audio resources of all preset attribute types; and controlling the associated music resources of each preset attribute type to perform mixed playing based on the adjusted play control parameter values corresponding to the associated audio resources of each preset attribute type.
In an optional implementation manner, based on the foregoing solution, the electronic device may adjust the play control parameter value corresponding to the associated audio resource of each preset attribute type in response to a change of a scene sub-component included in the scene component, where the electronic device may implement the following steps: determining updated scene sub-components in the scene components in response to the scene sub-components contained in the scene components being changed; acquiring attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type; and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type based on the updated attribute values of the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the play control parameter values may include one or more of a volume control parameter value, a reverberation control parameter value, and a sound band saturation control parameter.
In an alternative embodiment, based on the foregoing scheme, the associated music resources of each preset attribute type are music resources played by different players for the same music.
In the music control process in the game, the play of the music resource is controlled through the attribute value of the scene component, so that a large number of music hearing effects can be obtained through a small amount of the music resource, the diversity of the music hearing effects is enhanced, and the manufacturing cost of the music resource is reduced. In addition, the relevant attribute data are acquired in real time by responding to the interaction event triggering the scene component in the game scene, and the listening sense of the music is controlled by the acquired relevant attribute data so as to feed back the interaction behavior of the player, so that the player can feel the dynamic change of the music in real time, and the instantaneity is strong.
The program product may employ a portable compact disc read-only memory (CD-ROM) and comprise program code and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF (Radio Frequency) and the like, or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the music control method in a game described above. An electronic device 600 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 6, the electronic device 600 may be embodied in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), and a display unit 640.
The storage unit 620 stores program codes that can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present disclosure described in the above "exemplary method" section of the present specification.
Specifically, the processing unit 610 may perform the following steps:
responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type;
determining play control parameter values corresponding to associated music resources of all preset attribute types based on attribute values of the scene components under all preset attribute types;
And playing the associated music resources of each preset attribute type in a mixed mode based on the play control parameter values corresponding to the associated music resources of each preset attribute type.
In an alternative embodiment, based on the foregoing solution, the attribute value of the scene component under each preset attribute type is proportional to the play control parameter value corresponding to the associated music resource of each preset attribute type.
In an alternative embodiment, based on the foregoing, a scenario component may comprise a plurality of scenario sub-components; the above-mentioned obtaining the attribute values of the scene component under each preset attribute type, the processing unit 610 may be implemented by the following steps: acquiring attribute values of each scene sub-component in the scene components under each preset attribute type; and determining the attribute value of the scene component under each preset attribute type based on the attribute value of each scene sub-component in the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the processing unit 610 may further perform the following steps: responding to the change of scene sub-components contained in the scene components, and adjusting play control parameter values corresponding to associated audio resources of all preset attribute types; and controlling the associated music resources of each preset attribute type to perform mixed playing based on the adjusted play control parameter values corresponding to the associated audio resources of each preset attribute type.
In an alternative embodiment, based on the foregoing solution, in response to a change of a scene sub-component included in the scene component, the processing unit 610 adjusts a play control parameter value corresponding to an associated audio resource of each preset attribute type, where the play control parameter value is implemented by: determining updated scene sub-components in the scene components in response to the scene sub-components contained in the scene components being changed; acquiring attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type; and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type based on the updated attribute values of the scene component under each preset attribute type.
In an alternative embodiment, based on the foregoing, the play control parameter values may include one or more of a volume control parameter value, a reverberation control parameter value, and a sound band saturation control parameter.
In an alternative embodiment, based on the foregoing scheme, the associated music resources of each preset attribute type are music resources played by different players for the same music.
In the music control process in the game, the play of the music resource is controlled through the attribute value of the scene component, so that a large number of music hearing effects can be obtained through a small amount of the music resource, the diversity of the music hearing effects is enhanced, and the manufacturing cost of the music resource is reduced. In addition, the relevant attribute data are acquired in real time by responding to the interaction event triggering the scene component in the game scene, and the listening sense of the music is controlled by the acquired relevant attribute data so as to feed back the interaction behavior of the player, so that the player can feel the dynamic change of the music in real time, and the instantaneity is strong.
The storage unit 620 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 621 and/or cache memory 622, and may further include Read Only Memory (ROM) 623.
The storage unit 620 may also include a program/utility 624 having a set (at least one) of program modules 625, such program modules 625 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. As shown in fig. 6, network adapter 660 communicates with other modules of electronic device 600 over bus 630. It should be appreciated that although not shown in fig. 6, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID (Redundant Arrays of Independent Disks, redundant array of independent disks) systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the exemplary embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A music control method in a game, the method comprising:
responding to an interaction event triggering a scene component in a game scene, and acquiring attribute values of the scene component under each preset attribute type;
determining play control parameter values corresponding to associated music resources of all preset attribute types based on the attribute values of the scene component under all preset attribute types;
And based on the play control parameter values corresponding to the associated music resources of each preset attribute type, performing mixed play on the associated music resources of each preset attribute type.
2. The method of claim 1, wherein the attribute value of the scene component under each preset attribute type is proportional to the play control parameter value corresponding to the associated music asset of each preset attribute type.
3. The method of claim 1, wherein the scenario component comprises a plurality of scenario sub-components; the obtaining the attribute value of the scene component under each preset attribute type includes:
acquiring attribute values of each scene sub-component in the scene components under each preset attribute type;
and determining the attribute value of each scene component under each preset attribute type based on the attribute value of each scene sub-component in the scene component under each preset attribute type.
4. A method according to claim 3, characterized in that the method further comprises:
responding to the scene sub-assembly included in the scene assembly to change, and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type;
And controlling the associated music resources of each preset attribute type to perform mixed playing based on the adjusted play control parameter values corresponding to the associated audio resources of each preset attribute type.
5. The method of claim 4, wherein adjusting the play control parameter value corresponding to the associated audio resource of each preset attribute type in response to a scene sub-component included in the scene component changing comprises:
determining updated scene sub-components in the scene components in response to the scene sub-components contained in the scene components being changed;
acquiring attribute values of the updated scene sub-assembly under each preset attribute type, and determining the updated attribute values of the scene sub-assembly under each preset attribute type based on the attribute values of the updated scene sub-assembly under each preset attribute type;
and adjusting play control parameter values corresponding to the associated audio resources of each preset attribute type based on the updated attribute values of the scene component under each preset attribute type.
6. The method of claim 1, wherein the play control parameter values include one or more of volume control parameter values, reverberation control parameter values, and sound band saturation control parameters.
7. The method of claim 1, wherein the associated music resources of each preset attribute type are music resources played with different instruments for the same music.
8. A music control apparatus in a game, the apparatus comprising:
the attribute value acquisition module is used for responding to an interaction event triggering a scene component in a game scene and acquiring attribute values of the scene component under each preset attribute type;
the play parameter determining module is used for determining play control parameter values corresponding to the associated music resources of each preset attribute type based on the attribute values of the scene component under each preset attribute type;
and the music mixed playing module is used for carrying out mixed playing on the associated music resources of each preset attribute type based on the playing control parameter values corresponding to the associated music resources of each preset attribute type.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1 to 7.
10. An electronic device, comprising:
One or more processors;
storage means for storing one or more programs which when executed by the one or more processors cause the one or more processors to implement the method of any of claims 1 to 7.
CN202311323202.5A 2023-10-12 2023-10-12 Music control method and device in game, readable storage medium and electronic equipment Pending CN117379787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311323202.5A CN117379787A (en) 2023-10-12 2023-10-12 Music control method and device in game, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311323202.5A CN117379787A (en) 2023-10-12 2023-10-12 Music control method and device in game, readable storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117379787A true CN117379787A (en) 2024-01-12

Family

ID=89465942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311323202.5A Pending CN117379787A (en) 2023-10-12 2023-10-12 Music control method and device in game, readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117379787A (en)

Similar Documents

Publication Publication Date Title
US9888333B2 (en) Three-dimensional audio rendering techniques
US10325580B2 (en) Virtual music experiences
JP4729186B2 (en) Musical space configuration control device, musical presence formation device, and musical space configuration control method
US10924875B2 (en) Augmented reality platform for navigable, immersive audio experience
CN111880874A (en) Media file sharing method, device and equipment and computer readable storage medium
CN110025958B (en) Voice sending method, device, medium and electronic equipment
CN113823250A (en) Audio playing method, device, terminal and storage medium
Heliades et al. Dissemination of environmental soundscape and musical heritage through 3D virtual telepresence
WO2022251077A1 (en) Simulating crowd noise for live events through emotional analysis of distributed inputs
CN113821189A (en) Audio playing method and device, terminal equipment and storage medium
CN117379787A (en) Music control method and device in game, readable storage medium and electronic equipment
Comunità et al. Web-based binaural audio and sonic narratives for cultural heritage
Goodwin Beep to boom: the development of advanced runtime sound systems for games and extended reality
CA3044260A1 (en) Augmented reality platform for navigable, immersive audio experience
US20230199420A1 (en) Real-world room acoustics, and rendering virtual objects into a room that produce virtual acoustics based on real world objects in the room
Pachet et al. A mixed 2D/3D interface for music spatialization
JP2022156117A (en) Content distribution system and program
CN113318432B (en) Music control method in game, nonvolatile storage medium and electronic device
US9959344B1 (en) Systems and methods for playing multiple sounds
CN117379788A (en) Music interaction method and device in game, readable storage medium and electronic equipment
CN115040866A (en) Cloud game image processing method, device, equipment and computer readable storage medium
Horsburgh et al. A Perspective on the Adoption of Ambisonics for Games
CN114073056A (en) Contextual layer of digital content
US20240029691A1 (en) Interface customized generation of gaming music
US20230062315A1 (en) Live venue performance sensor capture and visualization over game network

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