diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-04 10:25:25 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-04 10:25:25 +0100 |
commit | aaafcea7e26791acbf5b9612e3fb396edcdfcc8f (patch) | |
tree | 63131edf7b2eafe404a01e7ae01e2680d5f1b1e8 /main.cpp | |
parent | 9351c6d9812523b0b8027f2b2e0de54c27004bc2 (diff) |
Fill UI
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |