Source code for square wave and sine wave with tremolo