]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/aligning-syllables-with-melisma.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / aligning-syllables-with-melisma.ly
diff --git a/Documentation/snippets/aligning-syllables-with-melisma.ly b/Documentation/snippets/aligning-syllables-with-melisma.ly
new file mode 100644 (file)
index 0000000..7acef57
--- /dev/null
@@ -0,0 +1,42 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.16.0"
+
+\header {
+  lsrtags = "text, vocal-music"
+
+  texidoc = "
+By default, lyrics syllables that start a melisma are left aligned on
+their note.  The alignment can be altered using the
+@code{lyricMelismaAlignment} property.
+
+"
+  doctitle = "Aligning syllables with melisma"
+} % begin verbatim
+
+\score {
+  <<
+    \new Staff {
+      \relative c''
+      \new Voice = "vocal" {
+        c d~^\markup default  d e
+        c d~^\markup "right aligned" d e
+        c d~^\markup "center aligned" d e
+        c d~^\markup "reset to default" d e
+      }
+    }
+    \new Lyrics \lyricsto "vocal" \lyricmode {
+      word word word
+      \set lyricMelismaAlignment = #RIGHT
+      word word word
+      \set lyricMelismaAlignment = #CENTER
+      word word word
+      \unset lyricMelismaAlignment
+      word word word
+    }
+  >>
+}