summaryrefslogtreecommitdiff
path: root/gens
diff options
context:
space:
mode:
Diffstat (limited to 'gens')
-rw-r--r--gens/test.gen20
-rw-r--r--gens/test_voice.gen1
2 files changed, 11 insertions, 10 deletions
diff --git a/gens/test.gen b/gens/test.gen
index 164ba7a..be43356 100644
--- a/gens/test.gen
+++ b/gens/test.gen
@@ -1,12 +1,12 @@
[
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#,
- #gens/basic_saw.gen#
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#,
+ #gens/test_voice.gen#
]
diff --git a/gens/test_voice.gen b/gens/test_voice.gen
new file mode 100644
index 0000000..855568b
--- /dev/null
+++ b/gens/test_voice.gen
@@ -0,0 +1 @@
+mul(sine(param('v_freq', 500)), ifelse(rel(param('v_frame'), '<', param('v_deadline')), mul(param('v_amp'), add(param('v_frame'), negate(param('v_start'))), reciprocate(add(param('v_deadline'), negate(param('v_start'))))), 0.0))