pysynth/filters.py
def calc_cutoff(self, frac):

        """
        Calculates the cutoff value for this filter, given the frequency fraction.

        We utilise the following equation:

        2 - cos(2 * PI * frac) - sqrt((2 - cos(2 * PI * frac))^2 - 1)

        where:

        frac = frequency fraction

        :param frac: Frequency fraction
        :type frac: float
        :return: Cutoff value for the specified frequency
        :rtype: float
        """

        # Calculate the cutoff value and return it

        return 2 - cos(2 * pi * frac) - sqrt(pow(2 - cos(2 * pi * frac), 2) - 1)

        Calculates the cutoff value for this filter, given the frequency fraction.

        We utilise the following equation:

        2 - cos(2 * PI * frac) - sqrt((2 - cos(2 * PI * frac))^2 - 1)

        where:

        frac = frequency fraction

        :param frac: Frequency fraction
        :type frac: float
        :return: Cutoff value for the specified frequency
        :rtype: float
        
Calculates the cutoff value for this filter, given the frequency fraction.
We utilise the following equation.





frac = frequency fraction
Calculates the cutoff value for this filter given the frequency fraction . We utilise the following equation . frac = frequency fraction
def calc_cutoff(self, frac):
        return 2 - cos(2 * pi * frac) - sqrt(pow(2 - cos(2 * pi * frac), 2) - 1)
def calc_cutoff ( self , frac ) : return 2 - cos ( 2 * pi * frac ) - sqrt ( pow ( 2 - cos ( 2 * pi * frac ) , 2 ) - 1 )
Calculates the cutoff value for this filter, given the frequency fraction.
Calculates the cutoff value for this filter given the frequency fraction .
"""
        Calculates the cutoff value for this filter, given the frequency fraction.

        We utilise the following equation:

        2 - cos(2 * PI * frac) - sqrt((2 - cos(2 * PI * frac))^2 - 1)

        where:

        frac = frequency fraction

        :param frac: Frequency fraction
        :type frac: float
        :return: Cutoff value for the specified frequency
        :rtype: float
        """ # Calculate the cutoff value and return it

Cutoff value for the specified frequency
Cutoff value for the specified frequency
float
self
frac
None