summaryrefslogtreecommitdiff
path: root/gens
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
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')
-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))