Utility function library for ShaderTech Audio and Control systems.
More...
#include <ST_AudioControlFunctionLibrary.h>
|
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.
|
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.
◆ GetFoundMIDIDevice()
bool UST_AudioControlFunctionLibrary::GetFoundMIDIDevice |
( |
FName | NiceName, |
|
|
FFoundMIDIDevice & | Device ) |
|
static |
Retrieves a found MIDI device by its nice name.
- Parameters
-
NiceName | Name of the MIDI device. |
Device | Struct 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
-
Point | The 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
-
FoundDevice | Struct 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
-
bInputs | If true, include input devices. |
bOutputs | If 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
-
PrevisColours | The input colors from the preview. |
MappedLEDColours | Output array of mapped colors for the LED matrix. |
PrevisResolution | The resolution of the preview. |
LEDResolution | The 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
-
MappedLEDColours | Input mapped LED colors. |
LEDColourByteArray | Output array of bytes representing LED colors. |
LEDConfig | LED configuration options. |
◆ ReadRenderTargetPixels()
void UST_AudioControlFunctionLibrary::ReadRenderTargetPixels |
( |
class UTextureRenderTarget2D * | RenderTarget, |
|
|
TArray< FColor > & | RenderTargetPixels ) |
|
static |
Reads pixel colors from a render target texture.
- Parameters
-
RenderTarget | The render target to read from. |
RenderTargetPixels | Output 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