summaryrefslogtreecommitdiff
path: root/gens/test_voice.gen
diff options
context:
space:
mode:
authorGraham Northup <grissess@nexusg.org>2017-10-07 02:14:17 -0400
committerGraham Northup <grissess@nexusg.org>2017-10-07 02:14:17 -0400
commit255f0aa6de604e0bf9d37ba0ee5362ef3b9f235f (patch)
treee24314201b849746dd53f8060f48df81cd18853e /gens/test_voice.gen
parent22dd5bc5862e91330c8da0d5f141998cdbe546fb (diff)
Graphics working
But in need of terrible refactoring. Rust is beautiful sometimes. This is not one of those times.
Diffstat (limited to 'gens/test_voice.gen')
-rw-r--r--gens/test_voice.gen1
1 files changed, 1 insertions, 0 deletions
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))