Interactive Music with ADX2

There are many powerful ways to implement interactive music with AtomCraft. In this tutorial, we are going to introduce the Block playback system. Blocks allow you to organize your Cues in sections that can be played in a different order depending on the game context.

Step 1: Change the display units of the timeline to bars and beats.

• Open your Cue and right-click on the ruler, then select [Timebase Settings]

ADX2_IM_02

• In the [Timebase Settings] window choose Bars/Beat

ADX2_IM_03

Step 2: Create Blocks in a Cue.

• Right-click on the timeline and in the context menu, select [New Object].

ADX2_IM_04

• Chose [Create Block].
A new Block appears at the top of the timeline.

ADX2_IM_05

• Create more Blocks for your music

ADX2_IM_06

Step 3: If you like, you can change the color of your Blocks.

• Right-click on a Block and select [color settings].

ADX2_IM_07

Step 4: Add your music!

• Create a Track per instrument or per type of music loop.

ADX2_IM_08

• Simply drop the loops on the right tracks in the appropriate Blocks.

ADX2_IM_09

Step 5: Define the Block’s behavior.

• Double-click on a Block to open the properties pane.

ADX2_IM_10

Here we can rename the Block or change its duration.

ADX2_IM_11

The Block destination corresponds to where the playback jumps when the Block has finished playing or has reached a transition point.

ADX2_IM_12

There are 3 types of transitions available:
• The first one is [None]. It will stop the playback at the end of the block.
• The 2nd one is [Next Block]. The Block will transition to the next block.
• The 3rd one is [Block Destination]. The Block will transition to a block from a list of our choice.

If you select 3rd option, the [Block Destination Setting] window will appear.

ADX2_IM_13

Here we can add or remove destination Blocks and choose among 4 types of transitions.

For instance, if we choose [Sequential] and select a new Block as destination, the current Block will transition to the selected Block at the end of the playback.

If we chose [Random] and insert all the available Blocks, it will transition to a random Block at the end of the playback.

Let’s go back to the Block properties pane.
As seen below, we can define the number of times the Block should loop before transitioning. Enter either -1 for an infinite loop or the number of loops to perform.

ADX2_IM_14

The [Block number of divisions] parameter divides the Block in intervals at which transitions can occur.

ADX2_IM_15

For instance, if we have a 4-bar music loop, set the division number to 4 and select [Division] for the [Block transition timing], the Block will wait until the 1st beat of the next bar before transitioning to the destination Block.

ADX2_IM_16

Step 6: Add transitioning Tracks.

It is possible to play a specific Track when transitioning (like an additional jingle).

• To do that, create a Track and add a transition segment at the end of a Block.

ADX2_IM_17

• Right-click on the Track and in the context menu, select the [Block Transition Playback Type] and choose [Playback Transition].

ADX2_IM_18

The Track now appears differently to indicate that it will only be playing during transitions.

ADX2_IM_19

This concludes our tutorial on the implementation of adaptive music using Blocks.

Note that the Block playback system can also be advantageously used to design complex sound effects relying on a sequence of events, such as mechanisms and so on…

Leave a Reply

Your email address will not be published. Required fields are marked *