(self)
Return the complement of this interval also known as inverted interval.
        The sum of this interval plus its complement is equal to 1 octave (P8),
        except for the case of A8, for which there is no d1 interval.
Return the complement of this interval also known as inverted interval.
        The sum of this interval plus its complement is equal to 1 octave (P8),
        except for the case of A8, for which there is no d1 interval.
Return the complement of this interval also known as inverted interval . The sum of this interval plus its complement is equal to 1 octave ( P8 ) except for the case of A8 for which there is no d1 interval .
def complement(self):
        """
        Return the complement of this interval also known as inverted interval.
        The sum of this interval plus its complement is equal to 1 octave (P8),
        except for the case of A8, for which there is no d1 interval.
        """
        if self.is_compound():
            raise ValueError('Cannot invert a compound interval')
        else:
            n = 9 - self.number
            q = self.quality_inverse[self.quality]
            return Interval(q + str(n))
def complement ( self ) : if self . is_compound ( ) : raise ValueError ( 'Cannot invert a compound interval' ) else : n = 9 - self . number q = self . quality_inverse [ self . quality ] return Interval ( q + str ( n ) )