tablature and banjo 5th string problems
5 string banjos have a 5th string that starts at the 5th fret. So the valid fret numbers for the 5th string are 0, 6, 7...22. You can never have fret numbers 1..5 because it is impossible.
There needs to be some checks in the code to handle this. I looked for a option to set but couldn't find one.
So in the display part of the code, Musescore needs to do something like this:
int fretNumber = get the fret number from somewhere;
int stringNumber = get the string number from somewhere;
if (isBanjo && stringNumber == 5 && fretNumber > 0)
displayFret(fretNumber + 5);
Also the code that reads in notes from tablature has to do the reverse. i.e. convert a fretnumber of 7 to 2 internally.
Lilypond handles this with this option:
\set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
I guess this would be equivalent to a Musescore staff property. However, this really isn't an option. There is never a case where you would not have this option ON in banjo tab.
For example, if you are playing far down the neck, lets say around the 15th fret. Today (V2.0.2) you would have to write fret 10 to mean fret 15 on the 5th string and the user interface lets you enter frets 1..5