Steps to Take

Load the script into the project from the menu: Plugins > Python Samples > Audio Driven.

Load an audio file in .wav format.

Select a prop in the scene.

Adjust the animation parameters and click the Apply button when finished.

Code Flow

Given an audio file, the script will create an audio spectrum data with the help of the scipy module. Then a collection of clones will be made according to the parameters inside the user interface such as Clones, Spacing, Alignment, Transition Color, Ramp & Fade, and various transformational elements. The clones will then be animated according to the audio spectrum multiplied by the transform strength.

APIs Used

You can research the following references for the APIs deployed in this code.