summaryrefslogtreecommitdiffstats
path: root/src/osc_sin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc_sin.c')
-rw-r--r--src/osc_sin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/osc_sin.c b/src/osc_sin.c
index 66478d2..79a1726 100644
--- a/src/osc_sin.c
+++ b/src/osc_sin.c
@@ -2,17 +2,15 @@
osc_t OSC_sin = {
.name = "f_sin",
- .len = 20000,
+ .len = 1,
.start = 0,
- .end = 20000,
+ .end = 1,
};
float
osc_sin(float offset)
{
- return osc_interpolate(offset,
- sin(2 * M_PI * (int)offset / OSC_sin.len),
- sin(2 * M_PI * osc_next_index(&OSC_sin, offset) / OSC_sin.len));
+ return sin(2 * M_PI * offset);
}
float