code: def sinus_values(count, max_value):
      
      count -= 1
      for index in xrange(0, count + 1):
          angle = 360.0 / count * index
          y = math.sin(math.radians(angle)) * max_value
          y = int(round(y))
          yield y
docs: >>> values = list(sinus_values(10, 32768))
      >>> len(values)
      10
      >>> values
      [0, 21063, 32270, 28378, 11207, -11207, -28378, -32270, -21063, 0]
  
      >>> tl = TextLevelMeter(32768, width=40)
      >>> for v in values:
      ...     tl.feed(v)
      '|                  *                  |'
      '|                  |           *      |'
      '|                  |                 *|'
      '|                  |               *  |'
      '|                  |     *            |'
      '|            *     |                  |'
      '|  *               |                  |'
      '|*                 |                  |'
      '|      *           |                  |'
      '|                  *                  |'