diff options
Diffstat (limited to 'src/osc_tri.c')
-rw-r--r-- | src/osc_tri.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 |