summaryrefslogtreecommitdiffhomepage
path: root/config.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-04 13:48:34 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-04 13:48:34 +0100
commit39ec820c931b07bc0cec98add36f106a5965e137 (patch)
treed1f2f0feb07ff325f363e767181ffaeeab94e20b /config.h
parentb2c35cdf69a9084806ac7930cf4475980d596cf6 (diff)
BPM detect
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h
index 5d2a1d0..e52e9f5 100644
--- a/config.h
+++ b/config.h
@@ -14,6 +14,7 @@ const int default_bpm = 120;
const int pcm_latency_us = 100000;
const int click_latency_frames = 10000;
const int default_mode = 0; // 0 = note, 1 = clock, 2 = internal
+const int default_output = 1; // 0 = off, 1 = on
class Config
{
@@ -26,6 +27,7 @@ public:
boost::signals2::signal<void(int)> signal_channel;
boost::signals2::signal<void(int)> signal_note;
boost::signals2::signal<void(int)> signal_bpm;
+ boost::signals2::signal<void(int)> signal_output;
int get_midi_channel();
void set_midi_channel(int channel);
@@ -39,6 +41,9 @@ public:
int get_mode();
void set_mode(int mode);
+ int get_output();
+ void set_output(int output);
+
void recover();
void persist();
@@ -47,4 +52,5 @@ private:
int m_midi_note;
int m_bpm;
int m_mode;
+ int m_output;
};