pysynth/filters.py
def calc_next(self):

        """
        Calculates the next value in the Moving Average Filter.

        The first 'lower' values are calculated via convolution.
        After these values are calculated, then the recursive algorithm is used.

        :return: Next calculated value
        :rtype: float, int
        """

        final = 0

        if self.index < self.lower:

            # Calculate next value via convolution:

            self.prev = self.calc_conv(start=self.index)

            return self.prev

        # Done, lets start the recursive operation:

        # Calculate next value via recursion:

        self.prev = self.calc_recursive()

        # Popping the buffer so we can get our next value:

        self.buffer.popleft()

        return self.prev

        Calculates the next value in the Moving Average Filter.

        The first 'lower' values are calculated via convolution.
        After these values are calculated, then the recursive algorithm is used.

        :return: Next calculated value
        :rtype: float, int
        
Calculates the next value in the Moving Average Filter.
The first 'lower' values are calculated via convolution.
After these values are calculated, then the recursive algorithm is used.
Calculates the next value in the Moving Average Filter . The first ' lower ' values are calculated via convolution . After these values are calculated then the recursive algorithm is used .
def calc_next(self):
        final = 0
        if self.index < self.lower:
            self.prev = self.calc_conv(start=self.index)
            return self.prev
        self.prev = self.calc_recursive()
        self.buffer.popleft()
        return self.prev
def calc_next ( self ) : final = 0 if self . index < self . lower : self . prev = self . calc_conv ( start = self . index ) return self . prev self . prev = self . calc_recursive ( ) self . buffer . popleft ( ) return self . prev
Calculates the next value in the Moving Average Filter.
Calculates the next value in the Moving Average Filter .
"""
        Calculates the next value in the Moving Average Filter.

        The first 'lower' values are calculated via convolution.
        After these values are calculated, then the recursive algorithm is used.

        :return: Next calculated value
        :rtype: float, int
        """ # Calculate next value via convolution:
 # Done, lets start the recursive operation:
 # Calculate next value via recursion:
 # Popping the buffer so we can get our next value:

Next calculated value
Next calculated value
float, int
self