Thread
:
unable to generate square wave
View Single Post
ogopa
Light Poster
17Aug2011,22:19
Solution:
The sgn function should only be for the sin function
int a = amplitude_scale * sgn(sin(phase)) * maxval;