]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/shorthands.ly
Imported Upstream version 2.18.0
[lilypond.git] / input / regression / shorthands.ly
diff --git a/input/regression/shorthands.ly b/input/regression/shorthands.ly
new file mode 100644 (file)
index 0000000..e1a7af5
--- /dev/null
@@ -0,0 +1,28 @@
+\version "2.17.25"
+
+\header {
+
+texidoc = "A number of shorthands like @code{(}, @code{)}, @code{|},
+@code{[}, @code{]}, @code{~}, @code{\\(}, @code{\\)} and others can be
+redefined like normal commands.  @file{ly/declarations-init.ly} serves
+as a regtest for a number of them.  This test just demonstrates
+replacing @code{(} and @code{)} with melismata commands which are
+@emph{not} articulations."
+
+}
+
+\layout { ragged-right = ##t }
+
+"\\{" = (
+"\\}" = )
+"(" = \melisma
+")" = \melismaEnd
+
+\new Staff <<
+  \relative c' {
+    c8 \{ d e f \} % slurred
+    g ( a b c ) % no slur, but with melisma
+    c,1 \bar "|."
+   }
+   \addlyrics { Li -- ly -- pond. }
+>>