CRI ADX  Last Updated: 2024-07-17 10:47 p
Implementing a Non-Repetitive Sound

What is a Non-Repetitive Sound?

In some cases, you may want the sound to be different each time you play back a Cue to avoid repetitiveness.
If you do not want the same sound to play again and again, you can prepare different waveforms and you can implement a non-repetitive sound effect in the authoring tool (without any programmer intervention) while using the same Cue.

Playing Different Sound Effects by Programming

Of course you can prepare as many Cues as you want and then trigger a different one each time.
However, with this method, code must be written to play and handle the different Cues.

Playing Different Sound Effects Only by Authoring the Data

A Cue can be configured in such a way that the sound being played back is randomly chosen among several sounds.
In Atom Craft, this is most often implemented data-side (in the tool) rather than programmed (although it is also possible to do it in code).

It minimizes the implication of the programmer since this adjustment can be done by just replacing the data.

Some Features are Harder to Implement in Code

Switching music in sync with a beat can be implemented to some extent in the code (it requires some monitoring). However, accurate control can be achieved much more easily by using the features available on the tool side.