Opening document…

The interface could not load. You can still read below. Retry

2 Create a Studio Project and Configure Looping and Random Playback

Before you start: Complete Chapter 1 and install Studio through Harken Hub. This chapter covers sound authoring in Studio only; you do not need a Unity project yet.

Download the Audio Files for This Chapter#

Download and extract the audio archive below.

Import_roll_a_ball.zip

It contains four WAV files: one continuous sound, SFX_Ball_Roll_Loop, and three slightly different SFX_Ball_Pickup sounds. When you connect them to the game later, the first provides the ball's rolling sound and the other three provide pickup sounds.

One looping sound and three pickup sounds extracted from the archive

Create an Empty Audio Project#

  1. Open Harken Hub, click Projects on the left, and click New Project at the upper right.

    image.png

  2. Enter RollABall_Audio in Project Name.

    image.png

  3. Click Browse to the right of Location and select the parent folder for your Harken project, for example, E:\Harken projects.

    image.png

  4. Click Create Project at the lower right of the form. In Confirm New Project, check that the Studio version matches your selection and that Template indicates an empty project without a template. Then click Create Project in the confirmation dialog.

    image.png
    image.png

  5. Wait for Studio to open. If it does not open automatically, find RollABall_Audio in Hub's Projects list and click Open Project. The Harken Studio main window appears as shown below.

    image.png

The Explorer at the upper left of the main window lets you find project objects. Start there to create your own sound objects.

Create a Gameplay Layer and Import Sounds#

A Layer organizes a group of audio objects. This tutorial keeps the four sounds and the container in a single Gameplay Layer so they are easy to find and manage.

  1. In the Explorer at the upper left, find Assets → Layer, right-click Layer, and choose Create → Layer.

    image.png
    image.png

  2. Name the new Layer Gameplay and press Enter. To rename an object later, select it and press F2, or right-click it and choose Rename.

    image.png
    The Layer renamed to Gameplay
  3. In File Explorer, select the four audio files you extracted and drag them together onto Gameplay in the Explorer.

    One looping sound and three pickup sounds extracted from the archive
    Dragging the four selected audio files onto Gameplay
  4. Confirm that four Sound objects appear under Gameplay, with names matching the files. A Sound is a project object that stores an audio source reference and playback settings such as Loop and Volume; it is not the WAV file in File Explorer itself.

    The four imported Sounds under Gameplay

An asterisk and italic text beside an object name indicate unsaved changes. You will save after setting up the looping sound and naming the container.

Set Up Continuous Playback and Audition#

  1. In Explorer → Assets → Layer → Gameplay, double-click SFX_Ball_Roll_Loop and find the Inspector on the right of the window that opens.

    image.png
    image.png

  2. Find Loop under Inspector → Basic → Playback. The 1 option on the left is currently selected, meaning the sound plays once each time it is triggered.

    image.png

  3. Click Infinite to the right of Loop so the sound loops continuously after playback starts.

    Loop settings after selecting Infinite
  4. In the Explorer, click to select SFX_Ball_Roll_Loop, then click the green triangular Play button at the top of Studio.

    image.png

    You can also select SFX_Ball_Roll_Loop in the Explorer and press Space to play it, without clicking the Play button at the top.

  5. After confirming that the sound loops continuously, click the red square Stop button at the top or press Space again to stop this audition before continuing. This Stop button controls audition playback.

    image.png

Use a Container to Randomly Play One Sound#

A Container controls how its children play. In this section, you place three Sounds in one container and use Random (random selection) with Single (one child per trigger) so that each trigger plays one randomly selected sound, rather than all three at once.

  1. Return to Explorer → Assets → Layer → Gameplay on the left of the main window. Click SFX_Ball_Pickup_01, then hold Ctrl and click SFX_Ball_Pickup_02 and SFX_Ball_Pickup_03 to select all three Sounds.

    image.png

  2. Right-click and choose New Parent → Container.

    Creating a parent container with all three Sounds selected
  3. Name the new container SFX_Ball_Pickup and press Enter. Expand it and confirm that all three Sounds are inside.

    image.png

    After renaming it, press Ctrl+S to save the project.

  4. Select the SFX_Ball_Pickup container. Under Inspector → Basic → Selection on the right, leave Mode at its default, Random (randomly select a child), and Play Type at Single (select one child Sound per trigger). Under Basic → Playback, leave Loop at its default of 1 (do not repeat this playback). You do not need to change these settings.

    Random, Single, and Loop settings for SFX_Ball_Pickup
  5. Return to the Explorer, select the SFX_Ball_Pickup container, and press Space to audition it. Only one sound should play, then stop when it finishes. Wait for it to finish before pressing Space again, and repeat a few times. Random selection can play the same sound consecutively; it does not guarantee that the three sounds take turns. Hearing the same sample twice in a row does not mean the configuration is wrong.

    image.png

While auditioning, you can see which Sound is playing in Blueprint. Blueprint is open by default; if you cannot find it, choose View → Blueprint at the top of the main window.

image.png

The Sound currently playing has a green highlighted border in the Blueprint view.

image.png

Finally, press Ctrl+S, or choose File → Save Project at the top of the main window, to save the project.

image.png

Chapter check: Gameplay contains a Sound with Loop=Infinite and a Random container holding three Sounds. Each random audition plays only one sound. Playback is stopped and the project is saved. Continue to Chapter 3: Create Actions and Control Volume with a Variable.