]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/tablature.ly
* lily/paper-book.cc (output): load framework module
[lilypond.git] / input / test / tablature.ly
index 6e98dbaf8e08242cdc12022bfb3946ac3abc9924..1c5d6fafbd6d1cfb25614c782c59f834338952a9 100644 (file)
@@ -1,33 +1,35 @@
-\version "1.7.6"
+\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 {
     \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
-    >
-  >
+    >>
+  >>
 }
-%% new-chords-done %%
+