Skip to content

Commit

Permalink
fix: added 9 string guitars to gtp import (musescore#25877)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekirin authored Dec 18, 2024
1 parent 6dc9626 commit 1d73047
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/importexport/guitarpro/internal/importgtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2853,10 +2853,11 @@ static void createLinkedTabs(MasterScore* score)
StaffTypes::TAB_5SIMPLE,
StaffTypes::TAB_6SIMPLE,
StaffTypes::TAB_7SIMPLE,
StaffTypes::TAB_8SIMPLE
StaffTypes::TAB_8SIMPLE,
StaffTypes::TAB_9SIMPLE,
};

size_t index = (lines >= 4 && lines <= 8) ? lines - 4 : 2;
size_t index = (lines >= 4 && lines <= 9) ? lines - 4 : 2;

dstStaff->setStaffType(fr, *StaffType::preset(types.at(index)));
dstStaff->setLines(fr, static_cast<int>(lines));
Expand Down

0 comments on commit 1d73047

Please sign in to comment.