summaryrefslogtreecommitdiffhomepage
path: root/UI.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-04 10:25:25 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-04 10:25:25 +0100
commitaaafcea7e26791acbf5b9612e3fb396edcdfcc8f (patch)
tree63131edf7b2eafe404a01e7ae01e2680d5f1b1e8 /UI.h
parent9351c6d9812523b0b8027f2b2e0de54c27004bc2 (diff)
Fill UI
Diffstat (limited to 'UI.h')
-rw-r--r--UI.h12
1 files changed, 11 insertions, 1 deletions
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 <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;
};
+