summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-04 10:25:25 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-04 10:25:25 +0100
commitaaafcea7e26791acbf5b9612e3fb396edcdfcc8f (patch)
tree63131edf7b2eafe404a01e7ae01e2680d5f1b1e8 /main.cpp
parent9351c6d9812523b0b8027f2b2e0de54c27004bc2 (diff)
Fill UI
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 5e078d9..337fa96 100644
--- a/main.cpp
+++ b/main.cpp
@@ -59,7 +59,7 @@ int main(void)
MIDI midi;
PCM pcm;
- UI ui;
+ UI ui(config);
pcm.write();
@@ -81,6 +81,7 @@ int main(void)
timer_500ms.elapsed.connect([&](){ui.draw();});
signal_count_loops.connect([&](){ui.count_main_loops();});
timer_10min.elapsed.connect([&](){config.persist();});
+ midi.signal_note.connect([&](int channel, int note, uint64_t timestamp){ui.slot_midi_note(channel, note, timestamp);});
midi.flush();