# Is there some kind of circular parameter in FMOD? lol for smooth ambient fades around a circular map

**URL:** https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318
**Category:** FMOD Studio
**Created:** [September 26, 2022, 7:55pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318 "2022-09-26T19:55:49Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 7:55pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/1 "2022-09-26T19:55:49Z")

</div>

There is a scene where the player walks around in a circle. I want to use trigger volumes to change the ambience as you walk around the map, but I’m a bit confused what happens when the player goes around in a full circle back to the start. Cos from min to max, the parameter can create fades between ambiences, but how do I get that fade when jumping from the max of parameter to the min? cos the parameter will have to go from the max value to the min value in an instant, and there wont be any fade

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 26, 2022, 8:00pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/2 "2022-09-26T20:00:03Z")

</div>

What’s your type of event and how did you implement those fades?

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 8:06pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/3 "2022-09-26T20:06:11Z")

</div>

I’m still planning that out.

I was going to make a 2D action, with an “Area” Parameter, with one track on it, and a bunch of ambiences crossfaded into each other on the track. So the parameter moves with the player around the map, changing which ambience is heard depending on where the player is. But obviously when the player goes full circle around the map and ends up back at the start, there will be no way to crossfade from the end back to the start of the parameter.

Is there a better way to go about this?

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 8:08pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/4 "2022-09-26T20:08:57Z")

</div>

Maybe a timeline would work better? with discrete parameters that change what is playing depending on where the player is? And an ADSR modulation creating attack and release?

I dunno.

I’m real curious to know how you would achieve this idea

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 8:18pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/5 "2022-09-26T20:18:03Z")

</div>

I could think of a few ways to do it, my main concern is having a nice fade between each ambience loop, and I’m not 100% sure how to do it

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 26, 2022, 8:23pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/6 "2022-09-26T20:23:07Z")

</div>

> [@fractanimal](#):
>
> And an ADSR modulation creating attack and release?

Yes, that’s the same problem as the other post we discussed some time ago, you have to make your transitions possible between each possible combination. AHDSR on instruments in a parameter sheet is a solution. A timeline with magnet regions is another.

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 8:55pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/7 "2022-09-26T20:55:45Z")

</div>

Yeah Alci, that AHDSR modulation trick is just a lifesaver in so many situations. I’ve been using it a lot, thanks so much for that.

Would you create the fade in and out the same way with the magnet region on a timeline?

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 26, 2022, 9:09pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/8 "2022-09-26T21:09:52Z")

</div>

No, the idea with magnet regions is to use its transition timeline to do the fades.

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 26, 2022, 9:17pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/9 "2022-09-26T21:17:23Z")

</div>

oh awesome. thanks dude really appreciate your help

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 29, 2022, 4:21pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/11 "2022-09-29T16:21:06Z")

</div>

Hey Alci, The transition timeline works just how I want it going into the magnet region, but then each time the magnet region loops, it replays the transition timeline again, which I do not want.

Is there a way around this other than just using a sustain point, away from the transition region?

 ![solved](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/b/b4e435e9269c4bdbde8d845fe7877e65c0d99d09.png)

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 29, 2022, 6:48pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/12 "2022-09-29T18:48:56Z")

</div>

I haven’t tested but it should work by adding a loop region without transition timeline, in top of the magnet region.

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 29, 2022, 9:57pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/13 "2022-09-29T21:57:08Z")

</div>

Hey Alci. I’ve got it working really well moving forward through the map. but how do I make it smooth from areas that don’t have the pre-existing audio to fade in?

For example, area 1 has a wind, area 4 has no wind. So when I move from Area 4 to Area 1, there’s no wind to fade in with the transition timeline.

Also, moving from area 1 to 2 requires a long transition timeline, but moving from area 4 to 2 requires a really short one.

I cant seem to figure out how to get from 4 to 2 without triggering the long transiton timeline I made for 1 to 2…

---

<div class="post-metadata">

### Author: ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)
#### Post date: [September 29, 2022, 10:15pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/14 "2022-09-29T22:15:14Z")

</div>

> [@fractanimal](#):
>
> For example, area 1 has a wind, area 4 has no wind. So when I move from Area 4 to Area 1, there’s no wind to fade in with the transition timeline.

I don’t understand. The transition timeline fades all the sources and destinations you’ve set to be faded, whatever is contained in those.

> [@fractanimal](#):
>
> I cant seem to figure out how to get from 4 to 2 without triggering the long transiton timeline I made for 1 to 2…

I would recommend you to use normal transition regions, in top of magnet regions, to handle special cases (as going from region 4 to 2…) with a specific transition timeline.

---

<div class="post-metadata">

### Author: ![fractanimal](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/fractanimal/32/3897_2.png) [@fractanimal](https://qa.fmod.com/u/fractanimal)
#### Post date: [September 29, 2022, 10:15pm UTC](https://qa.fmod.com/t/is-there-some-kind-of-circular-parameter-in-fmod-lol-for-smooth-ambient-fades-around-a-circular-map/19318/15 "2022-09-29T22:15:19Z")

</div>

Egh… I figured it out. sorry man. lol. It automatically takes the last instrument it comes from when you add the source into the transition timeline, even if it comes from the otherside of the event. I’m thinking too linearly

thats really cool.
