diff options
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(); |