procedural game audio Asbjoern Andersen


How do you keep your game audio varied – without needing countless individual audio files? Procedural sound design can help with exactly that, and in this hands-on guide, senior lecturer, teacher fellow and author of the Game Audio Implementation book, Richard Stevens, demonstrates how the concept works in the Unreal Engine.

When creating a sound effect for a movie you’ll know that the audience is only going to hear it on one specific occasion, and you’ll likely build it up through editing and layering different sound elements to get just what you want.

01_game_audio_Explosion

Figure 01 ‘An explosion’

 

Most games, like sports, are about skill and mastery, so the player will be repeating similar actions again and again, and consequently they will be hearing the same sounds again and again. The trouble is that we’re very sensitive to this kind of repetition, since it just doesn’t happen in real life.
 

Video Thumbnail

Video: Explosion Baked


 
The obvious answer is just to have loads and loads of sounds but it would be far too much work to create 30-40 versions of every sound in the game (plus there are obviously limitations as to how much we can fit on a disk!).
If we look at our ‘explosion’ sound again we can see that the final sound is made up of different characteristic components, and this idea is key to starting to think about procedural approaches to sound design.

02_game_audio_Explosion_Components

Figure 02 ‘Explosion Components’

What we want to do is to keep these components separate when we import them into a game so that we can recombine them in different ways at run time. A lot of sounds in games aren’t ‘sounds’ at all, they are systems of sounds. This kind of procedural approach requires a different way of thinking, and sometimes different kinds of sound assets, since we often want to isolate the individual components that make up a sound.

When we bring these components into a Sound Cue in the Unreal Engine we can build a system of playback, and by having a few different versions of each component we can randomly combine them to create variation.

03_game_audio_Procedural_Explosion

Figure 03 ‘Procedural Explosion’

 

Video Thumbnail

Video: Explosion Components


 
By taking this approach we don’t need thousands of complete sounds in our game to be able to get thousands of different sounds out of the system. Randomizing the combinations of layers can vastly increase the number of potential outcomes with only a few additional sounds.

By taking this approach we don’t need thousands of complete sounds in our game to be able to get thousands of different sounds out of the system

In the above example we have four sets of three possible sounds that can potentially be heard so this will give us 81different sound outcomes. If we added just one other ‘Crack’ element then we’d get 108 potential sounds.


WANT MORE LIKE THIS?
FOLLOW A SOUND EFFECT FOR THE LATEST IN FANTASTIC SOUND:
 
          

We can increase this variation even more by adding some slight randomized delays and modulations of pitch and volume to each element, giving us.. erm… a very large number of possible outputs.

04_game_audio_Delay_Mod

Figure 04 ‘Adding Delay and Modulation nodes’

Video Thumbnail

Video: Explosion Delays and Modulation


 

Another thing we might want to do is to change the sound depending on what was being blown up, or the materials of nearby objects. Again by keeping these material components separate we can choose to layer them into the Sound Cue when appropriate by using a switch.
 


Popular on A Sound Effect right now - article continues below:

 

