VJ Master 1.0
Real-time audio analysis and visualisation.
Loading...
Searching...
No Matches
UST_AudioControlFunctionLibrary Class Reference

Utility function library for ShaderTech Audio and Control systems. More...

#include <ST_AudioControlFunctionLibrary.h>

Static Public Member Functions

static TArray< FName > GetMIDIDevices (bool bInputs=true, bool bOuputs=true)
 Returns a list of available MIDI device names.
static bool GetFoundMIDIDevice (FName NiceName, FFoundMIDIDevice &Device)
 Retrieves a found MIDI device by its nice name.
static FName GetMIDIDeviceNiceName (FFoundMIDIDevice FoundDevice)
 Returns the user-friendly name of a found MIDI device.
static void ReadRenderTargetPixels (class UTextureRenderTarget2D *RenderTarget, TArray< FColor > &RenderTargetPixels)
 Reads pixel colors from a render target texture.
static bool MapColours (TArray< FColor > PrevisColours, TArray< FColor > &MappedLEDColours, FIntPoint PrevisResolution, FIntPoint LEDResolution)
 Maps preview colors to LED resolution.
static void PrepareLEDColours (TArray< FColor > MappedLEDColours, TArray< uint8 > &LEDColourByteArray, FLEDConfig LEDConfig)
 Prepares LED color data into a byte array format.
static int32 GetIntPointLength (FIntPoint Point)
 Calculates the length (magnitude) of an FIntPoint as an integer.

Detailed Description

Utility function library for ShaderTech Audio and Control systems.

Provides static helper functions for working with MIDI devices, render targets, color mapping for LEDs, and utility math operations. Designed to be BlueprintCallable for use within Unreal Engine's visual scripting system.

Member Function Documentation

◆ GetFoundMIDIDevice()

bool UST_AudioControlFunctionLibrary::GetFoundMIDIDevice ( FName NiceName,
FFoundMIDIDevice & Device )
static

Retrieves a found MIDI device by its nice name.

Parameters
NiceNameName of the MIDI device.
DeviceStruct containing information about the found device.
Returns
True if the device was found, false otherwise.

◆ GetIntPointLength()

int32 UST_AudioControlFunctionLibrary::GetIntPointLength ( FIntPoint Point)
static

Calculates the length (magnitude) of an FIntPoint as an integer.

Parameters
PointThe point to evaluate.
Returns
The calculated length as an integer.

◆ GetMIDIDeviceNiceName()

FName UST_AudioControlFunctionLibrary::GetMIDIDeviceNiceName ( FFoundMIDIDevice FoundDevice)
static

Returns the user-friendly name of a found MIDI device.

Parameters
FoundDeviceStruct describing the found MIDI device.
Returns
The nice name of the MIDI device.

◆ GetMIDIDevices()

TArray< FName > UST_AudioControlFunctionLibrary::GetMIDIDevices ( bool bInputs = true,
bool bOuputs = true )
static

Returns a list of available MIDI device names.

Parameters
bInputsIf true, include input devices.
bOutputsIf true, include output devices.
Returns
Array of device nice names.

◆ MapColours()

bool UST_AudioControlFunctionLibrary::MapColours ( TArray< FColor > PrevisColours,
TArray< FColor > & MappedLEDColours,
FIntPoint PrevisResolution,
FIntPoint LEDResolution )
static

Maps preview colors to LED resolution.

Parameters
PrevisColoursThe input colors from the preview.
MappedLEDColoursOutput array of mapped colors for the LED matrix.
PrevisResolutionThe resolution of the preview.
LEDResolutionThe resolution of the LED display.
Returns
True if mapping was successful.

◆ PrepareLEDColours()

void UST_AudioControlFunctionLibrary::PrepareLEDColours ( TArray< FColor > MappedLEDColours,
TArray< uint8 > & LEDColourByteArray,
FLEDConfig LEDConfig )
static

Prepares LED color data into a byte array format.

Parameters
MappedLEDColoursInput mapped LED colors.
LEDColourByteArrayOutput array of bytes representing LED colors.
LEDConfigLED configuration options.

◆ ReadRenderTargetPixels()

void UST_AudioControlFunctionLibrary::ReadRenderTargetPixels ( class UTextureRenderTarget2D * RenderTarget,
TArray< FColor > & RenderTargetPixels )
static

Reads pixel colors from a render target texture.

Parameters
RenderTargetThe render target to read from.
RenderTargetPixelsOutput array of colors read from the texture.

The documentation for this class was generated from the following files:
  • H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioControl/Public/Main/ST_AudioControlFunctionLibrary.h
  • H:/Games/Unreal/Aaron/FunWithShaders/Plugins/ST_VJMaster/Source/ST_AudioControl/Private/Main/ST_AudioControlFunctionLibrary.cpp