From 51821bb2e9b67fc70486a4ee8dcbc88971adc3b6 Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 14 Sep 2023 14:37:13 +0300 Subject: More cleanup --- src/synth_gui.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/synth_gui.c') diff --git a/src/synth_gui.c b/src/synth_gui.c index 35c940a..ed10547 100644 --- a/src/synth_gui.c +++ b/src/synth_gui.c @@ -166,14 +166,6 @@ draw_bars(synth_t * synth, int x, int y, int width, int height, int offset) synth->adsr.s = GuiSlider((Rectangle){ x, y + count++ * (height + offset), width, height }, "S: ", buf, synth->adsr.s , 0.0f, 1.0f); snprintf(buf, sizeof buf, "%.3f", synth->adsr.r); synth->adsr.r = GuiSlider((Rectangle){ x, y + count++ * (height + offset), width, height }, "R: ", buf, synth->adsr.r , 0.001f, 3.0f); - snprintf(buf, sizeof buf, "%.3f", synth->cutoff); - synth->cutoff = GuiSliderBar((Rectangle){ x, y + count++ * (height + offset), width, height }, "fC: ", buf, synth->cutoff , 0.0f, 11000.0f); - /* snprintf(buf, sizeof buf, "%.3f", synth->resonance); */ - /* synth->resonance = GuiSliderBar((Rectangle){ x, y + count++ * (height + offset), width, height }, "fR: ", buf, synth->resonance , 0.001f, 5.0f); */ - snprintf(buf, sizeof buf, "%.3f", synth->lfo.freq); - synth->lfo.freq = GuiSliderBar((Rectangle){ x, y + count++ * (height + offset), width, height }, "lfo freq: ", buf, synth->lfo.freq , 0.001f, 10.0f); - snprintf(buf, sizeof buf, "%.3f", synth->lfo.amp); - 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); @@ -245,10 +237,6 @@ rayrun(void *synthData){ mouse(synth, synth->stream); int prec = 100000; - if (IsKeyPressed(KEY_ENTER)) { - synth->multi = !synth->multi; - } - // Draw //---------------------------------------------------------------------------------- BeginDrawing(); -- cgit v1.2.3