How It Works
Audio moves through the plugin in five stages. Each stage lives in its own part of the source, listed further down.
An audio IO captures or plays audio: microphone, loopback, engine submix, a file player or a generated signal.
ST_AudioProcessing / IOEvery active IO has its own FFT thread: windowing, FFT, frequency bands, amplitude, pitch and beats.
ST_AudioProcessing / FFTResults return to the game thread and are sent to every registered sampler, as interface events or delegates.
ST_AudioProcessing / MainNiagara, materials, compute shaders and the post-process chain read the same results. On the GPU they are indexed by the Audio IO Buffer.
ST_AudioVisualisationLED actors send a material or render target over DMX, OSC or a socket. MIDI is received and sent through the MIDI manager.
ST_AudioControl, ST_AudioVisControl, ST_AudioControlMIDIPlugin Folders
| Folder | Contents |
|---|---|
ST_VJMaster.uplugin | Plugin descriptor: version, modules, supported platforms and engine plugin dependencies. |
Source/ | The C++ modules, and the third-party MiniAudio and KissFFT source under Thirdparty. |
Shaders/ | Compute, material, Niagara and post-process shaders, mapped to /ST_AudioVisualisation. |
Content/ | Example maps, Blueprints, materials, Niagara systems and data assets. |
Config/ | BaseST_VJMaster.ini: default project settings and class redirects. |
ExampleAudio/ | Audio files used by the playback examples (Creative Commons 0). |
Resources/ | Plugin icon. |
TOU/ | Terms of use. |
Modules
| Module | Platforms | Role |
|---|---|---|
ST_AudioProcessing | Win64, Mac, Linux, Android, iOS | Capture, playback and analysis. Every audio IO, the FFT thread and the Blueprint function library. No dependency on the other modules. |
ST_AudioVisualisation | Win64, Mac, Linux, Android, iOS | Everything that draws from the analysis: Niagara data interfaces, material expressions, compute shaders and the post-process chain. |
ST_AudioControl | Win64, Mac, Linux | The OSC, DMX and socket managers and the shared LED pipeline. |
ST_AudioVisControl | Win64, Mac, Linux | The LED output actors: a material or render target sent over DMX, OSC or a socket. |
ST_AudioControlMIDI | Win64, Mac, Linux | Everything MIDI: the manager, the control interface and the MIDI-driven material visualiser. |
ST_MIDIDeviceLinux | Linux | Stand-in for the engine MIDI Device plugin on Linux, built on ALSA raw MIDI. |
ST_VJMasterEditor | Editor | Toolbar menu, details panel and settings customisations, and the licence check. |
Source Files
Headers are under Public and implementations under Private, in the same sub-folder. Select a module to list its files.
ST_AudioProcessingSource/ST_AudioProcessing25 files
Capture, playback and analysis. Every audio IO, the FFT thread and the Blueprint function library. No dependency on the other modules.
FFT
| File | Type | Purpose |
|---|---|---|
ST_AudioResultsChannel | .h | The newest finished analysis of one audio IO. |
ST_FFTThread | .h / .cpp | Background worker that turns each captured audio period into FFT magnitudes, frequency bands, amplitude, pitch and beat results. |
IO/Base
| File | Type | Purpose |
|---|---|---|
ST_AudioIOBase | .h / .cpp | Base class of every audio IO: activation, sampler registration, device selection and delivery of the analysis results. |
ST_AudioIOCaptureBase | .h / .cpp | Abstract base of the MiniAudio-backed capture sources. |
ST_AudioIOPlaybackBase | .h / .cpp | Abstract base of the MiniAudio-backed playback sources. |
IO/Capture
| File | Type | Purpose |
|---|---|---|
ST_AudioCaptureEngineSubmix | .h / .cpp | Captures Unreal's own audio output by listening to the main submix, so it needs no OS loopback support. |
ST_AudioCaptureLoopback | .h / .cpp | Captures the system output mix through MiniAudio's WASAPI loopback backend. |
ST_AudioCaptureMicrophone | .h / .cpp | Captures from a microphone or other input device through MiniAudio. |
IO/Playback
| File | Type | Purpose |
|---|---|---|
ST_AudioPlaybackEnginePlayer | .h / .cpp | Plays the configured audio file on the playback device through a miniaudio engine, and analyses the played audio. |
ST_AudioPlaybackNoise | .h / .cpp | Plays miniaudio-generated noise on the playback device and analyses it. |
ST_AudioPlaybackPlayer | .h / .cpp | Plays the configured audio file on the playback device through a miniaudio decoder, optionally looping, and analyses the played audio. |
ST_AudioPlaybackWaveform | .h / .cpp | Plays a miniaudio-generated waveform on the playback device and analyses it. |
Mac
| File | Type | Purpose |
|---|---|---|
ST_MacSystemAudioTap | .h / .mm | Experimental macOS system audio capture through Core Audio process taps. |
Main
| File | Type | Purpose |
|---|---|---|
ST_AudioIOInstanceManager | .h / .cpp | Engine subsystem that owns the additional capture instances (up to 8 extra microphones or loopbacks). |
ST_AudioProcessingFunctionLibrary | .h / .cpp | The Blueprint, material and Niagara facing entry point to the audio module: finds audio IOs, converts between IO types and ids, and lists devices. |
ST_AudioProcessingInterface | .h | Interface a sampler implements to receive frequency band, amplitude, pitch and beat events. |
ST_AudioProcessingSettings | .h | Project settings of the audio module: the IO types, the configuration of each IO and its FFT config asset. |
ST_MiniAudioEnumerationContext | .h | MiniAudio context used to list the playback and capture devices. |
Sound
| File | Type | Purpose |
|---|---|---|
ST_AudioSoundWaveProcedural | .h / .cpp | Procedural sound wave that plays back the audio an IO captures or plays, so the same signal can be heard in-engine. |
ThirdParty
| File | Type | Purpose |
|---|---|---|
ST_KissFFT | .cpp | Compiles the bundled KissFFT source on platforms where the engine does not ship the library. |
ST_KissFFTR | .cpp | Compiles the bundled KissFFT real-FFT source on the same platforms. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_AudioProcessing | .h / .cpp | Module entry point; also holds the MiniAudio implementation. |
ST_AudioProcessing_IOS_UPL | .xml | Adds the microphone permission text to iOS builds. |
ST_AudioProcessing_UPL | .xml | Packaging additions for Android builds. |
ST_AudioProcessing.build | .cs | Build rules of the module. |
ST_AudioVisualisationSource/ST_AudioVisualisation51 files
Everything that draws from the analysis: Niagara data interfaces, material expressions, compute shaders and the post-process chain.
Compute/GraphBuilder
| File | Type | Purpose |
|---|---|---|
ST_VJ_BoidsGB | .h / .cpp | Adds the reactive boids passes, and the audio upload they read, to a render graph. |
Compute/Mesh
| File | Type | Purpose |
|---|---|---|
ST_VJ_BoidsInstanceWriter | .h / .cpp | Draws the reactive boids as meshes: writes the boids buffer into GPU Scene instances (CS_BoidsWriteInstances.usf). |
ST_VJ_GPUInstancedMeshComponent | .h / .cpp | Static mesh component whose instance transforms are written straight into GPU Scene by a compute shader. |
ST_VJ_GPUSceneSupport | .h | Engine-version checks for GPU Scene and GPU-only instances. |
ST_VJ_SpectrumFieldSimulation | .h / .cpp | GPU side of the spectrum field: its state buffer, the step pass and the pass that writes GPU Scene instances. |
Compute/Shaders
| File | Type | Purpose |
|---|---|---|
ST_VJ_BoidsRPCS | .h / .cpp | Declarations and dispatch of the boids compute shaders. |
Compute/Utils
| File | Type | Purpose |
|---|---|---|
ST_VJ_ComputeFunctionLibrary | .h / .cpp | Structured-buffer helpers for the plugin's RDG compute passes; render thread only, nothing here is Blueprint-facing. |
ST_VJ_ManagedRPCSInterface | .h | Interface a compute visualiser implements to be dispatched by the manager. |
ST_VJ_PingPongBuffer | .h | A pair of pooled GPU buffers a compute pass reads one of and writes the other, swapped after every dispatch. |
ST_VJ_RPCSManager | .h / .cpp | Drives every compute visualiser in a world: one registers here and is dispatched each tick. |
Compute/Vis
| File | Type | Purpose |
|---|---|---|
ST_C_VisAudioReactiveBoids | .h / .cpp | A flock of boids simulated on the GPU, steered by the frequency bands, amplitudes, pitches and beats of an audio IO. |
ST_C_VisSpectrumField | .h / .cpp | A field of real meshes that is a live 3D spectrogram, batch rendered straight from a compute shader. |
Data
| File | Type | Purpose |
|---|---|---|
ST_AudioIOLib | .h | C++ side of the Audio IO Buffer layout and the packed audio arrays sent to the GPU. |
ST_AudioReactiveBoidsLib | .h | Settings structs of the reactive boids. |
ST_SpectrumFieldLib | .h | Settings struct and layouts of the spectrum field. |
Main
| File | Type | Purpose |
|---|---|---|
ST_AudioVisFunctionLibrary | .h / .cpp | Builds the packed audio buffers a visualiser hands to the GPU, and pushes them into Niagara. |
ST_AudioVisSettings | .h | Project settings of the visualisers: material IOs, display colours and the settings of each example. |
Main/Base
| File | Type | Purpose |
|---|---|---|
ST_VisBase | .h / .cpp | Base class for visualisation actors, implementing the audio processing interface. |
ST_VisComputeBase | .h / .cpp | Base class for visualisation actors whose simulation runs as a compute shader. |
ST_VisMaterialBase | .h / .cpp | Base class for visualisation actors that drive a dynamic material instance from the chosen audio IO. |
ST_VisNiagaraBase | .h / .cpp | Base class for visualisation actors that drive a Niagara system from the chosen audio IO. |
Material/Expressions
| File | Type | Purpose |
|---|---|---|
ST_AudioAmplitudeExpression | .h / .cpp | Material node that exposes the running amplitude history of an audio IO to a material graph. |
ST_AudioBeatDetectionExpression | .h / .cpp | Material node that exposes the beat-detection history of an audio IO, including its BPM values, to a material graph. |
ST_AudioExpressionCommon | .h / .cpp | Code shared by the audio material expressions, including the Data Source option. |
ST_AudioFrequencyBandExpression | .h / .cpp | Material node that exposes the FFT frequency-band spectrum and its history for an audio IO to a material graph. |
ST_AudioPitchExpression | .h / .cpp | Material node that exposes the detected pitch history of an audio IO to a material graph. |
Material/SUB
| File | Type | Purpose |
|---|---|---|
ST_AudioScene | .h / .cpp | Engine subsystem that samples the audio IOs for materials and feeds the scene view extension. |
ST_AudioSceneUB | .h / .cpp | Parameters of the audio scene uniform buffer read by the material shaders. |
ST_AudioSceneViewExtension | .h / .cpp | Scene view extension that uploads the audio data to the ST_Audio scene uniform buffer and the audio data texture. |
Material/Vis
| File | Type | Purpose |
|---|---|---|
ST_M_VisMPC | .h / .cpp | Visualiser that drives the Material Parameter Collection set in UST_AudioVisSettings (VisMPCData) from audio. |
Niagara/DataInterfaces
| File | Type | Purpose |
|---|---|---|
NiagaraDataInterfaceSTAudio | .h / .cpp | Niagara data interface exposing the analysed audio buffers (frequency bands, amplitudes, pitches, beats) of every audio IO to particle scripts. |
NiagaraDataInterfaceSTReactiveBoids | .h / .cpp | Niagara data interface exposing the boid state produced by the reactive boids compute pass to GPU particle scripts. |
NiagaraDataInterfaceSTWaveformDisplay | .h / .cpp | Niagara data interface supplying particle colours (solid, random, HSV, mapped) from the waveform display colour settings. |
Niagara/Vis
| File | Type | Purpose |
|---|---|---|
ST_N_VisAmplitude | .h / .cpp | Drives a Niagara system with the amplitude history of the first registered audio IO. |
ST_N_VisBeatDetection | .h / .cpp | Drives a Niagara system with beat detection from the first registered audio IO. |
ST_N_VisFrequency | .h / .cpp | Drives a Niagara system with the frequency bands of the first registered audio IO, passed as an array. |
ST_N_VisFrequencyBuffer | .h / .cpp | Drives a Niagara system through UNiagaraDataInterfaceSTAudio instead of a float array. |
ST_N_VisPitch | .h / .cpp | Drives a Niagara system with the pitch history of the first registered audio IO. |
ST_N_VisWebcam | .h / .cpp | Feeds the live webcam image and the audio level into a Niagara system's user parameters. |
PostFX
| File | Type | Purpose |
|---|---|---|
ST_PostFXParameters | .h | Settings of the three post-process passes, the audio drives and the raymarch playlist. |
ST_PostFXScene | .h / .cpp | Engine subsystem that owns the ShaderTech post-process chain and feeds it every frame. |
ST_PostFXSceneViewExtension | .h / .cpp | Scene view extension that draws the raymarch, video layer and feedback passes after tonemapping. |
ST_RaymarchPilot | .h / .cpp | Flies the raymarch pass's camera through the inside of the fractal scenes, close to the geometry. |
ST_RaymarchSceneAsset | .h | Data asset holding one look of the raymarch pass. |
ST_WebcamSource | .h / .cpp | Opens a webcam through the media framework and exposes it as a texture. |
PostFX/Vis
| File | Type | Purpose |
|---|---|---|
ST_PP_VisFeedback | .h / .cpp | Drives the feedback pass: each frame is drawn over a zoomed, rotated, fading copy of the last one. |
ST_PP_VisPostFXBase | .h / .cpp | Base of the post-process visualisers: each subclass drives one pass of the chain in UST_PostFXScene. |
ST_PP_VisRaymarch | .h / .cpp | Drives the raymarch pass: a tunnel, Mandelbox or Menger sponge traced over the whole screen. |
ST_PP_VisVideoLayer | .h / .cpp | Drives the video layer: a webcam or texture composited over the scene. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_AudioVisualisation | .h / .cpp | Module that maps the plugin's shader directory to /ST_AudioVisualisation on startup. |
ST_AudioVisualisation.Build | .cs | Build rules of the module. |
ST_AudioControlSource/ST_AudioControl11 files
The OSC, DMX and socket managers and the shared LED pipeline.
DMX
| File | Type | Purpose |
|---|---|---|
ST_DMXControlInterface | .h | Interface for objects managed by the DMX manager. |
ST_DMXManager | .h / .cpp | Sends LED matrix colours and fixed attribute values to DMX fixture patches. |
Main
| File | Type | Purpose |
|---|---|---|
ST_AudioControlFunctionLibrary | .h / .cpp | Shared LED pipeline used by every output transport (DMX, OSC, UDP). |
ST_AudioControlSettings | .h | Project settings of the control module: DMX, OSC, socket, MIDI and LED configuration. |
Main/Base
| File | Type | Purpose |
|---|---|---|
ST_AudioControlManagerBase | .h / .cpp | Game-instance subsystem base for the OSC, DMX and socket managers; tracks the items and controllers registered with one transport. |
OSC
| File | Type | Purpose |
|---|---|---|
ST_OSCManager | .h / .cpp | Sends LED colour data as OSC blobs through a UOSCClient built from the OSConfig settings. |
ST_OSControlInterface | .h | Interface for objects managed by the OSC manager. |
Socket
| File | Type | Purpose |
|---|---|---|
ST_SocketControlInterface | .h | Interface for objects managed by the socket manager. |
ST_SocketManager | .h / .cpp | Sends LED colour data as UDP datagrams to the IP and port in SocketConfig.UDPConfig. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_AudioControl | .h / .cpp | Module entry point for ST_AudioControl, the OSC, DMX and UDP output transports; it holds no startup state. |
ST_AudioControl.Build | .cs | Build rules of the module. |
ST_AudioVisControlSource/ST_AudioVisControl9 files
The LED output actors: a material or render target sent over DMX, OSC or a socket.
Control
| File | Type | Purpose |
|---|---|---|
ST_DMXMatLED | .h / .cpp | MatLED output over DMX (Art-Net). |
ST_OSCMatLED | .h / .cpp | MatLED output over OSC, sending the LED colours as one blob to the address in the project's OSC settings. |
ST_SocketMatLED | .h / .cpp | MatLED output over a UDP socket, sending the LED colours as one packet per tick. |
ST_SocketRTLED | .h / .cpp | Scene-capture LED output over a UDP socket. |
Control/Base
| File | Type | Purpose |
|---|---|---|
ST_AudioControlBase | .h / .cpp | Abstract base for actors that send the scene to an external output, with editor-selection hooks. |
ST_AudioControlMatLEDBase | .h / .cpp | Abstract LED output that draws a material into a render target and sends it as LED colours. |
ST_AudioControlRTLEDBase | .h / .cpp | Abstract LED output that captures the scene with a scene capture component. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_AudioVisControl | .h / .cpp | Module for the LED and lighting output actors (DMX, OSC and UDP socket). |
ST_AudioVisControl.Build | .cs | Build rules of the module. |
ST_AudioControlMIDISource/ST_AudioControlMIDI6 files
Everything MIDI: the manager, the control interface and the MIDI-driven material visualiser.
Main
| File | Type | Purpose |
|---|---|---|
ST_AudioControlMIDIFunctionLibrary | .h / .cpp | Blueprint helpers for listing and looking up MIDI devices by nice name. |
Material/Vis
| File | Type | Purpose |
|---|---|---|
ST_M_VisMIDIControlled | .h / .cpp | Material visualiser whose post-process Alpha follows the value of incoming MIDI control changes. |
MIDI
| File | Type | Purpose |
|---|---|---|
ST_MIDIControlInterface | .h | Interface for objects that receive MIDI events from the MIDI manager. |
ST_MIDIManager | .h / .cpp | Game-instance subsystem that opens MIDI devices by name and forwards their events to every registered managed item. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_AudioControlMIDI | .h / .cpp | Module entry point for ST_AudioControlMIDI; startup and shutdown do nothing. |
ST_AudioControlMIDI.Build | .cs | Build rules of the module. |
ST_MIDIDeviceLinuxSource/ST_MIDIDeviceLinux8 files
Stand-in for the engine MIDI Device plugin on Linux, built on ALSA raw MIDI.
Module root
| File | Type | Purpose |
|---|---|---|
MIDIDeviceController | .h | Controller type matching the engine MIDI Device plugin. |
MIDIDeviceControllerBase | .h | Common interface of the Linux stand-in controllers; each one wraps a single ALSA raw MIDI port. |
MIDIDeviceInputController | .h | Receives MIDI events from one device. |
MIDIDeviceManager | .h | Finds MIDI devices and creates controllers, with the same API as the engine plugin. |
MIDIDeviceOutputController | .h | Sends MIDI events to one device; opens the ALSA port for output only. |
ST_AlsaMidi | .h / .cpp | ALSA raw MIDI port wrapper, loaded at runtime. |
ST_MIDIDeviceLinux | .cpp | Module entry point. |
ST_MIDIDeviceLinux.Build | .cs | Build rules of the module. |
ST_VJMasterEditorSource/ST_VJMasterEditor8 files
Toolbar menu, details panel and settings customisations, and the licence check.
Auth
| File | Type | Purpose |
|---|---|---|
ST_VJMasterWarden | .h / .cpp | Licence check through Epic’s Plugin Warden. |
Customisation
| File | Type | Purpose |
|---|---|---|
ST_VJMasterDeveloperSettingsCustomisation | .h / .cpp | Editor behaviour of the ST developer settings (audio processing, visualisation, control). |
ST_VJMasterEdFunctionLibrary | .h / .cpp | Editor-only actions behind the VJMaster toolbar menu that log the available audio and MIDI devices. |
ST_VJMasterFFTConfigCustomisation | .h / .cpp | Shows a restart notification when a SessionRestartRequired property of a UFFTConfig changes during a play-in-editor session. |
ST_VJMasterGlobalDetailsCustomisation | .h / .cpp | Adds and orders the ShaderTech category in actor details panels. |
ST_VJMasterToolbarCustomisation | .h / .cpp | Adds a VJMaster drop-down to the level editor toolbar, after the Play button. |
Module root
| File | Type | Purpose |
|---|---|---|
ST_VJMasterEditor | .h / .cpp | Editor module that registers the ShaderTech details section, the licence check and the editor customisations. |
ST_VJMasterEditor.Build | .cs | Build rules of the module. |
Shaders
ShadersShaders/21 files
Private/Compute
| File | Type | Purpose |
|---|---|---|
CS_BoidsWriteInstances | .usf | Writes the boids buffer into GPU Scene instance transforms. |
CS_ReactiveBoids | .usf | The reactive boids simulation: flocking steered by the audio buffers. |
CS_SpectrumField | .usf | Steps the spectrum field, a scrolling spectrogram grid, from the audio buffers. |
CS_SpectrumFieldWriteInstances | .usf | Writes the spectrum field into GPU Scene instance transforms for each layout. |
ReactiveBoidsStruct | .ush | The boid struct shared by the boids shaders. |
Private/Material
| File | Type | Purpose |
|---|---|---|
MaterialSTAudio | .ush | Audio accessors for materials, reading the scene uniform buffer. |
MaterialSTAudioPatched | .ush | Variant of the material accessors for an engine patched to expose the scene buffer to post-process materials. |
MaterialSTAudioTex | .ush | Audio accessors for materials, reading the audio data texture. |
ST_AudioPostProcess | .usf | Example post-process pass that reads the audio data texture: brightness follows the amplitude and a spectrum is drawn along the bottom. |
Private/Niagara
| File | Type | Purpose |
|---|---|---|
NiagaraDataInterfaceSTAudio | .ush | HLSL of the audio buffer data interface. |
NiagaraDataInterfaceSTReactiveBoids | .ush | HLSL of the reactive boids data interface. |
NiagaraDataInterfaceSTWaveformDisplay | .ush | HLSL of the waveform colour data interface. |
Private/PostFX
| File | Type | Purpose |
|---|---|---|
ST_FeedbackPostProcess | .usf | Frame-buffer feedback pass, drawn by FST_PostFXSceneViewExtension after tonemapping. |
ST_PostFXCommon | .ush | Helpers shared by the post-process passes. |
ST_RaymarchPostProcess | .usf | Raymarched signed-distance pass, drawn by FST_PostFXSceneViewExtension after tonemapping. |
ST_WebcamPostProcess | .usf | Video layer pass: a webcam or texture composited over the scene, with keying and a kaleidoscope. |
Shared/Libs
| File | Type | Purpose |
|---|---|---|
AudioIOBuffersLib | .ush | Accessor functions for the audio buffers in compute shaders. |
AudioIOLib | .ush | Layout of the Audio IO Buffer and the audio data texture. |
CNoiseLib | .ush | Noise function used by the boids (from the NoiseShader library). |
SDFLib | .ush | Signed-distance functions and fractal distance estimators for the raymarch pass. |
ShaderMathLib | .ush | General maths helpers. |
Content
| Folder | Contents |
|---|---|
AudioProcessing/Blueprints | Blueprint samplers: listening to audio events and writing to a Sound Wave Procedural. |
AudioProcessing/FFTConfig | FFT config data assets: mono and split channels. |
AudioProcessing/Maps | Sampler and Sound Wave Procedural example maps. |
AudioVisualisation/Blueprints | Blueprint visualisers for the Niagara and DMX examples. |
AudioVisualisation/Maps | Example maps, grouped into Niagara, Material, Compute, PostFX and Control. |
AudioVisualisation/Materials | Materials and material instances of the examples. |
AudioVisualisation/VFX | Niagara systems, module scripts and dynamic inputs. |
AudioVisualisation/PostFX/Scenes | Raymarch scene assets: Tunnel, Mandelbox, Menger Sponge and their endless versions. |
AudioVisualisation/Meshes | Mesh used by the compute mesh examples. |
AudioVisualisation/Textures | The audio data texture read by post-process, UI and render target materials. |
Misc/Maps | Environment and lighting sub-levels shared by the example maps. |
