UMIDIDeviceInputController

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MIDIDevice

Header

/Engine/Plugins/Runtime/MIDIDevice/Source/MIDIDevice/Public/MIDIDeviceInputController.h

Include

#include "MIDIDeviceInputController.h"

Syntax

UCLASS(BlueprintType)
class UMIDIDeviceInputController : public UMIDIDeviceControllerBase

Variables

Name Description

Protected variable UProperty Category BlueprintReadOnly

int32

 

DeviceID

The unique ID of this device

Protected variable UProperty Category BlueprintReadOnly

FString

 

DeviceName

The name of this device. This name comes from the MIDI hardware, any might not be unique

Protected variable

int32

 

MIDIBufferSize

Size of the MIDI buffer in bytes

Public variable UProperty Category BlueprintAssignable

FOnMIDIAftertou...

 

OnMIDIAftertouch

Register with this to receive incoming MIDI Aftertouch events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDIChannelA...

 

OnMIDIChannelAftertouch

Register with this to receive incoming MIDI Channel Aftertouch events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDIControlC...

 

OnMIDIControlChange

Register with this to receive incoming MIDI Control Change events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDINoteOff

 

OnMIDINoteOff

Register with this to receive incoming MIDI

Off events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDINoteOn

 

OnMIDINoteOn

Register with this to receive incoming MIDI

On events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDIPitchBen...

 

OnMIDIPitchBend

Register with this to receive incoming MIDI Pitch Bend events from this device

Public variable UProperty Category BlueprintAssignable

FOnMIDIProgramC...

 

OnMIDIProgramChange

Register with this to receive incoming MIDI Program Change events from this device

Public variable

FOnMIDIRawEvent

 

OnMIDIRawEvent

Register with this to receive all of the MIDI events from this device

Protected variable

void *

 

PMMIDIStream

The PortMidi stream used for MIDI input for this device

Destructors

Name Description

Public function Virtual

~UMIDIDeviceInputController()

Destructor that shuts down the device if it's still in use

Overridden from UMIDIDeviceControllerBase

Name Description

Public function Virtual Const

FString

 

GetDeviceName()

The name of this device. This name comes from the MIDI hardware, any might not be unique

Public function Virtual Const

int32

 

GetMIDIBufferSize()

Size of the MIDI buffer in bytes

Public function Virtual

void

 

ProcessIncomingMIDIEvents()

Called every frame by UMIDIDeviceManager to poll for new MIDI events and broadcast them out to subscribers of OnMIDIEvent.

Public function Virtual

void

 

ShutdownDevice()

Called during destruction to clean up this device. Don't call this directly.

Public function Virtual

void

 

StartupDevice

(
    const int32 InitDeviceID,
    const int32 InitMIDIBufferSize,
    bool& bOutWasSuccessful
)

Called from UMIDIDeviceManager after the controller is created to get it ready to use.