I am currently attempting to write a plugin which upon recieving midi events will generate midi events for given time periods. I have seen how to generate events upon recieving midi events, but not when no events have been recieved since the plugin on acts on reciept of messages. I can see only two ways of achieving this:
upon recieving the particular events, send the set of events in one go and hope the host will handle the timing correctly.
create a background thread/task within the plugin which generates those events on a timed interval.
Any other ideas?