original_docstring: 
              Computes a rough "mixfactor" - the balance between wubs and original audio for a given segment.
              Mixfactor returned:
                1: full wub
                0: full original
              Result can be fed into echonest.audio.mix() as the third parameter.
          
docstring: Computes a rough "mixfactor" - the balance between wubs and original audio for a given segment.
  Mixfactor returned:
  1: full wub
  0: full original
  Result can be fed into echonest.audio.mix() as the third parameter.
docstring_tokens: Computes a rough " mixfactor " - the balance between wubs and original audio for a given segment . Mixfactor returned : 1 : full wub 0 : full original Result can be fed into echonest . audio . mix () as the third parameter .
code: def mixfactor(self, segment):
          """
              Computes a rough "mixfactor" - the balance between wubs and original audio for a given segment.
              Mixfactor returned:
                1: full wub
                0: full original
              Result can be fed into echonest.audio.mix() as the third parameter.
          """
          mixfactor = 0
          a = (89.0/1.5) + self.template['mixpoint']
          b = (188.0/1.5) + self.template['mixpoint']
          loud = self.loudness(self.original.analysis.segments, segment)
          if not loud:
              loud = self.original.analysis.loudness
          if loud != -1 * b:
              mixfactor = float(float(loud + a)/float(loud + b))
          if mixfactor > 0.8:
              mixfactor = 0.8
          elif mixfactor < 0.3:
              mixfactor = 0.3
          return mixfactor
code_tokens: def mixfactor ( self , segment ) : mixfactor = 0 a = ( 89.0 / 1.5 ) + self . template [ 'mixpoint' ] b = ( 188.0 / 1.5 ) + self . template [ 'mixpoint' ] loud = self . loudness ( self . original . analysis . segments , segment ) if not loud : loud = self . original . analysis . loudness if loud != - 1 * b : mixfactor = float ( float ( loud + a ) / float ( loud + b ) ) if mixfactor > 0.8 : mixfactor = 0.8 elif mixfactor < 0.3 : mixfactor = 0.3 return mixfactor
short_docstring: Computes a rough "mixfactor" - the balance between wubs and original audio for a given segment.
short_docstring_tokens: Computes a rough " mixfactor " - the balance between wubs and original audio for a given segment .
comment: """
              Computes a rough "mixfactor" - the balance between wubs and original audio for a given segment.
              Mixfactor returned:
                1: full wub
                0: full original
              Result can be fed into echonest.audio.mix() as the third parameter.
          """