From c03d395f6848fe9b2d1185173a9cf5ec8277394f Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 21 Nov 2023 14:07:33 +0200 Subject: Crappy fft for spectrum analysis and initial gtk test --- src/synth_gui.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/synth_gui.c') diff --git a/src/synth_gui.c b/src/synth_gui.c index ed10547..c210f2b 100644 --- a/src/synth_gui.c +++ b/src/synth_gui.c @@ -191,6 +191,9 @@ draw_signals(synth_t * synth, int x, int y, int width, int height) else DrawCircle(i , y + height / 2 + floor(50 * synth->viz.wave[i - x]), point_radius, RAYWHITE); } + for (int i = x; i < WIDTH - x; i++) { + DrawCircle(i , y + height / 2 + floor(5 * synth->fftviz.wave[i - x]) * -1, point_radius, RED); + } int c = 0; for (int i = 0; i < MIDI_NOTES; i++) { -- cgit v1.2.3