# Randomized Looping of Audio Tracks Using Metasound in Unreal Engine 5.3

**URL:** <https://forums.unrealengine.com/t/randomized-looping-of-audio-tracks-using-metasound-in-unreal-engine-5-3/1851561>\
**Category:** Audio\
**Tags:** unreal-engine, question\
**Created:** [May 11, 2024, 7:09pm UTC](https://forums.unrealengine.com/t/randomized-looping-of-audio-tracks-using-metasound-in-unreal-engine-5-3/1851561 "2024-05-11T19:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Realkenf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Realkenf](https://forums.unrealengine.com/u/Realkenf)\
**Post date:** [May 11, 2024, 7:09pm UTC](https://forums.unrealengine.com/t/randomized-looping-of-audio-tracks-using-metasound-in-unreal-engine-5-3/1851561/1 "2024-05-11T19:09:41Z")

</div>

I’m currently working on a radio system within Unreal Engine 5.3 using Metasound. However, I’m facing an issue with randomizing the looping system for the songs. Due to limitations in Unreal Engine 5.3, I can’t loop inside the graph. I’m considering using trigger repeat, but it seems quite lengthy. Has anyone encountered a similar challenge and found a workaround or alternative solution to achieve randomized looping for audio tracks using Metasound in Unreal Engine 5.3?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 12, 2024, 7:21am UTC](https://forums.unrealengine.com/t/randomized-looping-of-audio-tracks-using-metasound-in-unreal-engine-5-3/1851561/2 "2024-05-12T07:21:44Z")

</div>

This exaclty what Metasounds can do, right in the graph 🙂

> [@Setting Metasounds Variable](https://forums.unrealengine.com/t/setting-metasounds-variable/508262/18?fbclid=IwAR3Yd1XWqjveeAVOcCdSDlHM1mhP2jrgX7D_Ls_mrKU2NrLtWEZG-m0qBhA):
>
> What you may have found would explain why I had to drop using Quartz Play Quantized. I mentioned this in another thread and it was suggested not to use Quartz but make the MS Standalone. This didn’t work well because controlling the waves from within a MS becomes impossible because of loop detection. You can’t use the outputs from a wave to control the stop of that wave and working around that creates indecipherable MS graphs. But originally I was attempting to use Quartz. My finding was that I…

---

<div class="post-metadata">

**Author:** ![ebarkani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ebarkani/32/984202_2.png) [@ebarkani](https://forums.unrealengine.com/u/ebarkani)\
**Post date:** [May 24, 2024, 11:07pm UTC](https://forums.unrealengine.com/t/randomized-looping-of-audio-tracks-using-metasound-in-unreal-engine-5-3/1851561/3 "2024-05-24T23:07:11Z")

</div>

Hi, there’s lots of randomizing you can do in a graph - what is it you’re trying to do?  
randomize the order of the songs in a playlist?  
randomize loop duration within a song?  
randomize the number of times a song will loop?  
please explain…
