summaryrefslogtreecommitdiffstats
path: root/src/osc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc.h')
-rw-r--r--src/osc.h7
1 files changed, 6 insertions, 1 deletions
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)