From 7c40af4b4950a69e67c26ebb3c5568cbfbc3dda9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 5 Jan 2025 23:26:47 +0100 Subject: Improve UI --- PCM.cpp | 2 +- UI.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PCM.cpp b/PCM.cpp index c0bc5dc..b8510b5 100644 --- a/PCM.cpp +++ b/PCM.cpp @@ -74,7 +74,7 @@ void PCM::click(std::chrono::duration offset) m_phase = - click_latency_frames + delay + offset_frames; if (m_phase > 0) { - log_cout << fmt::format("phase = {}", m_phase) << std::endl; + log_cout << fmt::format("Warning: Click missed: Phase = {}", m_phase) << std::endl; } } diff --git a/UI.cpp b/UI.cpp index a3501e4..5d304b0 100644 --- a/UI.cpp +++ b/UI.cpp @@ -166,15 +166,15 @@ void UI::draw() std::cout << fmt::format(" MIDI Timestamp: {}", m_midi_timestamp) << std::endl; std::cout << " MIDI Active Sensing: " << fmt::format(value_color, "{}", active_sensing_names[active_sensing_detected]) << std::endl; std::cout << fmt::format(" MIDI Events/s: {}", midi_events_per_second) << std::endl; - std::cout << fmt::format(" MIDI Clock: {:3} BPM", m_clock_bpm) << std::endl; std::cout << fmt::format(" MIDI Click: {:3} BPM", m_note_bpm) << std::endl; + std::cout << fmt::format(" MIDI Clock: {:3} BPM", m_clock_bpm) << std::endl; std::cout << fmt::format(" Internal: {:3} BPM", internal_bpm) << std::endl; std::cout << fmt::format(" Main loops/s: {}", main_loops_per_second) << std::endl; std::cout << std::endl; std::cout << "Log:" << std::endl; - std::cout << log_cout.get_log() << std::endl; + std::cout << log_cout.get_log(); } void UI::handle_input() -- cgit v1.2.3