summaryrefslogtreecommitdiffhomepage
path: root/ClockClick.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-04 17:51:59 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-04 17:51:59 +0100
commit2e793141e5434043205763c70d3a597cf2d78eeb (patch)
tree8b6a14273fcc98ff7bf118cf63574257a637547f /ClockClick.h
parent624a69994d89c71b1ce59dd3b2117a235400be2f (diff)
Separate clocks
Diffstat (limited to 'ClockClick.h')
-rw-r--r--ClockClick.h27
1 files changed, 27 insertions, 0 deletions
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 <boost/signals2.hpp>
+
+#include "config.h"
+#include "BPMDetect.h"
+
+// Generated from MIDI Clock
+class ClockClick
+{
+public:
+ ClockClick();
+
+ // signals
+ boost::signals2::signal<void()> signal_click;
+ boost::signals2::signal<void(int)> signal_bpm;
+
+ // slots
+ void receive_clock();
+
+private:
+ const int m_divider;
+ int m_count;
+
+ BPMDetect m_detect;
+};
+