From 14c0b2919f959a77e6de1f42a2cb1c8074728f7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Wed, 1 Jan 2025 10:49:28 +0800 Subject: [PATCH] tidy up GUI a little, add plot scale slider --- sndlock.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sndlock.cpp b/sndlock.cpp index 4c1ccf0..f5992f2 100644 --- a/sndlock.cpp +++ b/sndlock.cpp @@ -201,6 +201,9 @@ int main(int argc, char* argv[]) std::atexit(SetShutdown); bool exit = false; + float plot_scale[SND_PCHAN]; + for(int i=0;i guard(lpf_hist_mutex); - ImGui::PlotLines(str, lpf_hist[i], 512, 0, 0, -0.0f, 0.01f, ImVec2(0, 200.0f)); + ImGui::PlotLines(str, lpf_hist[i], 512, 0, 0, -0.0f, plot_scale[i], ImVec2(0.0f, 200.0f)); } } }