diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-03 20:17:26 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-03 20:17:26 +0100 |
commit | 6bf4770e950299da92952f2965cccf86a903fc9f (patch) | |
tree | 9854c706f0fc8104f1f85fe0f6ff58b56661a5a6 /config.h | |
parent | 81ef3f08215a62d469c49762ccd492cb806150c4 (diff) |
Added config
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -2,11 +2,32 @@ #include <alsa/asoundlib.h> -// Config +// Defaults static const int CLICK_NOTE = 37; static const int CLICK_CHANNEL = 4; extern const char *device; // playback device const snd_pcm_sframes_t nframes = 1024; // ~1/44th sec buffer size const unsigned int f_sample = 44100; const int log_lines = 10; +const int default_bpm = 120; +class Config +{ +public: + Config(); + ~Config(); + + int get_midi_channel(); + void set_midi_channel(int channel); + + int get_midi_note(); + void set_midi_note(int note); + + int get_bpm(); + void set_bpm(int bpm); + +private: + int m_midi_channel; + int m_midi_note; + int m_bpm; +}; |