]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/fret-diagrams-opposing-landscape.ly
Merge branch 'stable/2.16' into staging
[lilypond.git] / input / regression / fret-diagrams-opposing-landscape.ly
1 \version "2.16.0"
2
3 \header {
4   texidoc="
5 Fret diagrams can be presented in landscape mode.
6
7 "
8 }
9
10 \layout { ragged-right = ##t }
11
12 <<
13   \chords {
14     c1 |
15     c1 |
16     c1 |
17     c1
18   }
19
20   \new Voice {
21     \textLengthOn
22     \override TextScript #'fret-diagram-details
23        #'orientation = #'opposing-landscape
24
25      %% C major for guitar, regular style
26     c'1 ^\markup {
27             \fret-diagram #"6-x;5-3-3;4-2-2;3-o;2-1;1-o;"}
28
29      %% C major for guitar with barre on fret 3, regular style
30     \once \override TextScript #'fret-diagram-details 
31         #'label-dir = #LEFT
32     \once \override TextScript #'fret-diagram-details 
33         #'barre-type = #'straight
34     c' ^\markup {
35             \fret-diagram 
36                #"f:1;s:1.2;6-x;c:5-1-3;5-3-1;4-5-2;3-5-3;2-5-4;1-3-1;"}
37
38      %% C major for guitar with two barres, regular style
39
40     c' ^\markup {
41             \fret-diagram 
42               #"f:2;h:5;6-x;c:5-1-3;5-3-1;c:4-2-5;4-5-4;3-5-4;2-5-4;1-3-1;"}
43    
44      %% C major for guitar, with capo 
45     c' ^\markup {
46             \fret-diagram-verbose #'((mute 6)
47                                      (capo 3)
48                                      (place-fret 4 5 1)
49                                      (place-fret 3 5 2)
50                                      (place-fret 2 5 3))}
51
52  }
53 >>
54
55