Generates an audio sine wave using Java