From af484658565920005a502553422530493a5d91de Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Wed, 24 Nov 2021 23:32:31 -0500 Subject: Refactor envelope to use line iterator --- klangfarb/Main.tscn | 2 +- klangfarb/main.gd | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'klangfarb') 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() -- cgit v1.2.3