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.
Last updated
This step-by-step guide walks you through the approach set up in Unity for displaying your navigable 3D environments at the CRAIVE-Lab.
Last updated
This guide assumes that you know how to . Please familiarize yourself with that process before proceeding.
Here is a list of things you should have on your computer (and yes, this can be your checklist):
Pro tips!
It is a great idea to make a visual map (artisanal or otherwise) that specifies the correspondence between individual GameObjects in your Unity scene and the individual audio files. This ensures that your soundscape is spatially accurate, and prevents you from creating confusions during the design process;
Before you set up spatial audio at the CRAIVE-Lab, it is also a great idea to simulate your spatial soundscape in a binaural setting. You can use Unity's own AudioSource and AudioMixer components to do so. And remember to disable or these components when you are happy with the simulated results.
Select any GameObject in your Hierarchy tab. On the Inspector, click on the Tag dropdown menu, and select Add Tag... .
Click on the +
icon under Tags, and add a tag called SoundSource
.
The spelling here should be exact: the tags are case-sensitive and space-free.
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
.
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:
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.
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:
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.
Hit play and enjoy!
The implementation of this OSC component comes from in 2015.
By default, the Out IP is 127.0.0.1
, which refers to your own computer. Please ask one of the about the IP address of the CRAIVE-Lab's audio workstation computer, as well as the proper In Port and Out Port.
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 .