13
0

Fix wrong note number offset

This commit is contained in:
Térence Clastres 2018-08-09 19:30:29 +02:00
parent ef2abc35b9
commit 24e4ba399c

View File

@ -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;