summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
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();