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