From 8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 26 Nov 2023 16:29:00 +0200 Subject: Many changes! --- src/osc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/osc.h') diff --git a/src/osc.h b/src/osc.h index 3a48bb5..8b6fdea 100644 --- a/src/osc.h +++ b/src/osc.h @@ -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) -- cgit v1.2.3