Suggestion Open

Dynamic Sound Volume Control

#10184 opened by simiux 1 day ago

simiuxreported this suggestion

I'd love to see a way to dynamically update the volume of an already playing sound through Mythic, if technically possible. Currently, the sound mechanic supports placeholders and variables within its volume attribute. However, the volume is only evaluated when the sound is initially played. Updating the variable afterwards has no effect on the active sound. My particular use case is a dynamic battle music system that plays music when a player enters combat and gradually fades it out once combat ends, without interrupting or restarting the soundtrack. Additionally a test of whether it is possible within future releases of MythicSeasons to add music/sounds dynamically through weather, and time changes.

Perhaps this could be achieved by assigning an identifier to a sound instance:

- sound{s=mythic:battlemusic;v=0.5;id=battle_music;soundcategory=RECORDS} @self

And introducing a mechanic that modifies its volume:

- updatesound{id=battle_music;v=0;duration=60} @self

Alternatively, having an active sound continuously evaluate a volume placeholder would also provide the desired functionality. This could open up several possibilities:

  • Dynamic combat and exploration music.
  • Seamless crossfading between soundtracks.
  • Gradual ambient sound transitions.
  • Dynamic sound intensity based on variables.
  • More immersive environmental and ability sound design.

I'm aware that Minecraft's sound handling is largely client-side and that there may be protocol limitations preventing this from being implemented. Nevertheless, it would be interesting to know whether this is technically feasible or if there is an alternative approach within Mythic.

Sign in to join the discussion.