Audiokinetic Wwise Knowledge Base

Using multiple randomized loop start and/or loop end for a sound

Obtaining random variations in loop start and end location is possible using the following suggested workarounds.The solution differs whether you want to implement this in the interactive music or actor-mixer hierarchies but the same concepts apply however.

The following example workaround will be an ambience sound in the actor-mixer hierarchy using one of 3 possible loop start locations. The workaround implies splitting up the audio file in various segments from the sound start (LO1) to loop offset 2 (LO2) -> segment 1 (S1), from LO2 to LO3 -> (S2), and finally from LO3 until the end -> (S3).

  1. Create a random container and set it to continuous and enable looping using sample accurate transitions (optionally change random behaviour, number of loops etc.)
  2. As a child of the above random container, create a sequence container in continuous mode using sample accurate transitions
  3. Insert all segments edited above in the playlist (S1,S2,S3)
  4. Repeat steps 2 and 3 for an additional sequence container this time using only S2+S3
  5. As a child of the random container add a sound with the last segment (just S3)
  6. Create a playback event for the parent random container
     

The above is just an example of the possibilities you can generate (given some work I agree) when you start creating hierarchies of containers. You can extend this example by creating more possible loop start locations. You can even create loop end variations this way if you need to.

Doing the equivalent of the above in the interactive music hierarchy is actually simpler and does not necessitate editing the files but instead involves duplication of segments using different entry and exit cues. Here is a second example creating variation on loop start and end points using the interactive music hierarchy.

  1. Create a new music playlist container. Set it to random continuous in the music playlist editor and set your looping properties and random behaviour.
  2. Go to the transition tab of the music playlist container properties, select any to any transitions and disable play post-exit and pre-entry
  3. As a child of the music playlist container, create a new music segment with a new music track under it and set the entry and exit cues in the music segment editor
  4. Duplicate this segment for the number of desired loop start and loop end variations desired
  5. Edit individual segments loop start and loop end points
  6. In the music playlist editor (select playlist container in the interactive music layout), drag all above created segments on the random continuous group to create playlist items
  7. Create a play event on the parent music playlist container
     

Again the interactive music hierarchy offers so many controls that you can probably do much more than this if you want.

Important note: Duplicating segments will not result in duplication of assets in the banks. The same applies for the duplication of sequence containers in the first example.




Article Details

Last Updated
3rd o July, 2009

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Continue