code: def sinus_values_by_hz(framerate, hz, max_value):
      
      count = int(round(float(framerate) / float(hz)))
      count += 1
      values = tuple(sinus_values(count, max_value))
      values = values[1:]
      return values
docs: Create sinus values with the given framerate and Hz.
      Note:
      We skip the first zero-crossing, so the values can be used directy in a loop.
  
      >>> values = sinus_values_by_hz(22050, 1200, 255)
      >>> len(values) # 22050 / 1200Hz = 18,375
      18
      >>> values
      (87, 164, 221, 251, 251, 221, 164, 87, 0, -87, -164, -221, -251, -251, -221, -164, -87, 0)
  
      >>> tl = TextLevelMeter(255, width=40)
      >>> for v in values:
      ...     tl.feed(v)
      '|                  |     *            |'
      '|                  |           *      |'
      '|                  |               *  |'
      '|                  |                 *|'
      '|                  |                 *|'
      '|                  |               *  |'
      '|                  |           *      |'
      '|                  |     *            |'
      '|                  *                  |'
      '|            *     |                  |'
      '|      *           |                  |'
      '|  *               |                  |'
      '|*                 |                  |'
      '|*                 |                  |'
      '|  *               |                  |'
      '|      *           |                  |'
      '|            *     |                  |'
      '|                  *                  |'
  
      >>> values = sinus_values_by_hz(44100, 1200, 255)
      >>> len(values) # 44100 / 1200Hz = 36,75
      37