Implemented the square wave synth
Implemented sine wave synth
Fixed a calculation error
Fixed same bug, in different place
Changed implementation to reduce code redundancy
Implemented triangle wave synth
Corrected the square waveform's range