From 22cdfccb11679d6ae241653c9cb92c32f4fc1fde Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Jan 2025 21:02:11 +0100 Subject: Integrate ClickStream into PCM --- main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index ca8ec91..a58f7cd 100644 --- a/main.cpp +++ b/main.cpp @@ -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 = 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(); -- cgit v1.2.3