From aaafcea7e26791acbf5b9612e3fb396edcdfcc8f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 10:25:25 +0100 Subject: Fill UI --- config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 07d3819..5d2a1d0 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,6 @@ #pragma once +#include #include // Defaults @@ -12,6 +13,7 @@ const int log_lines = 10; 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 class Config { @@ -19,6 +21,12 @@ public: Config(); ~Config(); + // signals + boost::signals2::signal signal_mode; + boost::signals2::signal signal_channel; + boost::signals2::signal signal_note; + boost::signals2::signal signal_bpm; + int get_midi_channel(); void set_midi_channel(int channel); @@ -28,6 +36,9 @@ public: int get_bpm(); void set_bpm(int bpm); + int get_mode(); + void set_mode(int mode); + void recover(); void persist(); @@ -35,4 +46,5 @@ private: int m_midi_channel; int m_midi_note; int m_bpm; + int m_mode; }; -- cgit v1.2.3