Is it possible to adjust programmer instrument length at runtime?

Hello.

I have a question about the programmer instrument.

Currently, the length of the programmer instrument is set to the longest Chinese standard,

for example,
if Japan is 1 second, Korea is 1.5 seconds, and China is 3 seconds.
I set it manually one by one.
Can I adjust the length of the programmer instrument in the game runtime?

Thank you.

Though I never used programmer instrument myself, if you set your programmer instrument to “async” (which isn’t, in your screenshot), the entire sound will be played, whatever the duration of the instrument.

No, you cannot change the length of an instrument at run time.

However, you do not necessarily need to do so. As Alcibiade correctly says, if you set the instrument to “Async” mode, it will be able to play out the full duration of the sound file, regardless of its length.

Incidentally, I might be wrong, but it sounds like you might be creating one programmer instrument for every sound you want to play through a programmer instrument. This is a common mistake, but is not something you need to do: A programmer instrument lets your game’s code select which sound plays at run time. This means that one programmer instrument can be used to play a wide variety of different sounds, instead of needing to create one programmer instrument for each of those sounds.

Before setting

After setting

That was a great feature.

Thank you.