diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-04 10:25:25 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-04 10:25:25 +0100 |
commit | aaafcea7e26791acbf5b9612e3fb396edcdfcc8f (patch) | |
tree | 63131edf7b2eafe404a01e7ae01e2680d5f1b1e8 /UI.h | |
parent | 9351c6d9812523b0b8027f2b2e0de54c27004bc2 (diff) |
Fill UI
Diffstat (limited to 'UI.h')
-rw-r--r-- | UI.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,6 +1,10 @@ #pragma once +#include "config.h" + #include <chrono> +#include <deque> +#include <utility> #include <boost/signals2.hpp> @@ -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<clock_type> m_main_loops_timestamp; std::chrono::time_point<clock_type> m_active_sensing_timestamp; + + uint64_t m_midi_timestamp; + std::deque<std::pair<int,int>> m_midi_monitor; }; + |