diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,4 @@ #include "Click.h" -#include "ClickStream.h" #include "MIDI.h" #include "PCM.h" #include "Timer.h" @@ -48,8 +47,7 @@ int main(void) std::shared_ptr<Click> click = note_click; MIDI midi; - ClickStream stream; - PCM pcm{stream}; + PCM pcm; UI ui; pcm.write(); @@ -62,10 +60,12 @@ int main(void) // Signal-Slot Connections: midi.signal_note.connect([&](int channel, int note){note_click->receive_note(channel, note);}); - note_click->signal_click.connect([&](){stream.click();}); + note_click->signal_click.connect([&](){pcm.click();}); timer_500ms.elapsed.connect([&](){ui.draw();}); signal_count_loops.connect([&](){ui.count_main_loops();}); + midi.flush(); + while (true) { debug_cout << "Main loop entered." << std::endl; signal_count_loops(); |