# Random Loop Selection Question

**URL:** <https://qa.fmod.com/t/random-loop-selection-question/12271>\
**Category:** FMOD Studio\
**Created:** [January 25, 2016, 12:52pm UTC](https://qa.fmod.com/t/random-loop-selection-question/12271 "2016-01-25T12:52:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasHoey](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@ThomasHoey](https://qa.fmod.com/u/ThomasHoey)\
**Post date:** [January 25, 2016, 12:52pm UTC](https://qa.fmod.com/t/random-loop-selection-question/12271/1 "2016-01-25T12:52:05Z")

</div>

Hi guys,

Thanks for reading. I am new to FMod but finding it quite accommodating. Still, I’m trying to figure the best way of randomly introducing a new loop based on a simple value input (parameter).

The parameter side of things is not what I’m struggling over (yet at least). I’m just trying to work out how to randomly fade in a new loop, keeping it looping until a parameter tells it to fade away.

The reason is because I’ve written lots of loops that work together and would like the engine to choose which ones to play. If anyone can help me or point me towards the right tutorial, I’d be massively appreciative.

Cheers,  
Thomas

---

<div class="post-metadata">

**Author:** ![ThomasHoey](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@ThomasHoey](https://qa.fmod.com/u/ThomasHoey)\
**Post date:** [January 25, 2016, 2:20pm UTC](https://qa.fmod.com/t/random-loop-selection-question/12271/2 "2016-01-25T14:20:15Z")

</div>

Never mind!

I worked it out.

I read somewhere about the looping function found in the top right corner of the waveform in the bottom window of the arrange page when you select the multi sound file.

From here, I’ve decided to put only a few loops in each Multi Sound to avoid any loop doubling up.

Should be able to achieve the noises I want from that.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [January 26, 2016, 4:18am UTC](https://qa.fmod.com/t/random-loop-selection-question/12271/3 "2016-01-26T04:18:33Z")

</div>

sounds a bit like the car engine example? It jumps between loops based on the rpm parameter, also a load parameter for more variety.

---

<div class="post-metadata">

**Author:** ![ThomasHoey](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@ThomasHoey](https://qa.fmod.com/u/ThomasHoey)\
**Post date:** [January 26, 2016, 11:44am UTC](https://qa.fmod.com/t/random-loop-selection-question/12271/4 "2016-01-26T11:44:29Z")

</div>

> [@](#):
>
> sounds a bit like the car engine example? It jumps between loops based on the rpm parameter, also a load parameter for more variety.

That sounds interesting! I’ll check it out. Thanks man.
