From 1ef25d9be2b5358f3da7429bf0b27d5a9e9fa1a8 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 2 Sep 2023 19:39:15 +0300 Subject: DELAY --- src/synth_gui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/synth_gui.c') 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); -- cgit v1.2.3