View Single Post
Light Poster
17Aug2011,22:19  
ogopa's Avatar
Solution:
The sgn function should only be for the sin function
int a = amplitude_scale * sgn(sin(phase)) * maxval;