# Programmer Instruments sounds from urls usage / alternatives questions

**URL:** <https://qa.fmod.com/t/programmer-instruments-sounds-from-urls-usage-alternatives-questions/21388>\
**Category:** Unity\
**Created:** [March 20, 2024, 10:59am UTC](https://qa.fmod.com/t/programmer-instruments-sounds-from-urls-usage-alternatives-questions/21388 "2024-03-20T10:59:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [March 26, 2024, 3:33am UTC](https://qa.fmod.com/t/programmer-instruments-sounds-from-urls-usage-alternatives-questions/21388/2 "2024-03-26T03:33:52Z")

</div>

> [@spakment](#):
>
> Are there any options other than using programmer instruments?

Your only other option is to directly interact with the Core API, which means you lose out on all Studio functionality.

> [@spakment](#):
>
> The event that will hold the programmer instrument will be looped quite often, is there a way to “fix” a sound to a programmer instrument rather than having to respond to the callback every time the loop repeats?

There isn’t a way to “fix” the sound to a programmer instrument - essentially, once the programmer instrument untriggers it loses its association with the sound. However, you should be able to create a sound a single time in your own code, and then pass it into the event callback using user data so you can get the programmer instrument to play it.

Take a look at this reply for an example on how you might do so: [Adding effects to real-time recorded audio - #2 by Connor\_FMOD](https://qa.fmod.com/t/adding-effects-to-real-time-recorded-audio/21265/2)

> [@spakment](#):
>
> Alternate solution; at runtime with built banks can I add sounds to events in a similar way to scripting in studio (eg, studio.project.create(‘SingleSound’) and then adding it to an event track). I can’t find any mention of this in the runtime APIs so I assume its not an option.

No, this isn’t an option.

> [@spakment](#):
>
> Are there any utilities that are prefered for batch compressing audio files outside of banks to vorbis?

A few options come to mind, such as ffmpeg, Audacity, and fre:ac, but there may be other options out there that suit your needs better.

---

_[View the full topic](https://qa.fmod.com/t/programmer-instruments-sounds-from-urls-usage-alternatives-questions/21388)._
