pysynth/seq.py
def run(self, time):

        """
        Runs the given commands, and starts manipulating the sequencer.

        We run ALL events that are less than the given time value,
        and that are more than our current index.
        We also add the offset to the start time,
        as it will be used to support features like repeating.

        Normally, we return True when we have done our work.
        When we are done iterating, then we will return False.

        :param time: Time value, all events less than this will be ran
        :type time: int
        :retrun: True when successful, False when done
        """

        # Find all events that fall within our parameters:

        events = 0

        for event in self.events[self.index:]:

            if event.time_start + self.offset < time:

                # Found a valid event, lets run it:

                event.run()
                events += 1
            
                continue

            # Nothing, lets update our index and continue:

            self.index += events

            print("New index: {}".format(self.index))

            return True

        # We really are done, let's return False

        return False

        Runs the given commands, and starts manipulating the sequencer.

        We run ALL events that are less than the given time value,
        and that are more than our current index.
        We also add the offset to the start time,
        as it will be used to support features like repeating.

        Normally, we return True when we have done our work.
        When we are done iterating, then we will return False.

        :param time: Time value, all events less than this will be ran
        :type time: int
        :retrun: True when successful, False when done
        
Runs the given commands, and starts manipulating the sequencer.
We run ALL events that are less than the given time value,
and that are more than our current index.
We also add the offset to the start time,
as it will be used to support features like repeating.

Normally, we return True when we have done our work.
When we are done iterating, then we will return False.
Runs the given commands and starts manipulating the sequencer . We run ALL events that are less than the given time value and that are more than our current index . We also add the offset to the start time as it will be used to support features like repeating . Normally we return True when we have done our work . When we are done iterating then we will return False .
def run(self, time):
        events = 0
        for event in self.events[self.index:]:
            if event.time_start + self.offset < time:
                event.run()
                events += 1
                continue
            self.index += events
            print("New index: {}".format(self.index))
            return True
        return False
def run ( self , time ) : events = 0 for event in self . events [ self . index : ] : if event . time_start + self . offset < time : event . run ( ) events += 1 continue self . index += events print ( "New index: {}" . format ( self . index ) ) return True return False
Runs the given commands, and starts manipulating the sequencer.
Runs the given commands and starts manipulating the sequencer .
"""
        Runs the given commands, and starts manipulating the sequencer.

        We run ALL events that are less than the given time value,
        and that are more than our current index.
        We also add the offset to the start time,
        as it will be used to support features like repeating.

        Normally, we return True when we have done our work.
        When we are done iterating, then we will return False.

        :param time: Time value, all events less than this will be ran
        :type time: int
        :retrun: True when successful, False when done
        """ # Find all events that fall within our parameters: # Found a valid event, lets run it: # Nothing, lets update our index and continue: # We really are done, let's return False
self
time
Time value, all events less than this will be ran
Time value all events less than this will be ran
retrun
True when successful, False when done
True when successful False when done