pysynth/filters.py
def calc_time(self, time_cost):

        """
        Calculates the time value for this filter, given a time constant.

        We utilise the following equation:

        e ^ (-1 / time_const)

        Where:

        time_const = Time constant - the number of samples it takes to decay to the 36.8% of the final value

        :param time_cost: Time constant
        :param: int
        :return: Time value
        :rtype: float
        """

        # Calculate and return the time value:

        return pow(e, -1/time_cost)

        Calculates the time value for this filter, given a time constant.

        We utilise the following equation:

        e ^ (-1 / time_const)

        Where:

        time_const = Time constant - the number of samples it takes to decay to the 36.8% of the final value

        :param time_cost: Time constant
        :param: int
        :return: Time value
        :rtype: float
        
Calculates the time value for this filter, given a time constant.
We utilise the following equation.





time_const = Time constant - the number of samples it takes to decay to the 36.8% of the final value


Calculates the time value for this filter given a time constant . We utilise the following equation . time_const = Time constant - the number of samples it takes to decay to the 36 . 8% of the final value
def calc_time(self, time_cost):
        return pow(e, -1/time_cost)
def calc_time ( self , time_cost ) : return pow ( e , - 1 / time_cost )
Calculates the time value for this filter, given a time constant.
Calculates the time value for this filter given a time constant .
"""
        Calculates the time value for this filter, given a time constant.

        We utilise the following equation:

        e ^ (-1 / time_const)

        Where:

        time_const = Time constant - the number of samples it takes to decay to the 36.8% of the final value

        :param time_cost: Time constant
        :param: int
        :return: Time value
        :rtype: float
        """ # Calculate and return the time value:

self
time_cost