Audio

Smoke Show

SmokeShow

Smoke Show - Live Music Visualization in Unity

An explanation of Smoke Show’s functionality is available here and a tutorial is available here.

Developing Beginner level skills in Unity is encouraged before using Smoke Show!

How to Get Started with Smoke Show

  1. Download and install Unity - unity3d.com
  2. Download and unzip the repository - here
  3. Open the project in Unity by double-clicking the main.scene file in /Assets/Scenes - ignore or skip any warnings about Unity versions.
  4. Watch this tutorial.
  5. Press Play in Unity to see Smoke Show in action - by default the application uses the bundled Busy Beds - Kangaroo Court mp3 file as the source audio.
  6. When you are ready to build an executable of your customized SmokeShow - refer to Unity’s build documentation.

How Smoke Show Works

Check out this tutorial.

While playing, elements in Smoke Show can be swapped/switched by pressing keys on your keyboard. All elements are mapped to keyboard keys via KeyToIndexDictionary.

All elements in Smoke Show appear in the Hierarchy view in Unity.

Hierarchy

They are divided into 2 categories:

  1. Backgrounds - backgrounds are a collection of images that are animated statically.
  2. Music Reactive - music reactive elements are collections of images that react to the music via the AudioPeer.

As you swap between elements live, if the last selected element is Music Reactive, you can change the sensitivity of how it reacts, turn on and off its buffer, or switch if the element reacts to Bass, Mids, or Treble. Default keys for these operations are available in the Unity Input Manager https://docs.unity3d.com/Manual/class-InputManager.html and functionality is defined in TriggerElements.

All elements use the AnimateTiledTexture file to animate an array of images. Video is not currently supported.

Create a new element by duplicating an existing element in the Unity Hierarchy. Select an element and press Control+D.

All elements are mapped to keyboard keys via KeyToIndexDictionary. Music Reactive elements are mapped to keys 1-T from left to right on your keyboard. Backgrounds are mapped to Y-; Refer to the Triggerable Element component/script in the Unity inspector.

Hierarchy

When making a new element - set State to INACTIVE and increment Index Of Element by 1.

Hierarchy

After using the Lock on the Unity inspector for an element, select your array of images for an animation and drag them on to the AnimateTiledTexture component. Make sure you first change the Size to 0, and set your Frames Per Second to your desired animation speed.

Live Audio

If you wish to use live audio vs. an mp3 or audio file, click the Live Audio checkbox on the AudioPeer component in the inspector.

Hierarchy

This will use the first available microphone on your device as your audio source. You may need to edit Frequency to match your microphone’s sample rate frequency.