Geromatic / Midi-Unreal

Midi for Unreal Engine
129 stars 31 forks source link

Sys ex in and out and MIDI clock in #12

Closed jimsimonz closed 7 years ago

jimsimonz commented 7 years ago

Added SysEx support in and out, and MIDIClock in support.

OnReceiveSysExEvent passes the event data (without the F0 and F7 header and footer) SendRaw sends raw MIDI to the MIDI out so you have to add F0 and F7 when building the packet in the blueprint.

OnReceiveClockEvent added. Passes the song position in the data field, otherwise data field unused. Read the MIDI spec on MIDI clock for details on how to handle. Tested in Windows.

Also changed the input so that it comes in on the game thread. Found that otherwise random hangs occur due to direct calls into blueprints not on the game thread.

All implemented in the MIDIInterfaceComponent (you need an instance of this to handle the events)