]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/shorthands.ly
Imported Upstream version 2.19.45
[lilypond.git] / input / regression / shorthands.ly
1 \version "2.19.21"
2
3 \header {
4
5 texidoc = "A number of shorthands like @code{(}, @code{)}, @code{|},
6 @code{[}, @code{]}, @code{~}, @code{\\(}, @code{\\)} and others can be
7 redefined like normal commands.  @file{ly/declarations-init.ly} serves
8 as a regtest for a number of them.  This test just demonstrates
9 replacing @code{(} and @code{)} with melismata commands which are
10 @emph{not} articulations."
11
12 }
13
14 \layout { ragged-right = ##t }
15
16 "\\{" = (
17 "\\}" = )
18 "(" = \melisma
19 ")" = \melismaEnd
20
21 \new Staff <<
22   \relative {
23     c'8 \{ d e f \} % slurred
24     g ( a b c ) % no slur, but with melisma
25     c,1 \bar "|."
26    }
27    \addlyrics { Li -- ly -- pond. }
28 >>