From 2e793141e5434043205763c70d3a597cf2d78eeb Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 17:51:59 +0100 Subject: Separate clocks --- ClockClick.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ClockClick.h (limited to 'ClockClick.h') diff --git a/ClockClick.h b/ClockClick.h new file mode 100644 index 0000000..2c0ef19 --- /dev/null +++ b/ClockClick.h @@ -0,0 +1,27 @@ +#pragma once + +#include + +#include "config.h" +#include "BPMDetect.h" + +// Generated from MIDI Clock +class ClockClick +{ +public: + ClockClick(); + + // signals + boost::signals2::signal signal_click; + boost::signals2::signal signal_bpm; + + // slots + void receive_clock(); + +private: + const int m_divider; + int m_count; + + BPMDetect m_detect; +}; + -- cgit v1.2.3