Sine Wave Generator functioning for any frequency and duration