pysynth/seq.py
def _get_acctime(self, index):
        
        """
        Gets the accumulated time at the given index.

        The accumulated time is the total time elapsed in the events before us.
        We simply get the stop time for the event directly behind us in the event list.

        :param index: Index to get the accumulated time for
        :type index: int
        """

        # Check if we are working with index 0:

        if index == 0:

            # We are the start, meaning acc time will be zero:

            return 0

        # Get the stop time for the event ahead of us:

        return self.events[index-1].time_stop

        Gets the accumulated time at the given index.

        The accumulated time is the total time elapsed in the events before us.
        We simply get the stop time for the event directly behind us in the event list.

        :param index: Index to get the accumulated time for
        :type index: int
        
Gets the accumulated time at the given index.
The accumulated time is the total time elapsed in the events before us.
We simply get the stop time for the event directly behind us in the event list.
Gets the accumulated time at the given index . The accumulated time is the total time elapsed in the events before us . We simply get the stop time for the event directly behind us in the event list .
def _get_acctime(self, index):
        if index == 0:
            return 0
        return self.events[index-1].time_stop
def _get_acctime ( self , index ) : if index == 0 : return 0 return self . events [ index - 1 ] . time_stop
Gets the accumulated time at the given index.
Gets the accumulated time at the given index .
"""
        Gets the accumulated time at the given index.

        The accumulated time is the total time elapsed in the events before us.
        We simply get the stop time for the event directly behind us in the event list.

        :param index: Index to get the accumulated time for
        :type index: int
        """ # Check if we are working with index 0: # We are the start, meaning acc time will be zero: # Get the stop time for the event ahead of us:
self
index
Index to get the accumulated time for
Index to get the accumulated time for