Spotlight Sale: Save 50% on select Props now through October 7.

Metasounds Audio Math Utilities

Chris Wratt Audio - Code Plugins - May 13, 2024
3
5 out of 5 stars(3 ratings)
  • 100%
  • 0%
  • 0%
  • 0%
  • 0%

Specialized math operators and audio effect building blocks for writing realtime DSP effects in Metasounds

  • Supported Platforms
  • Supported Engine Versions
    5.4
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

A collection of DSP math utilities for Metasounds.

These expand the possibilites for sample rate DSP in Metasounds without having to switch to C++ when writing custom audio signal processing in Unreal Engine.


As of Metasounds in Unreal 5.4, control data and math operations inside of Metasounds are designed to be carried out a a control rate (which defaults to 100Hz). This library allows for math operations at the sample level (48,000 times per second) thus allowing for higher quality physical modelling and DSP operations in real time. Note that this will require higher CPU loads so only use sample rate mathmatical operations when needed.


Much of the inspiration for the library came from Gen in Max/MSP and from Pure Data which both allow sample rate DSP programming in a node-based environment.


Included Metasound objects:

  • Wrap (Audio) : wraps audio signals that leave a -1 to 1 range back into that range
  • Pow (Audio) : audio rate exponential function with audio rate exponent field
  • Sqrt (Audio) : audio rate sqrt function
  • Gate (Audio) : audio rate gate function
  • Sine / Cos : Phasor driven audio rate sine and cosine functions for syncing signals
  • VCF = A 'Voltage Controlled Filter' SVF algorithm that can modulate frequency cutoff and Q up to 20000 times per second, thus allowing for experiments in timbre not accessible in usual control rate modulated filter algorithms. This uses a TAN approximation under the hood for setting the coefs at sample rate, but is still obviously much heavier CPU-wise than the usual SVF, use at your own risk!
  • Compare : an audio rate comparator object for doing ==, != etc at audio rate (unlike the built in Compare that is control rate only)
  • Timer : Outputs the time between triggers
  • Click : outputs a unipolar 1 sample click 'unit impulse'
  • AudioDivide : audio rate / . Divide by zero is always zero.


Additional Credits

Plugin cover art by Halberball: https://www.instagram.com/halberball/

Technical Details

Features:

  • Wrap (Audio) : wraps audio signals that leave a -1 to 1 range back into that range
  • Pow (Audio) : audio rate exponential function with audio rate exponent field
  • Sqrt (Audio) : audio rate sqrt function
  • Gate (Audio) : audio rate gate function
  • Sine / Cos : Phasor driven audio rate sine and cosine functions for syncing signals
  • VCF = A 'Voltage Controlled Filter' SVF algorithm that can modulate frequency cutoff and Q up to 20000 times per second, thus allowing for experiments in timbre not accessible in usual control rate modulated filter algorithms.
  • Compare : an audio rate comparator object for doing ==, != etc at audio rate (unlike the built in Compare that is control rate only)
  • Timer : Outputs the time between triggers
  • Click : outputs a unipolar 1 sample click 'unit impulse'
  • AudioDivide : audio rate / operator . Divide by zero is always zero.
  • InterpTo : Deprecated


Code Modules:

  •  METASOUNDSAUDIOMATHUTILS_API : Runtime module

Number of Blueprints: 0

Number of C++ Classes: 16

Supported Development Platforms: Win64

Supported Target Build Platforms: Win64

Documentation/ Support: https://github.com/Chris-TopherW/MetasoundsAudioMathUtils/blob/main/README.md