UMIDIDeviceManager

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MIDIDevice

Header

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

Include

#include "MIDIDeviceManager.h"

Syntax

UCLASS()
class UMIDIDeviceManager : public UBlueprintFunctionLibrary

Functions

Name Description

Public function Static UFunction BlueprintCallable, Category

UMIDIDeviceC...

 

CreateMIDIDeviceController

(
    const int32 DeviceID,
    const int32 MIDIBufferSize
)

Creates an instance of a MIDI device controller that can be used to interact with a connected MIDI device

Public function Static UFunction BlueprintCallable, Category

UMIDIDeviceI...

 

CreateMIDIDeviceInputController

(
    const int32 DeviceID,
    const int32 MIDIBufferSize
)

Creates an instance of a MIDI device controller that can be used to interact with a connected MIDI device

Public function Static UFunction BlueprintCallable, Category

UMIDIDeviceO...

 

CreateMIDIDeviceOutputController

(
    const int32 DeviceID
)

Creates an instance of a MIDI output device controller that can be used to interact with a connected MIDI device

Public function Static UFunction BlueprintCallable, Category

void

 

FindAllMIDIDeviceInfo

(
    TArray< FMIDIDeviceInfo >& OutMIDI...,
    TArray< FMIDIDeviceInfo >& OutMIDI...
)

Enumerates all of the MIDI input and output devices and reports back useful infos such as IDs and names of those devices.

Public function Static UFunction BlueprintCallable, Category

void

 

FindMIDIDevices

(
    TArray< FFoundMIDIDevice >& OutMID...
)

Enumerates all of the connected MIDI devices and reports back with the IDs and names of those devices.

Public function Static UFunction BlueprintCallable, Category

void

 

GetDefaultMIDIInputDeviceID

(
    int32& DeviceID
)

Retrieves the default MIDI input device ID.

Public function Static UFunction BlueprintCallable, Category

void

 

GetDefaultMIDIOutputDeviceID

(
    int32& DeviceID
)

Retrieves the default MIDI output device ID.

Public function Static UFunction BlueprintCallable, Category

void

 

GetMIDIInputDeviceIDByName

(
    const FString DeviceName,
    int32& DeviceID
)

Retrieves the MIDI input device ID by name.

Public function Static UFunction BlueprintCallable, Category

void

 

GetMIDIOutputDeviceIDByName

(
    const FString DeviceName,
    int32& DeviceID
)

Retrieves the MIDI output device ID by name.

Public function Static

void

 

ProcessMIDIEvents()

Called every frame to look for any new MIDI events that were received, and routes those events to subscribers.

Public function Static

void

 

ShutdownMIDIDeviceManager()

Called from FMIDIDeviceModule to shutdown the device manager. Don't call this yourself.

Public function Static

void

 

StartupMIDIDeviceManager()

Called from FMIDIDeviceModule to startup the device manager. Don't call this yourself.

Constants

Name

Description

bIsInitialized

True if everything is initialized OK

MIDIInputDevicesInfo

MIDI input devices info

MIDIOutputDevicesInfo

MIDI output devices info