Latest releases:  
  • Environments Summer Mountains Play Track 37+ sounds included, 127 mins total $30 $21

    Summer Mountains is a collection of nature sounds captured during several trips in 2017 and 2018.

    This library has been fully recorded at high altitude (over 2000m and more) in the heart of the French Alps in places such as the Vanoise National Park and the Natural Reserves of Aiguilles Rouges, Passy, ​​Carlaveyron and Vallon de Bérard.

    This collection provides more than 2 hours of high quality recordings such as alpines pastures ambiences, forests, wind, streams and waterfalls as well as herds of sheep or cows, birds and distant marmots, all without any human sounds.

    All recorded in 24 bit / 96 kHz and fully tagged with metadatas, Summer Mountains should provide you the essentials of a mountain journey.

    Gear Used: DPA4060 stereo set powered by a Sound Devices 702

    Summer Mountains Photo Cover Copyright © Mathilde Leroy
    30 %
    OFF
    Ends 1542668400
    Add to cart
  • Ultra-high resolution Sea Doo recordings utilizing on-board microphone techniques, from multiple perspectives (driver perspective (mid-side) exhaust perspective & engine perspective).

    This library provides perfectly seamless loops at every 500RPM interval from IDLE to MAX speed, giving you insanely detailed control for interactive dynamics in game audio, or film sync. Not only that but also start-ups, shut-offs, revs, both dry and wet.

  • Environments Outdoor Ambience Play Track 200+ sounds included $50 $25

    Outdoor Ambience features 200 ambience length sound effects.  Featured in this collection are crowds, cities, forests, jungles, parks, streets, parades, water and more!  All sound effects have been hand-picked from the Sound Ideas HD – Atmospheres & Environments library.

    50 %
    OFF
    Ends 1543618800
    Add to cart
  • Animals & Creatures Western Play Track 200+ sounds included $50 $25

    The Audio Hero Western collection features 200 professionally recorded sound effects, ready for use in your productions.  Included in this library are guns and pistols, horses, stagecoaches, steam trains, jail cell doors and much more!  These sounds are all hand-picked from the Hollywood Edge Burtis Bills' Sounds of the American West sound effects collection.

    50 %
    OFF
    Add to cart
  • Drones & Moods Infiltration Play Track 161 sounds included, 39 mins total $30 $20

    Welcome to “INFILTRATION”, a collection of 161 sound effects aimed to be used in modern espionage/infiltration productions.

    From intense low frequency atmospheric elements to powerful synth movements this 1.4 GB pack can be your secret tool to enhance trailers, movies, games or musical compositions. See it as a powerful kit to create a modern espionage feel in your production.

    As a bonus I included the sources (24 sfx) used to create some of the sounds in the library.

    Sounds included:
    Atmospheric element_Low • Fx_Alert • Fx_Synth_Drop • Drone_Pulse • Fx_Snare_Synth_Tension • Fx_Transition • Fx_Movement • Fx_Distant_Atmospheric • And More

    33 %
    OFF
    Ends 1543532400
    Add to cart

Sound Effects Sale

The Early Black Friday Sale is now live!

Land huge savings on 100s of excellent sound effects libraries here


Need specific sound effects? Try a search below:
 

By getting information from the game about what type of material is being blown up we can use this to control the switch, and therefore which material components of sound get added to the overall explosion sound.

05_game_audio_Explosion_Materials

Figure 05 ‘Explosion Materials’

Thoughts on the term ‘Procedural Sound Design’:

In writing the book we made a conscious decision to term this kind of sound design, that is typical in the current practice of game audio, ‘Procedural Sound Design’ to differentiate it from ‘Procedural Audio’.

Andy Farnell, who coined or at least popularised the term ‘Procedural Audio’ sees it as any kind of system where the sound produced is the result of a process. He describes these ideas more fully here. So under that definition, as soon as you set up any kind of system of playback you could see it as being procedural audio.

