*** empty log message ***

This commit is contained in:
Mike Goslin 2001-08-23 00:05:06 +00:00
parent 3103d5d4e7
commit c853e160e6

View File

@ -213,16 +213,18 @@ class Track(Interval):
currentInterval = ival currentInterval = ival
elif (t > tEnd): elif (t > tEnd):
# Crossing over interval end # Crossing over interval end
if ((((event == IVAL_NONE) or (event == IVAL_DONE)) and if (((event == IVAL_NONE) or (event == IVAL_DONE)) and
(self.prev_t < tEnd)) (self.prev_t < tEnd)):
or # We've just crossed the end of this interval,
((event == IVAL_INIT) and ival.getfOpenEnded())): # execute the interval at its end time
# If we've just crossed the end of this interval # and flag event as IVAL_DONE
ival.setT(ival.getDuration(), IVAL_DONE)
elif ((event == IVAL_INIT) and ival.getfOpenEnded()):
# or its an INIT event after the interval's end # or its an INIT event after the interval's end
# and the interval is openended, # and the interval is openended,
# then execute the interval at its end time # then execute the interval at its end time
ival.setT(ival.getDuration(), event) ival.setT(ival.getDuration(), IVAL_INIT)
# May not be the last, keep checking other intervals # May not be the last, keep checking other intervals
# Record current interval (may be None) # Record current interval (may be None)
self.currentInterval = currentInterval self.currentInterval = currentInterval