code: def sine_wave(i, frequency=FREQUENCY, framerate=FRAMERATE, amplitude=AMPLITUDE):
      
      omega = 2.0 * pi * float(frequency)
      sine = sin(omega * (float(i) / float(framerate)))
      return float(amplitude) * sine
docs: Returns value of a sine wave at a given frequency and framerate
      for a given sample i