summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-05 23:26:47 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-05 23:26:47 +0100
commit7c40af4b4950a69e67c26ebb3c5568cbfbc3dda9 (patch)
treea55284878ab49911763ff2d1ca2f0c6ad238b06c
parent03b28f03c38b35bcc1bbd1ec28a7be17affd3d28 (diff)
Improve UI
-rw-r--r--PCM.cpp2
-rw-r--r--UI.cpp4
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<double> 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()