Added support for delayed event triggering

This allows MIDI events to be scheduled at arbitrary times in the future