diff options
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; }; + |