A function which handles frames starting with the triggers index and ending the next trigger index or the number of frames in a block.. The function must accept the arguments (int32 StartFrame, int32 EndFrame).