]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/fret-diagrams-landscape.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / fret-diagrams-landscape.ly
1 \version "2.17.6"
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.orientation = #'landscape
23
24      %% C major for guitar, regular style
25     c'1 ^\markup {
26             \fret-diagram #"6-x;5-3-3;4-2-2;3-o;2-1;1-o;"}
27
28      %% C major for guitar with barre on fret 3, regular style
29     \once \override TextScript.fret-diagram-details.label-dir = #LEFT
30     \once \override TextScript.fret-diagram-details.barre-type = #'straight
31     c' ^\markup {
32             \fret-diagram 
33                #"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;"}
34
35      %% C major for guitar with two barres, regular style
36
37     c' ^\markup {
38             \fret-diagram 
39               #"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;"}
40    
41      %% C major for guitar, with capo 
42     c' ^\markup {
43             \fret-diagram-verbose #'((mute 6)
44                                      (capo 3)
45                                      (place-fret 4 5 1)
46                                      (place-fret 3 5 2)
47                                      (place-fret 2 5 3))}
48
49  }
50 >>
51
52