# Instance parameter not changing sound

**URL:** <https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617>\
**Category:** Unity\
**Created:** [April 5, 2022, 2:29am UTC](https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617 "2022-04-05T02:29:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![creid](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/creid/32/3506_2.png) [@creid](https://qa.fmod.com/u/creid)\
**Post date:** [April 5, 2022, 2:29am UTC](https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617/1 "2022-04-05T02:29:56Z")

</div>

Hello,  
I have an FMODStudioEventEmitter which I can Play() and Stop() on perfectly fine, but I am having difficulty adjusting the parameter at runtime.  
I am calling emmiter.EventInstance.setParameterByName(“myparam”, someValue, false) and can clearly see the parameter change for the instance in the profiler when the game is running, but cannot hear the effects of the parameter changing at all, it’s a pitch shift so its quite obvious to hear the difference.  
The parameter works fine in fmodstudio when authoring the event.  
Is there something obvious I am missing? Any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)\
**Post date:** [April 6, 2022, 1:36am UTC](https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617/2 "2022-04-06T01:36:04Z")

</div>

Calling `GetComponent<FMODUnity.StudioEventEmitter>().EventInstance.setParameterByName();` will set the parameter on a created event instance, but if you are calling `Play()` and `Stop()` on the emitter directly it will be creating new instances that won’t be affected by that code.

Instead, if you want to set parameters on the emitter _before_ playing, you need to call `SetParameter` directly on the emitter (not the event instance). The emitter will cache the parameters until `Play()` is called.

---

<div class="post-metadata">

**Author:** ![LS1](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@LS1](https://qa.fmod.com/u/LS1)\
**Post date:** [March 15, 2024, 12:31am UTC](https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617/3 "2024-03-15T00:31:10Z")

</div>

hello I’ve a similar problem, parameter work in editor but not in build

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [March 17, 2024, 11:26pm UTC](https://qa.fmod.com/t/instance-parameter-not-changing-sound/18617/4 "2024-03-17T23:26:07Z")

</div>

The solution can be found here: [ERR\_EVENT\_NOTFOUND when setting a root folder parameter - #5 by LS1](https://qa.fmod.com/t/err-event-notfound-when-setting-a-root-folder-parameter/20692/5)
