Delegate EventCallback
Callback used to process MIDI event to be played by
Playback.
Assembly: Melanchall.DryWetMidi.dll
public delegate MidiEvent EventCallback(MidiEvent rawEvent, long rawTime, TimeSpan playbackTime)
Parameters
Type |
Name |
Description |
MidiEvent |
rawEvent |
MIDI event to process. |
long |
rawTime |
Absolute time of rawEvent . |
TimeSpan |
playbackTime |
Current time of the playback. |
Returns
Type |
Description |
MidiEvent |
New MIDI event which is rawEvent processed by the callback;
or null if event should be ignored. |
See Also