Stopping Events in Studio

One shot is automatically determined by examining the event for loop regions, looping instruments, etc.

If an event is one shot, you can all EventInstance::start() followed by EventInstance::release() and the event will clean itself up when it reaches the end.

You cannot iterate markers in the API, only register a callback using EventInstance::setCallback() that will get called when a marker is hit.