@warning{String numbers @strong{must} be defined inside a chord
construct even if there is only a single note.}
-@lilypond[verbatim,quote,relative=2]
+@lilypond[verbatim,quote,relative=1]
<c\5>4 <e\4> <g\3>2
<c,\5 e\4 g\3>1
@end lilypond
-Although fingering is covered in detail elsewhere, it is worth noting
-here how fingerings and string indications behave together, since
-guitar music often incorporates both at once. The usual convention
-is to place the fingering closest to the note, then the string
-indication outside the fingering. This is controlled by the order in
-which the two items appear:
+Although @ref{Fingering instructions} are covered in detail elsewhere,
+it is worth noting here how fingerings and string indications behave
+together, since guitar music often incorporates both at once. The
+usual convention is to place the fingering closest to the note, then
+the string indication outside the fingering. This is controlled by
+the order in which the two items appear:
@lilypond[verbatim,quote,relative=2]
<g\3-0>2
@seealso
-Internals Reference: @rinternals{StringNumber},
-@c @lsr{guitar/,string-number.ly}.
+Internals Reference: @rinternals{StringNumber}, @rinternals{Fingering}
+@c @lsr{Guitar/,string-number.ly}. @lsr(Editorial annotations/,Adding-fingerings-to-a-score.ly}
@node Default tablatures
followed by a number, e.g., @code{c4\3} for a C quarter on the third
string. By default, string 1 is the highest one, and the tuning
defaults to the standard guitar tuning (with 6 strings). The notes
-are printed as tablature, by using @rinternals{TabStaff} and
-@rinternals{TabVoice} contexts
+are printed as tablature, by using @code{TabStaff} and
+@code{TabVoice} contexts
@lilypond[quote,ragged-right,fragment,verbatim]
\new TabStaff {
@funindex minimumFret
@cindex fret
-When no string is specified, the first string that does not give a
-fret number less than @code{minimumFret} is selected. The default
-value for @code{minimumFret} is 0
+When no string is specified for a note, the note is assigned to the lowest string
+that can generate the note with a fret number greater than or equal to
+@code{minimumFret} is selected. The default value for @code{minimumFret} is 0.
-@example
-e16 fis gis a b4
-\set TabStaff.minimumFret = #8
-e16 fis gis a b4
-@end example
-@lilypond[quote,ragged-right]
-frag = {
- \key e \major
- e16 fis gis a b4
- \set TabStaff.minimumFret = #8
- e16 fis gis a b4
-}
- \new StaffGroup <<
- \new Staff { \clef "G_8" \frag }
- \new TabStaff { \frag }
- >>
+@lilypond[quote,ragged-right,verbatim]
+\new StaffGroup <<
+ \new Staff \relative c' {
+ c16 d e f g4
+ c,16 d e f g4
+ }
+ \new TabStaff \relative c {
+ c16 d e f g4
+ \set TabStaff.minimumFret = #5
+ c,16 d e f g4
+ }
+>>
@end lilypond
-
@snippets
To print tablatures with stems down and horizontal beams,
@knownissues
Chords are not handled in a special way, and hence the automatic
-string selector may easily select the same string to two notes in a
+string selector may easily select the same string for two notes in a
chord.
In order to handle @code{\partcombine}, a @code{TabStaff} must use
@code{<@var{note}-\rightHandFinger @var{finger} >}.
The right-hand fingering indication must occur within a @code{<>} chord
construct for it to be printed in the score, even if it is a single note.
-There must be a hyphen after the note and the space
-before the closing @code{>}.
+There must be a hyphen after the note and a space before the closing @code{>}.
@lilypond[quote,ragged-right,fragment,verbatim]
}
@end lilypond
-for brevity, you can abbreviate @code{\rightHandFinger} to something
+For convenience, you can abbreviate @code{\rightHandFinger} to something
short, for example @code{RH},
@example
+