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

AST_M_VisMIDIControlled class, derived from AST_VisMaterialBase and IST_MIDIControlInterface. This actor is responsible for managing MIDI control data and controlling visual effects based on MIDI input. More...

#include <ST_M_VisMIDIControlled.h>

Public Member Functions

 AST_M_VisMIDIControlled ()
 
- Public Member Functions inherited from AST_VisMaterialBase
 AST_VisMaterialBase ()
 
void OnSetMaterialInterface (UMaterialInterface *MaterialInterface)
 
- Public Member Functions inherited from AST_VisBase
 AST_VisBase ()
 
virtual void Tick (float DeltaTime) override
 
virtual void BeginPlay () override
 
virtual bool RegisterToIO (EAudioIOType NewAudioIOType)
 
bool RegisterToIO (int32 NewAudioIOType)
 
virtual void DeregisterFromIO (EAudioIOType CurrAudioIOType)
 
void DeregisterFromIO (int32 CurrAudioIOType)
 
- Public Member Functions inherited from IST_AudioProcessingInterface
void OnAudioIOStatusChanged (bool bIsActive, FIntPoint IOId)
 Event triggered when the status of an audio I/O device changes.
 
void OnRawMagnitudesReady (const TArray< float > &RawMagnitudes, FIntPoint IOId)
 Event triggered when raw magnitude data is ready for an audio I/O device.
 
void OnFrequencyBandsReady (const TArray< float > &FrequencyBands, int32 NumFrequencyBands, FIntPoint IOId)
 Event triggered when frequency band data is ready for an audio I/O device.
 
void OnAmplitudesReady (const TArray< float > &Amplitudes, FIntPoint IOId)
 Event triggered when amplitude data is ready for an audio I/O device.
 
void OnPitchesReady (const TArray< float > &Pitches, FIntPoint IOId)
 Event triggered when pitch data is ready for an audio I/O device.
 
void OnBeatDetected (const TArray< float > &Beats, FIntPoint IOId)
 Event triggered when a beat is detected in the audio data for an I/O device.
 
- Public Member Functions inherited from IST_MIDIControlInterface
void OnMIDIItemRegistered ()
 Called when a MIDI item is registered with the system.
 
void OnMIDIItemDeregistered ()
 Called when a MIDI item is deregistered from the system.
 
void OnMIDINoteOn (int32 Timestamp, int32 Channel, int32 Note, int32 Velocity)
 Called when a MIDI Note On message is received.
 
void OnMIDINoteOff (int32 Timestamp, int32 Channel, int32 Note, int32 Velocity)
 Called when a MIDI Note Off message is received.
 
void OnMIDIPitchBend (FIntPoint PitchBendRange, int32 Timestamp, int32 Channel, int32 Pitch)
 Called when a MIDI Pitch Bend message is received.
 
void OnMIDIAftertouch (int32 Timestamp, int32 Channel, int32 Note, int32 Amount)
 Called when a MIDI Aftertouch (per-note) message is received.
 
void OnMIDIControlChange (FIntPoint ControlChangeRange, int32 Timestamp, int32 Channel, int32 Type, int32 Value)
 Called when a MIDI Control Change (CC) message is received.
 
void OnMIDIProgramChange (int32 Timestamp, int32 Channel, int32 ControlID, int32 Velocity)
 Called when a MIDI Program Change message is received.
 
void OnMIDIChannelAftertouch (int32 Timestamp, int32 Channel, int32 Amount)
 Called when a MIDI Channel Aftertouch message is received.
 

Protected Member Functions

virtual void HandleBeginPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
virtual bool SetConstantParameters () override
 
virtual bool SetDynamicParameters () override
 
void OnMIDIControlChange_Implementation (FIntPoint ControlChangeRange, int32 Timestamp, int32 Channel, int32 Type, int32 Value) override
 
- Protected Member Functions inherited from AST_VisBase
virtual void PostInitializeComponents () override
 

Protected Attributes

class UST_MIDIManagerCachedMIDIManager = nullptr
 
class UPostProcessComponent * PostProcess = nullptr
 
- Protected Attributes inherited from AST_VisMaterialBase
UMaterialInstanceDynamic * MatiD = nullptr
 
- Protected Attributes inherited from AST_VisBase
USceneComponent * Root = nullptr
 
bool bCustomBeginPlay = false
 
bool bSamplerActivates = false
 
bool bZeroSamplersDeactivates = false
 
int32 Default_AudioIOs = 0
 
int32 Registered_AudioIOs = 0
 

Detailed Description

AST_M_VisMIDIControlled class, derived from AST_VisMaterialBase and IST_MIDIControlInterface. This actor is responsible for managing MIDI control data and controlling visual effects based on MIDI input.

Constructor & Destructor Documentation

◆ AST_M_VisMIDIControlled()

AST_M_VisMIDIControlled::AST_M_VisMIDIControlled ( )

Default constructor for the AST_M_VisMIDIControlled class. Initializes default values for this actor's properties.

Member Function Documentation

◆ EndPlay()

void AST_M_VisMIDIControlled::EndPlay ( const EEndPlayReason::Type EndPlayReason)
overrideprotectedvirtual

Handles the end of the actor's life cycle when it is destroyed or the world ends.

Parameters
EndPlayReasonThe reason the actor is ending play.

Reimplemented from AST_VisBase.

◆ HandleBeginPlay()

void AST_M_VisMIDIControlled::HandleBeginPlay ( )
overrideprotectedvirtual

Handles the start of the actor's life cycle when it begins play. This method is called when the actor begins play in the game world.

Reimplemented from AST_VisBase.

◆ OnMIDIControlChange_Implementation()

void AST_M_VisMIDIControlled::OnMIDIControlChange_Implementation ( FIntPoint ControlChangeRange,
int32 Timestamp,
int32 Channel,
int32 Type,
int32 Value )
overrideprotected

Implementation of MIDI control change event handling. This method is called when a MIDI control change event occurs.

Parameters
ControlChangeRangeThe range of control change values.
TimestampThe timestamp of the MIDI event.
ChannelThe MIDI channel number for the event.
TypeThe type of MIDI event (e.g., control change).
ValueThe value associated with the MIDI control change.

◆ SetConstantParameters()

bool AST_M_VisMIDIControlled::SetConstantParameters ( )
overrideprotectedvirtual

Sets constant parameters for the visual material. This method is responsible for configuring any constant material parameters for the visual effect.

Returns
True if the parameters were successfully set, false otherwise.

Reimplemented from AST_VisBase.

◆ SetDynamicParameters()

bool AST_M_VisMIDIControlled::SetDynamicParameters ( )
overrideprotectedvirtual

Sets dynamic parameters for the visual material. This method is responsible for configuring dynamic material parameters that may change during runtime.

Returns
True if the parameters were successfully set, false otherwise.

Reimplemented from AST_VisBase.

Member Data Documentation

◆ CachedMIDIManager

class UST_MIDIManager* AST_M_VisMIDIControlled::CachedMIDIManager = nullptr
protected

The cached MIDI manager used for managing MIDI input data.

◆ PostProcess

class UPostProcessComponent* AST_M_VisMIDIControlled::PostProcess = nullptr
protected

The post-process component associated with this visual actor.


The documentation for this class was generated from the following files: