sine wave with controls