Patch Editor
Audio Patches
Energy Meter Patch

Energy Meter patch

Use this patch to estimate the signal power (loudness) of an audio input in a range between 0 (silence) and 1 (max). For a more customization and options, use the next gen version of this patch.

Input

NameDescription
Audio

Connect an audio source here, for example a patch representing an audio clip or the microphone.

Window

The time window you want to track measured in milliseconds, a smaller window gives a faster reaction to signal power changes.

Cut-off

Cutoff frequency in Hz for a low-pass filter. This is applied before the signal power is estimated.

Outputs

NameDescription
Audio

The audio source to estimate the signal power on.

Energy

The power estimated on the most recent time window of the mono audio, or 0 in stereo mode.

Energy Left

The power estimated on the most recent time window of the left channel of the stereo audio, or 0 in mono mode.

Energy Right

The power estimated on the most recent time window of the right channel of the stereo audio, or 0 in mono mode.

Example

Follow this tutorial to create a simple effect using the Energy Meter patch. You'll use signals from this patch to animate objects in the scene.

Scripting

Audio functionality can also be added to your project using the Meta Spark API. The AudioModule lets you retrieve and control audio playback controllers in your project using scripts. The AudioGraphModule can be used to modify audio signals and create custom effects.