summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-12 13:18:41 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-12 13:18:41 +0100
commit2ca83ef4a185d3cd6459a68c1d7bc959f90e8065 (patch)
tree923b2aa78087bdb1e54e2aeeda18bb910af3ebe5
parent33464a1eb6a95d5671ca0246169061868aef3bbe (diff)
Fix midi note monitor
-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) {