# Question about local parameters and command instruments

**URL:** <https://qa.fmod.com/t/question-about-local-parameters-and-command-instruments/21862>\
**Category:** FMOD Studio\
**Created:** [July 10, 2024, 2:11pm UTC](https://qa.fmod.com/t/question-about-local-parameters-and-command-instruments/21862 "2024-07-10T14:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jan](https://qa.fmod.com/u/Jan)\
**Post date:** [July 16, 2024, 6:31am UTC](https://qa.fmod.com/t/question-about-local-parameters-and-command-instruments/21862/3 "2024-07-16T06:31:46Z")

</div>

Sorry, didn’t see your response until now. I would expect to get e-mails for answers, but apparently I don’t.

Anyway, I did solve it using a global parameter instead, but I still wanted to understand this.

I was trying to do the same thing as here:

> [@Returned global parameter value not what it should be](https://qa.fmod.com/t/returned-global-parameter-value-not-what-it-should-be/21861):
>
> I’ve added a global parameter “TrackNumber”. In an event I have all my music tracks one after another and use this parameter to select the active one: Each track is a nested event. When it’s finished, a command instrument increases the TrackNumber value by one: [grafik] This way I’m getting a nicely playing track playlist, but I’m also able to select the active track from code by just setting the TrackNumber parameter directly. However, since the tracks increase the global parame…

Just with a local value instead. Ie an event that represents my music playlist and automatically moves forward when one track ends.

There are probably many ways that this could be done, I’m still a beginner when it comes to using FMOD.

---

_[View the full topic](https://qa.fmod.com/t/question-about-local-parameters-and-command-instruments/21862)._
