UMIDIDeviceManager::CreateMIDIDeviceInputController

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

Windows
MacOS
Linux

References

Module

MIDIDevice

Header

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

Include

#include "MIDIDeviceManager.h"

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="MIDI Device Manager")
static UMIDIDeviceInputController * CreateMIDIDeviceInputController
(
    const int32 DeviceID,
    const int32 MIDIBufferSize
)

Remarks

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

Returns

If everything goes okay, a valid MIDI device controller object will be returned. If anything goes wrong, a null reference will be returned.

Parameters

Parameter

Description

DeviceID

The ID of the MIDI device you want to talk to. Call "Find MIDI Devices" to enumerate the available devices.

MIDIBufferSize

How large the buffer size (in number of MIDI events) should be for incoming MIDI data. Larger values can incur higher latency costs for incoming events, but don't set it too low or you'll miss events and your stuff will sound bad.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss