Delegate PlaybackEventCallback
Callback used to modify MIDI event before playing.
Assembly: Melanchall.DryWetMidi.dll
public delegate MidiEvent PlaybackEventCallback(MidiEvent midiEvent, TimeSpan time, long rawTime)
Parameters
Type |
Name |
Description |
MidiEvent |
midiEvent |
MIDI event to modify. |
TimeSpan |
time |
Absolute metric time of the event. |
long |
rawTime |
Absolute time of the event in MIDI ticks. |
Returns
Type |
Description |
MidiEvent |
MIDI event that should be played. It can be modified original event or a new one. |