# Interactive Music between multiple scenes in Unity

**URL:** <https://qa.fmod.com/t/interactive-music-between-multiple-scenes-in-unity/20381>\
**Category:** FMOD Studio\
**Tags:** unity, csharp\
**Created:** [July 4, 2023, 3:24pm UTC](https://qa.fmod.com/t/interactive-music-between-multiple-scenes-in-unity/20381 "2023-07-04T15:24:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Masiko](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/masiko/32/5236_2.png) [@Masiko](https://qa.fmod.com/u/Masiko)\
**Post date:** [July 4, 2023, 3:24pm UTC](https://qa.fmod.com/t/interactive-music-between-multiple-scenes-in-unity/20381/1 "2023-07-04T15:24:08Z")

</div>

I have used FMOD to create interactive music with horizontal transitions.

Each interactive music is controlled by a parameter named “Switch,” which has three regions: 1, 2, and 3. Now, I want to load this interactive music into my Unity project and call different switches in different scenes.

Additionally, I would like the interactive music to smoothly fade in and out to the corresponding segments when switching scenes. How can I achieve this?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [July 11, 2023, 2:19am UTC](https://qa.fmod.com/t/interactive-music-between-multiple-scenes-in-unity/20381/2 "2023-07-11T02:19:09Z")

</div>

Hi,

What version of FMOD are you using?

If the event is loaded using an [Unity Integration | Game Components - Studio Event Emitter](https://fmod.com/docs/2.02/unity/game-components.html#studio-event-emitter) you can use `StudioEventEmitter::SetParameter()` ([Unity Integration | Scripting API Reference](https://fmod.com/docs/2.02/unity/api-studioeventemitter.html#studioeventemitter_setparameter)) function to control the value of your switch variable.

To smoothly fade the music an option is modulating ([FMOD Studio | Authoring Events - Modulation](https://fmod.com/docs/2.02/studio/authoring-events.html#modulation)) the fader of each of the events using [FMOD Studio | Modulator Reference - AHDSR Modulator](https://fmod.com/docs/2.02/studio/modulator-reference.html#ahdsr-modulator).

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/56639d095c85827bf741f654dc74945a9b34781f.png)

Hope this helps!
