]> git.donarmstrong.com Git - lilypond.git/blob - input/test/tablature.ly
062c966612cec5aae758605848492272754a4c49
[lilypond.git] / input / test / tablature.ly
1 \version "2.1.26"
2
3 \header{ texidoc = "@cindex Tabulature
4 Tablature is internally done by overriding the note-head formatting function
5 and let it act on a 6-line staff. A special engraver takes then care of 
6 choosing the fret and converting the pitch to a number. 
7
8 Thus, by providing the fret numbers, the same music can be generated both 
9 for a normal and tabulature staffs. By default, the fret is the smallest 
10 possible, according to @code{minimumFret}.
11
12 "
13 }
14
15 partition = \notes {
16     \key e \major
17     e8\5 fis\5 gis\5 a\5 b\5 cis'\5 dis'\5 e'\5
18     e8\4 fis\4 gis\4 a\4 b\4 cis'\4 dis'\4 e'\4
19     e8 fis gis a b cis' dis' e'
20     \set Score.minimumFret = #5
21     e8 fis gis a b cis' dis' e'
22 }
23
24 \score {
25   \context StaffGroup <<
26     \context Staff <<
27         \clef "G_8"
28         \partition
29     >>
30     \context TabStaff <<
31         \partition
32     >>
33   >>
34 }
35