Metronome - Metasound Patch for Unreal Engine 5

Compatible with Unreal Engine version 5.0 and above

I created this Metasound Patch to help me implement interactive and multi-layered music segments inside a Metasound Source Asset. My intention is to replicate some of the functionality from middleware like Wwise/Fmod (Pre-Entry, Trigger, and Beat/Bar Callbacks). Although this tool was created for music, I can see interesting applications for pure sound design, like triggering sample-accurate timed semi-automatic gunshots, for example.


Download Here:

IMPORTANT: To use this metasound patch, unzip and paste the “Metronome_Graph_Patch_V1” folder inside your project's “Content” folder. Finally, right-click on your metasound source and find the metronome under Graph/Patch.


Features:

 
 

Outputs:

  • On Pulse Start (Trigger): Triggers when the metronome starts.

  • On Bar Pulse (Trigger): Triggers on every bar.

  • On Beat Pulse (Trigger): Triggers on every beat.

  • On Pre-Entry (Trigger): Triggers before the loop ends using the (Loop Pre-Entry) value as an offset. If the value is 0.0 will trigger at the same time as (On Loop).

  • On Loop (Trigger): Triggers at the start of a new loop after completing a previous one.

  • On Stop (Trigger): Triggers when the metronome stops.

  • On Reset (Trigger): Triggers when the metronome resets. This trigger will wait until the next beat.

  • Current Bar Number (int32): Current bar number on the loop.

  • Current Beat Number (int32): Current beat number on the bar.

  • Pulse Audio Out (Audio): Metronome's audio output. Uncheck (Mute) to activate.

Inputs:

  • Start (Trigger): Starts the metronome. If (Start Delay) is > 0.0, this trigger will wait until that time is elapsed.

  • Stop (Trigger): Stops the metronome immediately.

  • Reset (Trigger): Resets the metronome counting.

  • Mute (bool): Mutes the audio output.

  • No Debug (bool): Stops debug messages on the output log.

  • Start Delay (Time): Time delay before the pulse starts.

  • Loop Pre-Entry (Time): Time offset to trigger (On Pre-Entry) before the end of a loop. This feature is useful when starting music segments that contain audio before bar 1.

  • BPM (float): Beats per minute.

  • Beats Per Bar (int32): Number of beats per bar.

  • Loop Bars (int32): Number of bars per loop.

  • Pulse Audio Volume Multiplier (float): Pulse Audio Volume Multiplier.

  • Pulse High Frequency (float): Audio frequency pulse for the first beat of each bar.

  • Pulse Low Frequency (float): Audio frequency pulse for the remaining beats of each bar.

  • Name (string): Metronome's name for debugging purposes.

Sections:

Click to open the images

THE END!

〰️

THE END! 〰️