]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/tablature.ly
*** empty log message ***
[lilypond.git] / input / test / tablature.ly
index 96a8d78d17662371a6a2dcb379018fd6accd2749..347359e7356b2b1cc0a9d785882f10f5850d9bcc 100644 (file)
@@ -1,31 +1,35 @@
-\version "1.7.18"
+\version "2.3.4"
 
 \header{ texidoc = "@cindex Tabulature
-A sample tablature, with both normal staff and tab.
+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. 
 
-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. "
+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}.
+
+"
 }
 
-partition = \notes {
+partition =  {
     \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'
-    \property Score.minimumFret = #5
+    \set Score.minimumFret = #5
     e8 fis gis a b cis' dis' e'
 }
 
 \score {
-  \context StaffGroup <
-    \context Staff <
+  \context StaffGroup <<
+    \context Staff <<
        \clef "G_8"
        \partition
-    >
-    \context TabStaff <
+    >>
+    \context TabStaff <<
        \partition
-    >
-  >
+    >>
+  >>
 }