mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Fix wrong note number offset
This commit is contained in:
parent
ef2abc35b9
commit
24e4ba399c
1 changed files with 2 additions and 2 deletions
|
|
@ -263,11 +263,11 @@ LaunchControlXL::TrackButton*
|
||||||
LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle)
|
LaunchControlXL::track_button_by_number(uint8_t n, uint8_t first, uint8_t middle)
|
||||||
{
|
{
|
||||||
NNNoteButtonMap::iterator b;
|
NNNoteButtonMap::iterator b;
|
||||||
if ( n < 5) {
|
if ( n < 4) {
|
||||||
b = nn_note_button_map.find (first + n);
|
b = nn_note_button_map.find (first + n);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
b = nn_note_button_map.find (middle + n - 5);
|
b = nn_note_button_map.find (middle + n - 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
TrackButton* button = 0;
|
TrackButton* button = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue