[ANSWERED] Change audio volume in background scene
-
Hi all
I am playing ahead of time with background scenes and following the fantastic guru videos etc. I am getting familiar with the activate/de-activate scenes and associated information.It is all making sense and in the main working for me. I am looking to create a series of scenes with a background soundtrack to the 10 x scene list. The piece of music is the same but in certain scenes it needs to get louder and quieter respectively.
I can manage control of the audio in the background scene with a broadcaster/Get global values actors and I can effect changes. What I cannot not seem to do is get this fade (circa 10s) to happen seamlessly. The level drops to whatever the envelope generator says and then fades up to the required level. I am looking for the the audio fade to go from where it is currently playing and then move up/down but the level drops noticeably to the start of the envelope generator and then fades up.
I am using an 1) Enter scene trigger, 2) An envelope generator and 3) Broadcaster or Get Global Value actor.
I would be grateful if someone could see to point out where I am going wrong here? I am only looking to change up/down the level of the audio track from its current playing level.
Many thanks
eamon
-
Would "Activate Scene Amount" work for you? The thing you want to affect would have to be the only thing in the scene, but....
Cheers,
Hugh
-
@eamon
I would approach this problem with a pair of Broadcaster and Listener actors. The current audio level is Broadcast (for example, on Ch.1) from the background scene, and this can be connected to the 1st level of your Envelope Generator with a Listener set to Ch. 1. The envelope's second level is the desired audio level and is Broadcast on Ch. 2, where a Listener (set to Ch. 2) in the background scene sets the audio level. -
I encounter this issue regularly, and it is similar when working with DMX levels or any level changes in a time series. With the Envelope Generator module, you want to be able to update the start input with the last set output level. Therefore, some feedback loop is required. Fortunately, the 'Envelope Generator' has an 'end trigger', so you use this to route the last output value back to the start 'value 0' ready for the next triggered level ramp. Combining this concept with @dbini broadcaster/listener approach, you have a simple solution. You can see this in action with the attached demonstration patch.
Best Wishes
Russell
-
Here are a couple of example patches I made in the past covering this topic. They're probably similar to what @bonemap already posted, but maybe they'll be helpful too.
Dropbox Link: https://www.dropbox.com/scl/fo/zfr1hzfkk7atkv0tomn9s/h?rlkey=f316ap3zwf1xji2zr804d81f5&dl=0