Randomize property again within event timeline

Is it possible to get a random modulation to give you another random value within a single playback of an event? Meaning is there a way to trigger the random modulator to evaluate a new value without calling Play again on the entire event?

For example, say I have a something looping, and I want to randomize its pitch. I can modulate the pitch with random, but that only randomizes when the event starts. I can also control pitch with a parameter, but I still can’t change it while it’s looping when I need to (LFO doesn’t work because I have specific times I want it to change to a random value rather than all the time).

Maybe I figured it out while writing this. Would this work:

  • Automate pitch with a new parameter
  • Create a command instrument to set that parameter’s value
  • Use a random modulator on the value the command instrument will set it to
  • Place the command instrument on the timeline wherever I need that value to change

That seems like the solution:

(property randomized, on timeline in multiple places) Command instrument → (set value) → Parameter → (automate) → Property to be randomized

Update: I tested it. This works. I figure I’ll just leave this here for anyone it might help.

While testing I was wondering about how to automatically trigger the command instrument so I didn’t have to paste it over and over. A solution for someone else’s question turns out to be a great way to do that (put the command instrument into a scatterer instrument as the only item in the playlist). Here’s that topic:

https://qa.fmod.com/t/changing-parameter-every-x-to-y-seconds/24439/3

You’ve already worked this out, so I’ll just provide some relevant background information that might be useful for future reference.

Random modulators can be applied to the properties of snapshots, events, and instruments. Random modulators generate random values only when the parent object of the property they modulate starts - which means that random modulators on properties of events and snapshots generate their values only when an instance of the event or snapshot is started, whereas random modulators on instrument properties generate random values whenever the instrument is triggered.

Thus, while it is not possible to for a random modulator on an event property to generate a new random value after an event has started, a random modulator on a “set parameter” command instrument will generate a new random value each time the command instrument is triggered, and so can be used to randomize the value of an event property without having to restart the event instance whenever the command instrument is triggered.