From aaafcea7e26791acbf5b9612e3fb396edcdfcc8f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 10:25:25 +0100 Subject: Fill UI --- UI.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'UI.h') diff --git a/UI.h b/UI.h index f507d2e..a3c56e0 100644 --- a/UI.h +++ b/UI.h @@ -1,6 +1,10 @@ #pragma once +#include "config.h" + #include +#include +#include #include @@ -9,7 +13,7 @@ class UI public: using clock_type = std::chrono::high_resolution_clock; - UI(); + UI(Config& config); void draw(); @@ -22,8 +26,10 @@ public: // slots void count_main_loops(); void slot_active_sensing(); + void slot_midi_note(int channel, int note, uint64_t timestamp); private: + Config& m_config; int get_main_loops_per_second(); @@ -32,4 +38,8 @@ private: std::chrono::time_point m_main_loops_timestamp; std::chrono::time_point m_active_sensing_timestamp; + + uint64_t m_midi_timestamp; + std::deque> m_midi_monitor; }; + -- cgit v1.2.3