diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-11-26 16:29:00 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-11-26 16:29:00 +0200 |
commit | 8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 (patch) | |
tree | bc4ec3351f8585b548ddf016c93d3715b324b64c /src/osc.h | |
parent | c03d395f6848fe9b2d1185173a9cf5ec8277394f (diff) | |
download | synth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.tar.gz synth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.tar.bz2 synth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.zip |
Many changes!
Diffstat (limited to 'src/osc.h')
-rw-r--r-- | src/osc.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -74,6 +74,8 @@ osc_t * make_tri(const char * name); void \ set_##osc##_len(long len); \ float \ + get_##osc##_len(); \ + float \ osc_##osc(float offset); \ float \ osc_##osc##_next(float f, float offset); @@ -88,7 +90,10 @@ osc_t * make_tri(const char * name); { OSC_##osc.end = end; } \ void \ set_##osc##_len(long len) \ - { OSC_##osc.len = len; } + { OSC_##osc.len = len; } \ + float \ + get_##osc##_len() \ + { return OSC_##osc.len; } OSC_COMMON_H(tri) OSC_COMMON_H(sin) |