VJ Master 1.3
Real-time audio analysis and visualisation.
 
Loading...
Searching...
No Matches
ST_AudioFrequencyBandExpression.h
1// Copyright (c) 2025 Aaron Trotter (ShaderTech). All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/ObjectMacros.h"
7#include "MaterialExpressionIO.h"
8#include "Materials/MaterialExpression.h"
9#include "Main/ST_AudioProcessingSettings.h"
10#include "ST_AudioFrequencyBandExpression.generated.h"
11
16UCLASS(MinimalAPI, collapsecategories, hidecategories = Object)
17class UST_AudioFrequencyBandExpression : public UMaterialExpression
18{
19 GENERATED_UCLASS_BODY()
20
21public:
22
28 UPROPERTY(EditAnywhere, Category = "ShaderTech", meta = (DisplayName = "IO Type", ShowAsInputPin = "Advanced"))
29 EAudioIOType IOType = EAudioIOType::None;
30
36 UPROPERTY(meta = (RequiredInput = "IOType != EAudioIOType::None", ToolTip = "IO Index. Required when IOType is None."))
37 FExpressionInput IO;
38
44 UPROPERTY(meta = (RequiredInput = "true", ToolTip = "Band Index"))
45 FExpressionInput BandIndex;
46
52 UPROPERTY(meta = (RequiredInput = "true", ToolTip = "History Index"))
53 FExpressionInput HistoryIndex;
54
60 UPROPERTY(meta = (RequiredInput = "true", ToolTip = "Channel Index"))
61 FExpressionInput ChannelIndex;
62
63 //~ Begin UMaterialExpression Interface
64#if WITH_EDITOR
71 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
72
77 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
78#endif
79 //~ End UMaterialExpression Interface
80};
A custom material expression used for audio frequency band processing. This class extends from UMater...
Definition ST_AudioFrequencyBandExpression.h:18
FExpressionInput HistoryIndex
Definition ST_AudioFrequencyBandExpression.h:53
FExpressionInput IO
Definition ST_AudioFrequencyBandExpression.h:37
EAudioIOType IOType
Definition ST_AudioFrequencyBandExpression.h:29
FExpressionInput ChannelIndex
Definition ST_AudioFrequencyBandExpression.h:61
FExpressionInput BandIndex
Definition ST_AudioFrequencyBandExpression.h:45