]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-align.ly
* lily/beam-engraver.cc: move new-beam-event to beam-event
[lilypond.git] / input / regression / lyric-align.ly
1
2 \version "1.9.1"
3 \header{
4   texidoc="
5
6   Lyric alignment is adjustable both in terms of alignment between
7   stanzas and on notehead.
8
9   If the property alignment is not set, there is automatic
10   determination of alignment type based on punctuation (, see
11   lyric-phrasing.ly).
12
13 "
14 }
15
16 %\paper { raggedright = ##t}
17 \score {
18 < \context Voice = "v" \notes  \relative c'' {
19       \property Staff.automaticMelismata = ##t
20       \cadenzaOn
21       a\breve  \bar "||" a1 \bar "|"  a \bar "|"  a \bar "||" \break a \bar "|" a \bar "|" a  \bar "|" a \bar "||" \break a \bar "|" a \bar "|."
22     }
23     \context Lyrics <
24       \context LyricsVoice = "v-1" \lyrics {
25 %        \property LyricsVoice . stanza = "1:"
26         \property Lyrics . LyricText \override #'ignore-length-mismatch = ##t
27         \property Lyrics . LyricText \override #'alignment = #-1
28         \property Lyrics . LyricText \override #'begin-alignment = #8
29
30         "Particularly useful for reciting notes  "\breve
31         left1
32
33         \property Lyrics . LyricText \override #'alignment = #0
34         centered
35
36         \property Lyrics . LyricText \override #'alignment = #1        
37
38         right
39
40         \property Lyrics . LyricText \override #'alignment = #-1 
41         \property Lyrics . LyricText \override #'begin-alignment = #2 
42
43         left_half_way
44
45         \property Lyrics . LyricText \override #'begin-alignment = #4 
46
47         left_one_quarter
48
49         \property Lyrics . LyricText \override #'begin-alignment = #10
50
51         left_one_tenth
52
53         \property Lyrics . LyricText \override #'begin-alignment = #1
54
55         left_one_whole
56
57         \property Lyrics . LyricText \override #'ignore-length-mismatch = ##f
58         \property Lyrics . LyricText \override #'begin-alignment = #4
59
60         Very_short_lyrics_remain_in_touch_with_their_note
61
62         \property Lyrics . LyricText \override #'alignment = #1
63         \property Lyrics . LyricText \override #'end-alignment = #1.1
64         \property Lyrics . LyricText \override #'ignore-length-mismatch = ##t
65
66
67         Unless_ignore-length-mismatch_is_true
68
69       }
70       \context LyricsVoice = "v-2" \lyrics {
71 %        \property LyricsVoice . stanza = "2:"
72         " with many syllables under them."\breve
73           l1 c r1 l
74           l1 l x x x
75
76                                 % note' true'
77                                 %% ? what are the last 2 for? 
78       }
79    >
80    >
81 }
82