summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--UI.cpp2
1 files changed, 1 insertions, 1 deletions
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) {