However there has been a lot of important work and progress in terms of procedural audio for games in the last few years (see http://proceduralaudionow.com/), and this has encompassed a variety of techniques, but there has been some emphasis on the idea of these procedural systems being synthesis based, which ultimately is probably the most flexible solution for interactivity.

This is a specialist field which we don’t go into in any depth in the book since there are other great books out there on this (not least Andy’s book ‘Designing Sound’). In the book we attempt to describe the range of procedural approaches by saying, “This approach to sound design exists on a spectrum from procedural sound design, where we tend to be manipulating pre-existing assets, to procedural audio, a term more frequently used when systems of synthesis are used to generate the sounds themselves (with much in between that combine both approaches)”.

To throw another thing into the discussion, when discussing music systems we also use the term algorithmic, which again could be used to describe any kind of system of playback. Although we could just call this procedural music (as others such as Karen Collins have done), but we felt it worth preserving and highlighting ‘algorithmic’ given the long history of algorithmic techniques explored for music in the past, which a search for ‘procedural music’ is going to miss.

 

Video Thumbnail

Video: Explosion Materials


 

Now we have all the elements of a sound as separate components we can also do other things with them, like spatialize them around the player in different ways. For the Game Audio Implementation book we built a simple system that will throw sounds around the player for people listening in 5.1 or 7.1. This could be used for elements of the explosion itself or for debris.

06_game_audio_Spatialized_Diagram

Figure 06 Diagram

 

07_game_audio_Spatialized_Detail

Figure 07 Detail

 

This was done in Unreal’s Blueprint system – which looks a bit daunting at first but once you get the hang of it you can pretty much do anything you might dream up!

08_game_audio_Blueprint

Figure 08 Blueprint

 

Video Thumbnail

Video: Explosion Spatialized


 
By using a procedural approach to sound design we now have an explosion sound that’s different each time, is ‘aware’ of the different materials involved in the explosion, and spatializes around the player in stereo, 5.1 or 7.1.
 

A big thanks to Richard Stevens for his insights on procedural game audio! If you want to know more about procedural sound design for games then check out the Game Audio Implementation book from Focal Press. If you’re new to UE4 you can get UE4 here for free, and you can download all the levels that go alongside the book here (also for free!) to get started.
 

Please share this:


 


 
 
THE WORLD’S EASIEST WAY TO GET INDEPENDENT SOUND EFFECTS:
 
A Sound Effect gives you easy access to an absolutely huge sound effects catalog
from a myriad of independent sound creators, all covered by one license agreement
- a few highlights:
  • Weapons The Range 20 Guns Play Track 3581+ sounds included $120 $100

    This library by Nathan Smith delivers the sounds of 20 guns, 20+ casing/mags/weapon impacting 20 different surfaces, and studio Foley. Files were recorded at 96kHz sample rate (48kHz to 192kHz), 24 bit resolution.

    Weapons included:

    5 Pistols:

    Kimar Cal 6mm, Kimber 9mm, MP Shield 9mm, H&K USP .40 S&W, H&K P30

    14 Rifles:

    22 LRG Rifle, 22 Lever Action, 22 Magnum Henry. Springfield M1A, Springfield M1A SOCOM2, Steyr AUG A3, Sig 551 A1, AR 15, COLT AR 901 semi auto .308, CMMG AR15, Remington 700 Bolt action .308, Uzi full auto IMI model b, AAC MPW full auto, Colt M4 full auto, Barrett M82 A1

    1 Shotgun:

    12 gauge Mossberg

    Bullet casings: Impacts, Handling, Foley

    Surfaces (20): bone, carpet, concrete, dirt, drywall, grass, glass, marble, metal auto, metal grate, metal plate, plastic, rock, rubber, sand, tarp, Tarpaper, tile, wood

    Casing Types: 9mm, 223 – 5.56, 308, 40 S&W, 30.06, 40.75GOV, 357MAG, 45 ACP, 303, 50 BMG, 12 gauge

    Other: Pistol, Rifle, AR, Grenade, Artillery, M1 Garand clip, AR mag metal, AR mag plastic, M1, Pistol mag small, Pistol mag large

    Gun Cleaning Foley: H&K USP and AR15

    Targeted for sound designers – 96kHz, 24bit (multi ch A1, A2, A3 channel layout). All files have been cleaned and organized for easy use for your projects, including detailed Soundminer metadata.

    17 %
    OFF
    Ends 1543532400
    Add to cart
  • City Life Quiet Hotels At Night Play Track 27 sounds included, 93 mins total $30 $20

    Quiet Hotels At Night is the first one of themed library series in which you’ll go through night hotels. The package includes 27 stereo tracks with evening and night atmospheres from hotel corridors and rooms. The library is recorded mostly in large hotels in Bulgaria, Sweden and Romania. You will hear a variety of quiet atmospheres from empty corridors and rooms, air conditioners, bathrooms, an empty lobby bar with working refrigerators, to low activity from neighbouring rooms and backgrounds, screaming from a distant room, etc. Room tones and ambiеnces are suitable background for any audiovisual projects.

    All files are meta-tagged in Soundminer

    Gear used: Sound Devices 633. Neumann KM184 stereo set, Sennheiser MKH8020 stereo set

    Enjoy your stay at the Night Hotel.

    33 %
    OFF
    Add to cart
  • Drones & Moods Singing Bowls Play Track 151 sounds included $10 $7.50

    Rich tonal singing bowls played, sustained, and hit. Two octaves of an A Bowl and a D Bowl. Recorded and edited at 96kHz.

    25 %
    OFF
    Add to cart
Explore the full, unique collection here
 
   
FOLLOW OR SUBSCRIBE FOR THE LATEST IN FANTASTIC SOUND:
 
                              
 
GET THE MUCH-LOVED A SOUND EFFECT NEWSLETTER:
 
The A Sound Effect newsletter gets you a wealth of exclusive stories and insights
+ free sounds with every issue:
 
Subscribe here for free SFX with every issue

3 thoughts on “Why Procedural Game Sound Design is so useful – demonstrated in the Unreal Engine

Leave a Reply

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

HTML tags are not allowed.