From 70d0d8ab25a1a9e92aa3016b661b0a9fe1c3c7cb Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 8 Sep 2023 11:06:49 +0300 Subject: tmp --- src/osc_tri.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/osc_tri.c') diff --git a/src/osc_tri.c b/src/osc_tri.c index 8dd3d41..fc3665d 100644 --- a/src/osc_tri.c +++ b/src/osc_tri.c @@ -3,16 +3,18 @@ osc_t OSC_tri = { .name = "w_triangle", .start = 0, - .end = 2, - .len = 2, + .end = 4, + .len = 4, }; static float tri(int index) { - if (index == 0) return -1.0f; + if (index == 0) return 0.0f; else if (index == 1) return 1.0f; - else return 0.0f; + else if (index == 2) return 0.0f; + else if (index == 3) return -1.0f; + //else return 0.0f; } float -- cgit v1.2.3