# How to randomize looped sounds?

**URL:** <https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011>\
**Category:** FMOD Studio\
**Created:** [September 3, 2019, 8:35am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011 "2019-09-03T08:35:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgalach](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mgalach](https://qa.fmod.com/u/mgalach)\
**Post date:** [September 3, 2019, 8:35am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/1 "2019-09-03T08:35:22Z")

</div>

When event start I want to play random sound and have that sound looped forever.  
How to do it? because with multi instrument on end of loop sound will be randomized again and can switch to another.

---

<div class="post-metadata">

**Author:** ![Skaven252](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaven252/32/63_2.png) [@Skaven252](https://qa.fmod.com/u/Skaven252)\
**Post date:** [September 3, 2019, 8:56am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/2 "2019-09-03T08:56:21Z")

</div>

Set each sample in the playlist to loop individually. So instead of clicking the loop button above the playlist, click on each wav, and activate the loop above the wav display. This needs to be done to every wav in the playlist. After that, deactivate the playlist loop so that just the wavs are looped.

---

<div class="post-metadata">

**Author:** ![mgalach](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mgalach](https://qa.fmod.com/u/mgalach)\
**Post date:** [September 3, 2019, 9:37am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/4 "2019-09-03T09:37:35Z")

</div>

Turning off looping playlist makes sound play only once.  
If I add loop region, playlist is randomized again and different sound can be selected and played.

---

<div class="post-metadata">

**Author:** ![mgalach](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mgalach](https://qa.fmod.com/u/mgalach)\
**Post date:** [September 3, 2019, 9:49am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/5 "2019-09-03T09:49:50Z")

</div>

Ok, I think I know what I was doing wrong, I was putting sounds on “Timeline” and sound stopped when it reached end of range… so I created custom param and placed sound there and now it works

anyway maybe if somebody select “loop” on sound placed on timeline, sound should be streched automatically on timeline to infinity (or selected number of loops) to avoid confusion

---

<div class="post-metadata">

**Author:** ![Skaven252](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaven252/32/63_2.png) [@Skaven252](https://qa.fmod.com/u/Skaven252)\
**Post date:** [September 3, 2019, 12:15pm UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/6 "2019-09-03T12:15:43Z")

</div>

You can put a loop region or a sustain point on the timeline as well, to make the event stay active. But the multi-sound needs to be set to “Async” to not freeze playback if the timeline stops at the sustain point.

Any multis placed in a custom param are automatically set as Async.

---

<div class="post-metadata">

**Author:** ![mgalach](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mgalach](https://qa.fmod.com/u/mgalach)\
**Post date:** [September 3, 2019, 12:33pm UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/7 "2019-09-03T12:33:31Z")

</div>

Adding loop region restarts event, so can switch to diferent sound.

but adding sustain works fine, thanks!

---

<div class="post-metadata">

**Author:** ![Skaven252](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/skaven252/32/63_2.png) [@Skaven252](https://qa.fmod.com/u/Skaven252)\
**Post date:** [September 4, 2019, 4:50am UTC](https://qa.fmod.com/t/how-to-randomize-looped-sounds/15011/8 "2019-09-04T04:50:17Z")

</div>

> [@mgalach](#):
>
> Adding loop region restarts event, so can switch to diferent sound.

If the loop is shorter than the multi-sound region, it will not retrigger the multi. Zoom in to the start and the end of the loop to see if there is a gap.
