summaryrefslogtreecommitdiffstats
path: root/src/synth_gui.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-09-02 19:39:15 +0300
committergramanas <anastasis.gramm2@gmail.com>2023-09-02 19:39:15 +0300
commit1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8 (patch)
tree4f4764469ba18eb316466f6522e470de9a9e646f /src/synth_gui.c
parent0ea48752390228224e7f25575b096efc0aacd70b (diff)
downloadsynth-project-1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8.tar.gz
synth-project-1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8.tar.bz2
synth-project-1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8.zip
DELAY
Diffstat (limited to 'src/synth_gui.c')
-rw-r--r--src/synth_gui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/synth_gui.c b/src/synth_gui.c
index 46ec71f..89782ed 100644
--- a/src/synth_gui.c
+++ b/src/synth_gui.c
@@ -176,6 +176,10 @@ draw_bars(synth_t * synth, int x, int y, int width, int height, int offset)
synth->lfo.amp = GuiSliderBar((Rectangle){ x, y + count++ * (height + offset), width, height }, "lfo amp: ", buf, synth->lfo.amp , 0.0f, 0.93f);
snprintf(buf, sizeof buf, "%.3f", synth->gain);
synth->gain = GuiSlider((Rectangle){ x, y + count++ * (height + offset), width, height }, "gain: ", buf, synth->gain , 0.0f, 2.0f);
+ snprintf(buf, sizeof buf, "%.3f", synth->del_feedback);
+ synth->del_feedback = GuiSlider((Rectangle){ x, y + count++ * (height + offset), width, height }, "fb: ", buf, synth->del_feedback , 0.0f, 1.0f);
+ snprintf(buf, sizeof buf, "%.3f", synth->del_time);
+ synth->del_time = GuiSlider((Rectangle){ x, y + count++ * (height + offset), width, height }, "del_time: ", buf, synth->del_time , 0.0f, 0.1f);
}
void
@@ -263,6 +267,7 @@ rayrun(void *synthData){
GuiSpinner((Rectangle){ WIDTH - 100 - 50 , 50 + 24 + 6, 100, 24 }, buf, &(synth->geni), 0, 6, 0);
synth->clamp = GuiToggle((Rectangle){ WIDTH - 100 - 50, 50 + 24 + 6 + 24 + 6, 100, 24 }, "clamp", synth->clamp);
+ synth->delay = GuiToggle((Rectangle){ WIDTH - 100 - 50, 50 + 24 + 6 + 24 + 6 + 24 + 6, 100, 24 }, "delay", synth->delay);
// signals
draw_signals(synth, 20, 390, WIDTH - 2*20, 200);