summaryrefslogtreecommitdiffstats
path: root/src/synth_gui.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-09-14 14:37:13 +0300
committergramanas <anastasis.gramm2@gmail.com>2023-09-14 14:37:13 +0300
commit51821bb2e9b67fc70486a4ee8dcbc88971adc3b6 (patch)
tree03e32617e4625d54ec9bd0d449e514d1344c52bd /src/synth_gui.c
parent2a2a1b0d9fc4bfffcaf23d2f66d38d6927d76bbe (diff)
downloadsynth-project-51821bb2e9b67fc70486a4ee8dcbc88971adc3b6.tar.gz
synth-project-51821bb2e9b67fc70486a4ee8dcbc88971adc3b6.tar.bz2
synth-project-51821bb2e9b67fc70486a4ee8dcbc88971adc3b6.zip
More cleanup
Diffstat (limited to 'src/synth_gui.c')
-rw-r--r--src/synth_gui.c12
1 files changed, 0 insertions, 12 deletions
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();