From 2ca83ef4a185d3cd6459a68c1d7bc959f90e8065 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 12 Jan 2025 13:18:41 +0100 Subject: Fix midi note monitor --- UI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UI.cpp') diff --git a/UI.cpp b/UI.cpp index 8aefa9d..e4428bf 100644 --- a/UI.cpp +++ b/UI.cpp @@ -261,7 +261,7 @@ void UI::slot_midi_note(int channel, int note, uint64_t timestamp) { m_midi_timestamp = timestamp; - auto midi_monitor = m_midi_monitor.update(); + auto& midi_monitor = m_midi_monitor.update(); midi_monitor.emplace_front(channel, note); while (midi_monitor.size() > midi_monitor_max_size) { -- cgit v1.2.3