Interactive Virtual Soundscape

This step-by-step guide walks you through the approach set up in Unity for displaying your navigable 3D environments at the CRAIVE-Lab.

Before you begin...

Here is a list of things you should have on your computer (and yes, this can be your checklist):

Preparing sound sources

Step 1

Select any GameObject in your Hierarchy tab. On the Inspector, click on the Tag dropdown menu, and select Add Tag... .

Inspector and tag.

Step 2

Click on the + icon under Tags, and add a tag called SoundSource.

You also have the option to skip this step, and instead manually assign the sound sources to the Virtual Sound Source Tracker later. See Step 7 for details.

Step 3

Select all your GameObjects that you intend to assign as virtual sound sources in the Hierarchy tab of your project. Assign their Tag to SoundSource.

Adding Open Sound Control (OSC)

Step 4

In the Assets folder, under C02_OSC --> Prefabs, drag the OSC prefab into the Hierarchy tab. In the inspector, the OSC prefab should look like this:

The OSC prefab in the inspector.

The implementation of this OSC component comes from Thomas Fredericks in 2015.

Step 5

In the Inspector, change the Out IP of the OSC component to the IP address of the audio processing computer that you intend to communicate with.

Adding Virtual Sound Source Tracker

Step 6

In the Assets folder, under C02_OSC --> Prefabs, drag the SourceTracker prefab into the Hierarchy tab. In the Inspector, the SourceTracker prefab should look like this:

The SourceTracker prefab in the Inspector.

Step 7

From here, you have two options:

  • If you have tagged your GameObjects as SoundSource, then all you need to do is to check the Auto Detect box;

  • Otherwise, you can specify the number of sound sources for the Virtual Sound Sources list in the SourceTracker --> Virtual Sound Source Tracker component, and drag the GameObjects in the Hierarchy tab that you would like to designate as virtual sound sources one by one into the list.

Step 8

Hit play and enjoy!

The OSC messages are sent to a Max 8 patch in the audio workstation. For more information how to set up this Max patch, please consult one of our active collaborators.

Last updated