I\'m attempting to write a simple digital synthesizer with a basic UI. Currently it creates a sin wave generator of a desired frequency and amplitude and then loops infinitely o