Geromatic / Midi-Unreal

Midi for Unreal Engine
129 stars 31 forks source link

Make the event time (On Tick and Off Tick) available in Break MidiEvent #27

Open Ecnassianer opened 3 years ago

Ecnassianer commented 3 years ago

The Time variable in OnMidiEvent seems to give the current playback time when the game thread processes the midi event, not the time recorded in the midi file and associated with the event itself. The resulting value is framerate dependent. This makes it difficult to respond to notes in a specific time range, since you don't know how the Time variable corresponds to the note's normally recorded time.

Additionally, the value of Time doesn't scale with Playback Speed, so the Time can be wildly different than the recorded time in the midi file.

If the "current playback time" behavior of Time isn't a bug, please expose the recorded time of the event in Break MidiEvent.