summaryrefslogtreecommitdiffstats
path: root/src/osc.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-11-26 16:29:00 +0200
committergramanas <anastasis.gramm2@gmail.com>2023-11-26 16:29:00 +0200
commit8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 (patch)
treebc4ec3351f8585b548ddf016c93d3715b324b64c /src/osc.h
parentc03d395f6848fe9b2d1185173a9cf5ec8277394f (diff)
downloadsynth-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.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)