VJ Master 1.0
Real-time audio analysis and visualisation.
Loading...
Searching...
No Matches
ST_AudioPitchExpression.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_AudioPitchExpression.generated.h"
11
16UCLASS(MinimalAPI, collapsecategories, hidecategories = Object)
17class UST_AudioPitchExpression : 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 = "History Index"))
45 FExpressionInput HistoryIndex;
46
52 UPROPERTY(meta = (RequiredInput = "true", ToolTip = "Channel Index"))
53 FExpressionInput ChannelIndex;
54
55 //~ Begin UMaterialExpression Interface
56#if WITH_EDITOR
63 virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex) override;
64
69 virtual void GetCaption(TArray<FString>& OutCaptions) const override;
70#endif
71 //~ End UMaterialExpression Interface
72};
A custom material expression used for audio pitch processing. This class extends from UMaterialExpres...
Definition ST_AudioPitchExpression.h:18
FExpressionInput HistoryIndex
Definition ST_AudioPitchExpression.h:45
FExpressionInput ChannelIndex
Definition ST_AudioPitchExpression.h:53
EAudioIOType IOType
Definition ST_AudioPitchExpression.h:29
FExpressionInput IO
Definition ST_AudioPitchExpression.h:37