From 2e793141e5434043205763c70d3a597cf2d78eeb Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 17:51:59 +0100 Subject: Separate clocks --- NoteClick.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 NoteClick.h (limited to 'NoteClick.h') diff --git a/NoteClick.h b/NoteClick.h new file mode 100644 index 0000000..754329f --- /dev/null +++ b/NoteClick.h @@ -0,0 +1,27 @@ +#pragma once + +#include + +#include "config.h" +#include "BPMDetect.h" + +// Generated from MIDI notes +// Configured via channel and note to listen to +class NoteClick +{ +public: + NoteClick(Config& config); + + // signals + boost::signals2::signal signal_click; + boost::signals2::signal signal_bpm; + + // slots + void receive_note(int channel, int note, uint64_t timestamp); + +private: + Config& m_config; + + BPMDetect m_detect; +}; + -- cgit v1.2.3