Skip to content

Basic Demo - Magic

Reading the getting started guide is recommended before following this guide. Make sure to read the user interface documentation as well, if you have any questions regarding the GUI.

If you have any further questions, hit me up in the forums. Feedback is appreciated as well!

Demo Video

Take a look at the following demo video to see this project in action.

Music: Raizer - Magic

Project

Create a new project in Audectra and rename it to Magic, for example. Configure the render patches for this project, if you want to send the render output to a bridge. However, you do not need an active bridge or render patch to follow this guide.

In my case, I've created an addressable strip project with 181 pixels length. In the project properties I've set the frame rate target to 30 FPS.

States

We will create two states for this project. They both will switch after a random number of detected beats, where as one state will be prefered for the softer parts of the song.

Bouncy State

Create a new state and rename it to Bouncy. We will add a bouncing bar and a sparkle explosion effect.

With this state selected, change to the Layers Tab, add the following two effect layers to it and rename them accordingly.

  • Audectra\v1\1D\Bars\Bouncing Bar
  • Audectra\v1\2D\Sparkles\Sparkle Explosion

Set the blending mode of the Sparkle Explosion layer to "Add".

Layers Tab - Bouncy State

Bouncy Bar Layer

With the Bouncy Bar layer selected, open the layer settings menu by clicking on the middle button at the bottom of the layer list.

Set the color mode to "HSV" and move both bottom sliders of the color setting to the maximum. Click the "Bind" button beside the top slider to open the expression editor for the binding.

Enter the following expression, wait for it to compile, and hit Save.

    Temporal.ZeroCrossingRate * 4

To activate this binding, right click on the Bind button in the layer settings window. This will turn the Bind button green. Next, lets bind the size of the effect by clicking the bind button in the "Size" setting.

Enter the following expression, wait for it to compile, and hit Save.

    Spectral.Spread

Activate the binding by right clicking on the bind button. Set the speed setting to the maximum. Next, lets bind the trigger of this effect by clicking the bind button in the "Bounce" setting.

Enter the following expression, wait for it to compile, and hit Save.

    Spectral.Flux > 1.3

Activate the binding by right clicking on the bind button.

Layer Settings - Bouncy Bar

Sparkle Explosion Layer

Open the layer settings of the Sparkle Explosion layer. Set the color mode to "HSV" and move both bottom sliders of the color setting to the maximum. Click the "Bind" button beside the top slider to open the expression editor for the binding.

Enter the following expression, wait for it to compile, and hit Save.

    Temporal.ZeroCrossingRate * 4

Activate the binding by right clicking on the bind button. Slightly increase the "Size" of the sparkles. Next, lets bind the trigger for the sparkle explosion with the following expression.

    Spectral.Flux > 1.3

Activate the binding for the trigger as well.

Layer Settings - Sparkle Explosion

Blobs State

Create a new state and rename it to Blobs. We will add a walking blobs and a stroboscope effect.

With the state selected, change to the Layers Tab, add the following two effect layers to it and rename them accordingly.

  • Audectra\v1\1D\Blobs\Walking Blobs
  • Audectra\v1\0D\Stroboscope

Set the blending mode of the Stroboscope layer to "Add".

Layers Tab - Blobs State

Walking Blobs Layer

Open the layer settings of the Walking Blobs layer. Set the color mode to "HSV" and move both bottom sliders of the color setting to the maximum. Click the "Bind" button beside the top slider to open the expression editor for the binding.

Enter the following expression, wait for it to compile, hit Save and activate this binding.

    1 - Spectral.Centroid * 2.0

Adjust the "Speed" setting of the blobs. Next, open the expression editor for the trigger.

Enter the following expression, wait for it to compile, hit Save and activate this binding.

    Beat.Count > 0

Layer Settings - Walking Blobs

Stroboscope Layer

Open the layer settings of the Stroboscope layer. Edit the binding for the trigger.

Enter the following expression, wait for it to compile, hit Save and activate the binding.

    Spectral.Flux > 1.3

Layer Settings - Stroboscope

Transitions

With the Bouncy state selected, switch to the Transitions Tab. This table shows you all transitions from this state to other states and from other states to this state.

Add one transition from the Bouncy state to the Blobs state and one transition for the opposite direction. Set the trigger condition for the transition from Bouncy state to Blobs state to the following expression.

    Beat.Confidence > 0.8 AND Sustained(Spectral.Centroid > 0.16 AND Spectral.Flatness > 0.2, 400) AND Beat.Count > 4 * Random(4)

Transition - From Bouncy to Blobs

Then, set the trigger condition for the transition from Blobs state back to Bouncy state to the following expression.

    Beat.Confidence < 0.8 OR Beat.Count > 4 * Random(4)

Transition - From Blobs to Bouncy

Customization

Don't like where the transitions trigger or how the states are build up? Don't worry, you can now freely tweak around the project however you seem fit. Have fun!