pysynth/seq.py
def add_event(self, event, index):

        """
        Adds an event at the given index.

        We use the accumulated time from the events before us to determine the start time.

        :param event: Event to add
        :type event: BaseEvent
        :param index: Index to add the event to
        :type index: int
        """

        # Bind info to the event:

        event._bind(self, self.seq)

        # Add the event:

        if index == -1:

            # Just append the item:

            self.events.append(event)

            # Set the index:

            index = len(self.events) - 1

        else:

            self.events.insert(index, event)

        # Set the start time:

        event._set_start(self._get_acctime(index))

        Adds an event at the given index.

        We use the accumulated time from the events before us to determine the start time.

        :param event: Event to add
        :type event: BaseEvent
        :param index: Index to add the event to
        :type index: int
        
Adds an event at the given index.
We use the accumulated time from the events before us to determine the start time.
Adds an event at the given index . We use the accumulated time from the events before us to determine the start time .
def add_event(self, event, index):
        event._bind(self, self.seq)
        if index == -1:
            self.events.append(event)
            index = len(self.events) - 1
        else:
            self.events.insert(index, event)
        event._set_start(self._get_acctime(index))
def add_event ( self , event , index ) : event . _bind ( self , self . seq ) if index == - 1 : self . events . append ( event ) index = len ( self . events ) - 1 else : self . events . insert ( index , event ) event . _set_start ( self . _get_acctime ( index ) )
Adds an event at the given index.
Adds an event at the given index .
"""
        Adds an event at the given index.

        We use the accumulated time from the events before us to determine the start time.

        :param event: Event to add
        :type event: BaseEvent
        :param index: Index to add the event to
        :type index: int
        """ # Bind info to the event: # Add the event: # Just append the item: # Set the index: # Set the start time:
self
event
Event to add
Event to add
index
Index to add the event to
Index to add the event to