added sine wave oscillator to generate sound