diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-09-08 11:06:49 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-09-08 11:06:49 +0300 |
commit | 70d0d8ab25a1a9e92aa3016b661b0a9fe1c3c7cb (patch) | |
tree | 7a6825afb471ee0cd6e63c192fe7363cf06779fd /src/osc_tri.c | |
parent | 1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8 (diff) | |
download | synth-project-70d0d8ab25a1a9e92aa3016b661b0a9fe1c3c7cb.tar.gz synth-project-70d0d8ab25a1a9e92aa3016b661b0a9fe1c3c7cb.tar.bz2 synth-project-70d0d8ab25a1a9e92aa3016b661b0a9fe1c3c7cb.zip |
tmp
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 |