is it really what we want? my idea was that you want to keep the instants where the trigger channel increase eventually removing events if they correspond to the remaining of the onset spilled over the next time instant.