Skip to content

A simple Unreal 5 plugin with demo content that shows how audio DSP can be implemented as Metasound, SourceEffect and SubmixEffect. The intention is to use it as a template to create more complex audio DSP effects.

License

Notifications You must be signed in to change notification settings

alexirae/unreal-audio-dsp-template-UE5

Repository files navigation

Unreal Audio DSP Template (UE5)

[Current main branch version: UE5.4, for other versions check repo branches]

A simple Unreal 5 plugin with demo content that shows how audio DSP processing can be done implementing a Metasound Node, SourceEffect and SubmixEffect.

A volume effect with its amplitude parameter is used to demonstrate how to do basic DSP processing.

The intention of this project is to use it as a start point to create more complex audio DSP effects.

The most relevant parts of the code are located in:

  • Plugins/AudioDSPTemplate/Source/AudioDSPTemplate/Private
  • Plugins/AudioDSPTemplate/Source/AudioDSPTemplate/Public

Build steps

  • Clone repository
  • Right click UEAudioDSPTemplate.uproject > Generate Visual Studio projects files
  • Open UEAudioDSPTemplate.sln
  • Build Solution

Testing the plugin

  • Open UEAudioDSPTemplate.uproject (or start it from Visual Studio)
  • DemoMap will be automatically loaded
  • Metasound:
    • Open VolumeNode_Metasound asset
    • Click Play button to start the Metasound
  • SourceEffect and SubmixEffect:
    • Go to Blueprints > Open Level Blueprint
    • You will see that there is Blueprint logic to trigger a sound at the Sphere location and a Timeline that will drive the Amplitude parameter of the SourceEffect
    • If you want to test the Submix effect simply connect the Update port from Timeline to the Set Settings node of the SubmixEffect
    • Click Play button to start the Level

Note for Metasounds:

  • If you plan to create new Metasound nodes in your own project don't forget to call FMetasoundFrontendRegistryContainer::Get()->RegisterPendingNodes(); in the StartupModule() method, check AudioDSPTemplate.cpp for more details.

Showcase

Metasound:

SourceEffect and SubmixEffect:

About

A simple Unreal 5 plugin with demo content that shows how audio DSP can be implemented as Metasound, SourceEffect and SubmixEffect. The intention is to use it as a template to create more complex audio DSP effects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published