UMIDIDeviceManager::CreateMIDIDeviceInputController

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

Choose your operating system:

Windows

macOS

Linux

References

Module

MIDIDevice

Header

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

Include

#include "MIDIDeviceManager.h"

Source

/Engine/Plugins/Runtime/MIDIDevice/Source/MIDIDevice/Private/MIDIDeviceManager.cpp

Syntax

UFUNCTION(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.