diff options
-rw-r--r-- | src/libs/sig/ops_sin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/sig/ops_sin.c b/src/libs/sig/ops_sin.c index fa9dfa5..17f08cf 100644 --- a/src/libs/sig/ops_sin.c +++ b/src/libs/sig/ops_sin.c @@ -52,7 +52,7 @@ static float ops_sin_output(void *context, unsigned ticks_ms) rads_per_ms = (M_PI * 2.f) * hz * .001f; rads = (float)(ticks_ms % ms_per_cycle) * rads_per_ms; - return sinf(rads); + return sinf(rads) * .5f + .5f; } |