From 33464a1eb6a95d5671ca0246169061868aef3bbe Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Jan 2025 13:05:43 +0100 Subject: Age out midi notes in UI --- UI.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'UI.h') diff --git a/UI.h b/UI.h index bbc5a7d..d686110 100644 --- a/UI.h +++ b/UI.h @@ -60,6 +60,12 @@ public: m_checkpoint_timestamp = clock_type::now(); } + T& update() + { + m_checkpoint_timestamp = clock_type::now(); + return m_value; + } + private: const std::chrono::milliseconds m_timeout; std::chrono::time_point m_checkpoint_timestamp{}; @@ -104,7 +110,7 @@ private: std::chrono::time_point m_active_sensing_timestamp; uint64_t m_midi_timestamp; - std::deque> m_midi_monitor; + AgeOutValue>> m_midi_monitor; AgeOutValue m_note_bpm; AgeOutValue m_clock_bpm; -- cgit v1.2.3