-\version "1.3.146"
+\version "2.2.0"
-%{
+\header{ texidoc = "@cindex Tabulature
+Tablature is internally done by overriding the note-head formatting function
+and let it act on a 6-line staff. A special engraver takes then care of
+choosing the fret and converting the pitch to a number.
-A sample tablature, with both normal staff and tab.
+Thus, by providing the fret numbers, the same music can be generated both
+for a normal and tabulature staffs. By default, the fret is the smallest
+possible, according to @code{minimumFret}.
-Tablature is done by overriding the note-head formatting function, and
-putting it on a 6-line staff. A special engraver takes care of going
-from string-number + pitch to number.
-
-%}
+"
+}
partition = \notes {
- a,4-2 c'-5 a-4 e'-6
- e-3 c'-5 a-4 e'-6
- }
+ \key e \major
+ e8\5 fis\5 gis\5 a\5 b\5 cis'\5 dis'\5 e'\5
+ e8\4 fis\4 gis\4 a\4 b\4 cis'\4 dis'\4 e'\4
+ e8 fis gis a b cis' dis' e'
+ \set Score.minimumFret = #5
+ e8 fis gis a b cis' dis' e'
+}
\score {
- \context StaffGroup <
- \context Staff <
- % Hide fingering number (used for string number) for the "normal" staff
- \property Staff.Fingering \override #'transparent = ##t
-
- \partition
- >
- \context TabStaff <
- \partition
- >
- >
+ \context StaffGroup <<
+ \context Staff <<
+ \clef "G_8"
+ \partition
+ >>
+ \context TabStaff <<
+ \partition
+ >>
+ >>
}
+