diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-03 21:02:11 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-03 21:02:11 +0100 |
commit | 22cdfccb11679d6ae241653c9cb92c32f4fc1fde (patch) | |
tree | 16b0f8401e22c99e8d953eea14ac57a2fe50c67a /main.cpp | |
parent | 6bf4770e950299da92952f2965cccf86a903fc9f (diff) |
Integrate ClickStream into PCM
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(); |