5#include "CoreMinimal.h"
6#include "Kismet/BlueprintFunctionLibrary.h"
7#include "MIDIDeviceManager.h"
8#include "MIDIDeviceController.h"
9#include "MIDIDeviceInputController.h"
10#include "MIDIDeviceOutputController.h"
11#include "MIDIDeviceControllerBase.h"
12#include "Main/ST_AudioControlSettings.h"
13#include "ST_AudioControlFunctionLibrary.generated.h"
35 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|MIDI")
36 static TArray<FName>
GetMIDIDevices(
bool bInputs =
true,
bool bOuputs =
true);
44 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|MIDI")
52 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|MIDI")
60 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|Vis")
61 static void ReadRenderTargetPixels(
class UTextureRenderTarget2D* RenderTarget, TArray<FColor>& RenderTargetPixels);
71 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|Vis")
72 static bool MapColours(TArray<FColor> PrevisColours, TArray<FColor>& MappedLEDColours, FIntPoint PrevisResolution, FIntPoint LEDResolution);
80 UFUNCTION(BlueprintCallable, Category =
"ShaderTech|AudioControl|Vis")
88 UFUNCTION(BlueprintPure, Category =
"ShaderTech|AudioControl|Utils")
Utility function library for ShaderTech Audio and Control systems.
Definition ST_AudioControlFunctionLibrary.h:24
static void ReadRenderTargetPixels(class UTextureRenderTarget2D *RenderTarget, TArray< FColor > &RenderTargetPixels)
Reads pixel colors from a render target texture.
Definition ST_AudioControlFunctionLibrary.cpp:61
static int32 GetIntPointLength(FIntPoint Point)
Calculates the length (magnitude) of an FIntPoint as an integer.
Definition ST_AudioControlFunctionLibrary.cpp:197
static TArray< FName > GetMIDIDevices(bool bInputs=true, bool bOuputs=true)
Returns a list of available MIDI device names.
Definition ST_AudioControlFunctionLibrary.cpp:9
static void PrepareLEDColours(TArray< FColor > MappedLEDColours, TArray< uint8 > &LEDColourByteArray, FLEDConfig LEDConfig)
Prepares LED color data into a byte array format.
Definition ST_AudioControlFunctionLibrary.cpp:122
static bool MapColours(TArray< FColor > PrevisColours, TArray< FColor > &MappedLEDColours, FIntPoint PrevisResolution, FIntPoint LEDResolution)
Maps preview colors to LED resolution.
Definition ST_AudioControlFunctionLibrary.cpp:76
static bool GetFoundMIDIDevice(FName NiceName, FFoundMIDIDevice &Device)
Retrieves a found MIDI device by its nice name.
Definition ST_AudioControlFunctionLibrary.cpp:43
static FName GetMIDIDeviceNiceName(FFoundMIDIDevice FoundDevice)
Returns the user-friendly name of a found MIDI device.
Definition ST_AudioControlFunctionLibrary.cpp:27
LED configuration for color formats and alpha mapping.
Definition ST_AudioControlSettings.h:139