From 24e4ba399c7dab4a483b7833fb6e68a10bdba8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=A9rence=20Clastres?= Date: Thu, 9 Aug 2018 19:30:29 +0200 Subject: [PATCH] Fix wrong note number offset --- libs/surfaces/launch_control_xl/controllers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc index f14fd00718..75d0a1ab63 100644 --- a/libs/surfaces/launch_control_xl/controllers.cc +++ b/libs/surfaces/launch_control_xl/controllers.cc @@ -263,11 +263,11 @@ LaunchControlXL::TrackButton* LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle) { NNNoteButtonMap::iterator b; - if ( n < 5) { + if ( n < 4) { b = nn_note_button_map.find (first + n); } else { - b = nn_note_button_map.find (middle + n - 5); + b = nn_note_button_map.find (middle + n - 4); } TrackButton* button = 0;