summaryrefslogtreecommitdiff
path: root/klangfarb
diff options
context:
space:
mode:
authorJacob Lee <jacob@unabridgedsoftware.com>2021-11-24 23:32:31 -0500
committerJacob Lee <jacob@unabridgedsoftware.com>2021-11-24 23:32:31 -0500
commitaf484658565920005a502553422530493a5d91de (patch)
tree15852bf7ee4b261e39f10a9a590cacfbb2762d15 /klangfarb
parent1a44b91562d41343da19e7521ab48b144881e2d0 (diff)
Refactor envelope to use line iterator
Diffstat (limited to 'klangfarb')
-rw-r--r--klangfarb/Main.tscn2
-rw-r--r--klangfarb/main.gd4
2 files changed, 5 insertions, 1 deletions
diff --git a/klangfarb/Main.tscn b/klangfarb/Main.tscn
index 0c2f046..7b547cd 100644
--- a/klangfarb/Main.tscn
+++ b/klangfarb/Main.tscn
@@ -8,5 +8,5 @@
stream = SubResource( 1 )
volume_db = -13.216
script = ExtResource( 2 )
-frequency_modulation = true
+continuous = false
fm_index = 100.0
diff --git a/klangfarb/main.gd b/klangfarb/main.gd
index 751527a..86ebc87 100644
--- a/klangfarb/main.gd
+++ b/klangfarb/main.gd
@@ -64,6 +64,10 @@ func _process(_delta):
# synth.fm_frequency(fm_multiplier * freq)
synth.fm_depth(fm_index)
synth.continuous(continuous)
+ synth.set_attack(attack)
+ synth.set_decay(decay)
+ synth.set_sustain(sustain)
+ synth.set_release(release)
_check_waveform()
_fill_buffer()