From aaafcea7e26791acbf5b9612e3fb396edcdfcc8f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Jan 2025 10:25:25 +0100 Subject: Fill UI --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.cpp') 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(); -- cgit v1.2.3