pysynth/utils.py
def value(self):

        """
        Handles any relevant events and return the internal value.

        We only handle one event at a time. If the target time for the handled event
        is less than or equal to the current time, then we set the internal value to the target value.

        If the end time is negative, then we do not remove it.

        :return: Value
        """

        # Check if we have something to handle:

        if self._events:

            # Not empty, let's check if it's instantiated:

            if type(self._events[0]) == tuple:

                # Instantiate it:

                self._events[0] = self.start_event(self._events[0])

            # Let's see if the time is valid

            if get_time() >= self._events[0].time_end > 0.0:

                # Value is done, let's remove it:

                self._value = self._events.pop(0).value_target

            else:

                # Compute the value at this time

                self._value = self._events[0].comp()

        # Return our value:

        #print("Value: {}".format(self._value))

        return self._value

        Handles any relevant events and return the internal value.

        We only handle one event at a time. If the target time for the handled event
        is less than or equal to the current time, then we set the internal value to the target value.

        If the end time is negative, then we do not remove it.

        :return: Value
        
Handles any relevant events and return the internal value.
We only handle one event at a time. If the target time for the handled event
is less than or equal to the current time, then we set the internal value to the target value.

If the end time is negative, then we do not remove it.
Handles any relevant events and return the internal value . We only handle one event at a time . If the target time for the handled event is less than or equal to the current time then we set the internal value to the target value . If the end time is negative then we do not remove it .
def value(self):
        if self._events:
            if type(self._events[0]) == tuple:
                self._events[0] = self.start_event(self._events[0])
            if get_time() >= self._events[0].time_end > 0.0:
                self._value = self._events.pop(0).value_target
            else:
                self._value = self._events[0].comp()
        return self._value
def value ( self ) : if self . _events : if type ( self . _events [ 0 ] ) == tuple : self . _events [ 0 ] = self . start_event ( self . _events [ 0 ] ) if get_time ( ) >= self . _events [ 0 ] . time_end > 0.0 : self . _value = self . _events . pop ( 0 ) . value_target else : self . _value = self . _events [ 0 ] . comp ( ) return self . _value
Handles any relevant events and return the internal value.
Handles any relevant events and return the internal value .
"""
        Handles any relevant events and return the internal value.

        We only handle one event at a time. If the target time for the handled event
        is less than or equal to the current time, then we set the internal value to the target value.

        If the end time is negative, then we do not remove it.

        :return: Value
        """ # Check if we have something to handle:
 # Not empty, let's check if it's instantiated:
 # Instantiate it:
 # Let's see if the time is valid
 # Value is done, let's remove it:
 # Compute the value at this time
 # Return our value:
 #print("Value: {}".format(self._value))

None
self