diff options
Diffstat (limited to 'UI.h')
-rw-r--r-- | UI.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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<clock_type> m_checkpoint_timestamp{}; @@ -104,7 +110,7 @@ private: std::chrono::time_point<clock_type> m_active_sensing_timestamp; uint64_t m_midi_timestamp; - std::deque<std::pair<int,int>> m_midi_monitor; + AgeOutValue<std::deque<std::pair<int,int>>> m_midi_monitor; AgeOutValue<int> m_note_bpm; AgeOutValue<int> m_clock_bpm; |