]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/expressive.itely
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / notation / expressive.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  For details, see the Contributors'
7     Guide, node Updating translation committishes..
8 @end ignore
9
10 @c \version "2.19.21"
11
12 @node Expressive marks
13 @section Expressive marks
14
15 @lilypondfile[quote]{expressive-headword.ly}
16
17 This section lists various expressive marks that can be
18 created in a score.
19
20 @menu
21 * Expressive marks attached to notes::
22 * Expressive marks as curves::
23 * Expressive marks as lines::
24 @end menu
25
26
27 @node Expressive marks attached to notes
28 @subsection Expressive marks attached to notes
29
30 This section explains how to create expressive marks that are
31 attached to notes: articulations, ornamentations, and dynamics.
32 Methods to create new dynamic markings are also discussed.
33
34 @menu
35 * Articulations and ornamentations::
36 * Dynamics::
37 * New dynamic marks::
38 @end menu
39
40 @node Articulations and ornamentations
41 @unnumberedsubsubsec Articulations and ornamentations
42
43 @cindex articulations
44 @cindex ornamentation
45 @cindex scripts
46 @cindex ornaments
47 @cindex espressivo
48 @cindex fermata
49 @cindex upbow
50 @cindex downbow
51 @cindex foot marks
52 @cindex organ pedal marks
53 @cindex pedal marks, organ
54 @cindex turn
55 @cindex open
56 @cindex stopped
57 @cindex flageolet
58 @cindex reverseturn
59 @cindex trill
60 @cindex prall
61 @cindex mordent
62 @cindex prallprall
63 @cindex prallmordent
64 @cindex prall, up
65 @cindex prall, down
66 @cindex mordent, up
67 @cindex mordent, down
68 @cindex thumb marking
69 @cindex segno
70 @cindex coda
71 @cindex varcoda
72
73 @funindex \accent
74 @funindex \marcato
75 @funindex \staccatissimo
76 @funindex \espressivo
77 @funindex \staccato
78 @funindex \tenuto
79 @funindex \portato
80 @funindex \upbow
81 @funindex \downbow
82 @funindex \flageolet
83 @funindex \thumb
84 @funindex \lheel
85 @funindex \rheel
86 @funindex \ltoe
87 @funindex \rtoe
88 @funindex \open
89 @funindex \halfopen
90 @funindex \stopped
91 @funindex \snappizzicato
92 @funindex \turn
93 @funindex \reverseturn
94 @funindex \trill
95 @funindex \prall
96 @funindex \mordent
97 @funindex \prallprall
98 @funindex \prallmordent
99 @funindex \upprall
100 @funindex \downprall
101 @funindex \upmordent
102 @funindex \downmordent
103 @funindex \pralldown
104 @funindex \prallup
105 @funindex \lineprall
106 @funindex \signumcongruentiae
107 @funindex \shortfermata
108 @funindex \fermata
109 @funindex \longfermata
110 @funindex \verylongfermata
111 @funindex \fermataMarkup
112 @funindex \segno
113 @funindex \coda
114 @funindex \varcoda
115
116
117 @funindex -
118
119 A variety of symbols that denote articulations, ornamentations,
120 and other performance indications can be attached to a note using
121 this syntax:
122
123 @example
124 @var{note}\@var{name}
125 @end example
126
127 The possible values for @code{@var{name}} are listed in
128 @ref{List of articulations}.  For example:
129
130 @lilypond[verbatim,quote]
131 \relative {
132   c''4\staccato c\mordent b2\turn
133   c1\fermata
134 }
135 @end lilypond
136
137 @cindex marcato
138 @cindex tenuto
139 @cindex staccatissimo
140 @cindex accent
141 @cindex staccato
142 @cindex portato
143
144 Some of these articulations have shorthands for easier entry.
145 Shorthands are appended to the note name, and their syntax
146 consists of a dash @code{-} followed by a symbol signifying the
147 articulation.  Predefined shorthands exist for @notation{marcato},
148 @notation{stopped}, @notation{tenuto}, @notation{staccatissimo},
149 @notation{accent}, @notation{staccato}, and @notation{portato}.
150 Their corresponding output appears as follows:
151
152 @lilypond[verbatim,quote]
153 \relative {
154   c''4-^ c-+ c-- c-!
155   c4-> c-. c2-_
156 }
157 @end lilypond
158
159 The rules for the default placement of articulations are defined
160 in @file{scm/script.scm}.  Articulations and ornamentations
161 may be manually placed above or below the staff; see
162 @ref{Direction and placement}.
163
164 Articulations are @code{Script} objects.  Their properties are
165 described more fully in @rinternals{Script}.
166
167 Articulations can be attached to rests as well as notes but they
168 cannot be attached to multi-measure rests.  A special predefined
169 command, @code{\fermataMarkup}, is available for attaching a fermata
170 to a multi-measure rest (and only a multi-measure rest).  This
171 creates a @code{MultiMeasureRestText} object.
172
173 @lilypond[verbatim,quote,fragment]
174 \override Script.color = #red
175 \override MultiMeasureRestText.color = #blue
176 a'2\fermata r\fermata
177 R1\fermataMarkup
178 @end lilypond
179
180 In addition to articulations, text and markups can be attached to
181 notes.  See @ref{Text scripts}.
182
183 For more information about the ordering of Scripts and TextScripts that
184 are attached to the notes, see @rlearning{Placement of objects}.
185
186 @snippets
187
188 @lilypondfile[verbatim,quote,texidoc,doctitle]
189 {modifying-default-values-for-articulation-shorthand-notation.ly}
190
191 @lilypondfile[verbatim,quote,texidoc,doctitle]
192 {controlling-the-vertical-ordering-of-scripts.ly}
193
194 @lilypondfile[verbatim,quote,texidoc,doctitle]
195 {creating-a-delayed-turn.ly}
196
197 @seealso
198 Music Glossary:
199 @rglos{tenuto},
200 @rglos{accent},
201 @rglos{staccato},
202 @rglos{portato}.
203
204 Learning Manual:
205 @rlearning{Placement of objects}.
206
207 Notation Reference:
208 @ref{Text scripts},
209 @ref{Direction and placement},
210 @ref{List of articulations},
211 @ref{Trills}.
212
213 Installed Files:
214 @file{scm/script.scm}.
215
216 Snippets:
217 @rlsr{Expressive marks}.
218
219 Internals Reference:
220 @rinternals{Script},
221 @rinternals{TextScript}.
222
223
224 @node Dynamics
225 @unnumberedsubsubsec Dynamics
226
227 @cindex absolute dynamics
228 @cindex dynamics
229 @cindex dynamics, absolute
230
231 @funindex \ppppp
232 @funindex \pppp
233 @funindex \ppp
234 @funindex \pp
235 @funindex \p
236 @funindex \mp
237 @funindex \mf
238 @funindex \f
239 @funindex \ff
240 @funindex \fff
241 @funindex \ffff
242 @funindex \fffff
243 @funindex \fp
244 @funindex \sf
245 @funindex \sff
246 @funindex \sp
247 @funindex \spp
248 @funindex \sfz
249 @funindex \rfz
250
251 Absolute dynamic marks are specified using a command after a note,
252 such as @code{c4\ff}.  The available dynamic marks are
253 @code{\ppppp}, @code{\pppp}, @code{\ppp}, @code{\pp}, @code{\p},
254 @code{\mp}, @code{\mf}, @code{\f}, @code{\ff}, @code{\fff},
255 @code{\ffff}, @code{\fffff}, @code{\fp}, @code{\sf}, @code{\sff},
256 @code{\sp}, @code{\spp}, @code{\sfz}, and @code{\rfz}.  Dynamic
257 marks may be manually placed above or below the staff; see
258 @ref{Direction and placement}.
259
260 @lilypond[verbatim,quote]
261 \relative c'' {
262   c2\ppp c\mp
263   c2\rfz c^\mf
264   c2_\spp c^\ff
265 }
266 @end lilypond
267
268 @cindex hairpin
269 @cindex crescendo
270 @cindex decrescendo
271 @cindex diminuendo
272
273 @funindex \<
274 @funindex \>
275 @funindex \!
276 @funindex \cr
277 @funindex \decr
278
279 A @notation{crescendo} mark is started with @code{\<} and
280 terminated with @code{\!}, an absolute dynamic, or an additional
281 crescendo or decrescendo mark.  A @notation{decrescendo} mark is
282 started with @code{\>} and is also terminated with @code{\!}, an
283 absolute dynamic, or another crescendo or decrescendo mark.
284 @code{\cr} and @code{\decr} may be used instead of @code{\<} and
285 @code{\>}.  @notation{Hairpins} are engraved by default using this
286 notation.
287
288 @lilypond[verbatim,quote]
289 \relative c'' {
290   c2\< c\!
291   d2\< d\f
292   e2\< e\>
293   f2\> f\!
294   e2\> e\mp
295   d2\> d\>
296   c1\!
297 }
298 @end lilypond
299
300 A hairpin that is terminated with @code{\!} will end at the
301 right edge of the note that has the @code{\!} assigned to it.  In the
302 case where it is terminated with the start of another @notation{crescendo}
303 or @notation{decrescendo} mark, it will end at the centre of the note
304 that has the next @code{\<} or @code{\>} assigned to it.  The next
305 hairpin will then start at the right edge of the same note
306 instead of the usual left edge had it been terminated with @code{\!}
307 before.
308
309 @lilypond[verbatim,quote]
310 \relative {
311   c''1\< | c4 a c\< a | c4 a c\! a\< | c4 a c a\!
312 }
313 @end lilypond
314
315 Hairpins that are terminated with absolute dynamic marks instead of
316 @code{\!} will also be engraved in a similar way.  However, the length
317 of the absolute dynamic itself can alter where the preceding hairpin
318 ends.
319
320 @lilypond[verbatim,quote]
321 \relative {
322   c''1\< | c4 a c\mf a | c1\< | c4 a c\ffff a
323 }
324 @end lilypond
325
326 @cindex multiple dynamic marks on one note
327 @cindex dynamic marks, multiple on one note
328 Spacer rests are needed to engrave multiple marks on one note.
329 This is particularly useful when adding a @notation{crescendo} and
330 @notation{decrescendo} to the same note:
331
332 @lilypond[verbatim,quote]
333 \relative {
334   c''4\< c\! d\> e\!
335   << f1 { s4 s4\< s4\> s4\! } >>
336 }
337 @end lilypond
338
339 @cindex espressivo articulation
340
341 @funindex \espressivo
342
343 The @code{\espressivo} command can be used to indicate a crescendo
344 and decrescendo on the same note.  However, be warned that this is
345 implemented as an articulation, not a dynamic.
346
347 @lilypond[verbatim,quote]
348 \relative {
349   c''2 b4 a
350   g1\espressivo
351 }
352 @end lilypond
353
354 @funindex \cresc
355 @funindex \decresc
356 @funindex \dim
357 Textual crescendo marks begin with @code{\cresc}.
358 Textual decrescendos begin with @code{\decresc} or @code{\dim}.
359 Extender lines are engraved as required.
360
361 @lilypond[verbatim,quote]
362 \relative {
363   g'8\cresc a b c b c d e\mf |
364   f8\decresc e d c e\> d c b |
365   a1\dim ~ |
366   a2. r4\! |
367 }
368 @end lilypond
369
370 @funindex \crescTextCresc
371 @funindex \dimTextDecresc
372 @funindex \dimTextDecr
373 @funindex \dimTextDim
374 @funindex \crescHairpin
375 @funindex \dimHairpin
376
377 Textual marks for dynamic changes can also replace hairpins:
378 @lilypond[verbatim,quote]
379 \relative c'' {
380   \crescTextCresc
381   c4\< d e f\! |
382   \dimTextDecresc
383   g4\> e d c\! |
384   \dimTextDecr
385   e4\> d c b\! |
386   \dimTextDim
387   d4\> c b a\! |
388   \crescHairpin
389   \dimHairpin
390   c4\< d\! e\> d\! |
391 }
392 @end lilypond
393
394
395 To create new absolute dynamic marks or text that should be
396 aligned with dynamics, see @ref{New dynamic marks}.
397
398 @cindex dynamics, vertical positioning
399 @cindex vertical positioning of dynamics
400
401 @funindex DynamicLineSpanner
402
403
404 Vertical positioning of dynamics is handled by
405 @rinternals{DynamicLineSpanner}.
406 @funindex \dynamicUp
407 @funindex \dynamicDown
408 @funindex \dynamicNeutral
409
410 A @code{Dynamics} context is available to engrave dynamics on
411 their own horizontal line.  Use spacer rests to indicate timing.
412 (Notes in a @code{Dynamics} context will also take up
413 musical time, but will not be engraved.)
414 The @code{Dynamics} context can usefully contain some other
415 items such as text scripts, text spanners, and piano pedal marks.
416
417 @lilypond[verbatim,quote]
418 <<
419   \new Staff \relative {
420     c'2 d4 e |
421     c4 e e,2 |
422     g'4 a g a |
423     c1 |
424   }
425   \new Dynamics {
426     s1\< |
427     s1\f |
428     s2\dim s2-"rit." |
429     s1\p |
430   }
431 >>
432 @end lilypond
433
434 @predefined
435 @code{\dynamicUp},
436 @code{\dynamicDown},
437 @code{\dynamicNeutral},
438 @code{\crescTextCresc},
439 @code{\dimTextDim},
440 @code{\dimTextDecr},
441 @code{\dimTextDecresc},
442 @code{\crescHairpin},
443 @code{\dimHairpin}.
444 @endpredefined
445
446
447 @snippets
448
449 @lilypondfile[verbatim,quote,texidoc,doctitle]
450 {setting-hairpin-behavior-at-bar-lines.ly}
451
452 @lilypondfile[verbatim,quote,texidoc,doctitle]
453 {setting-the-minimum-length-of-hairpins.ly}
454
455 @cindex al niente
456 @cindex niente, al
457
458 @lilypondfile[verbatim,quote,texidoc,doctitle]
459 {printing-hairpins-using-al-niente-notation.ly}
460
461 @cindex Ferneyhough hairpins
462 @cindex hairpins, Ferneyhough
463 @cindex flared hairpins
464 @cindex hairpins, flared
465 @cindex constante hairpins
466 @cindex hairpins, constante
467
468 @lilypondfile[verbatim,quote,texidoc,doctitle]
469 {printing-hairpins-in-various-styles.ly}
470
471 @lilypondfile[verbatim,quote,texidoc,doctitle]
472 {vertically-aligned-dynamics-and-textscripts.ly}
473
474 @lilypondfile[verbatim,quote,texidoc,doctitle]
475 {hiding-the-extender-line-for-text-dynamics.ly}
476
477 @lilypondfile[verbatim,quote,texidoc,doctitle]
478 {changing-text-and-spanner-styles-for-text-dynamics.ly}
479
480 @seealso
481 Music Glossary:
482 @rglos{al niente},
483 @rglos{crescendo},
484 @rglos{decrescendo},
485 @rglos{hairpin}.
486
487 Learning Manual:
488 @rlearning{Articulation and dynamics}.
489
490 Notation Reference:
491 @ref{Direction and placement},
492 @ref{New dynamic marks},
493 @ref{Enhancing MIDI output},
494 @ref{Controlling MIDI dynamics}.
495
496 Snippets:
497 @rlsr{Expressive marks}.
498
499 Internals Reference:
500 @rinternals{DynamicText},
501 @rinternals{Hairpin},
502 @rinternals{DynamicLineSpanner},
503 @rinternals{Dynamics}.
504
505
506 @node New dynamic marks
507 @unnumberedsubsubsec New dynamic marks
508
509 @cindex new dynamic marks
510 @cindex dynamic marks, new
511
512 The easiest way to create dynamic indications is to use
513 @code{\markup} objects.
514
515 @lilypond[verbatim,quote]
516 moltoF = \markup { molto \dynamic f }
517
518 \relative {
519   <d' e>16_\moltoF <d e>
520   <d e>2..
521 }
522 @end lilypond
523
524 @cindex dynamics, editorial
525 @cindex dynamics, parenthesis
526 @cindex editorial dynamics
527 @funindex \bracket
528 @funindex \dynamic
529
530 In markup mode, editorial dynamics (within parentheses or square
531 brackets) can be created.  The syntax for markup mode is described
532 in @ref{Formatting text}.
533
534 @lilypond[verbatim,quote]
535 roundF = \markup {
536     \center-align \concat { \bold { \italic ( }
537            \dynamic f \bold { \italic ) } } }
538 boxF = \markup { \bracket { \dynamic f } }
539 \relative {
540   c'1_\roundF
541   c1_\boxF
542 }
543 @end lilypond
544
545 @cindex make-dynamic-script
546 @funindex make-dynamic-script
547
548 Simple, centered dynamic marks are easily created with the
549 @code{make-dynamic-script} function.
550
551 @lilypond[verbatim,quote]
552 sfzp = #(make-dynamic-script "sfzp")
553 \relative {
554   c'4 c c\sfzp c
555 }
556 @end lilypond
557
558 In general, @code{make-dynamic-script} takes any markup object as its
559 argument.  The dynamic font only contains the characters
560 @code{f,m,p,r,s} and @code{z}, so if a dynamic mark that includes
561 plain text or punctuation symbols is desired, markup commands that
562 reverts font family and font encoding to normal text should be used,
563 for example @code{\normal-text}.  The interest of using
564 @code{make-dynamic-script} instead of an ordinary markup is ensuring
565 the vertical alignment of markup objects and hairpins that are
566 attached to the same note head.
567
568 @lilypond[verbatim,quote]
569 roundF = \markup { \center-align \concat {
570            \normal-text { \bold { \italic ( } }
571            \dynamic f
572            \normal-text { \bold { \italic ) } } } }
573 boxF = \markup { \bracket { \dynamic f } }
574 mfEspress = \markup { \center-align \line {
575               \hspace #3.7 mf \normal-text \italic espress. } }
576 roundFdynamic = #(make-dynamic-script roundF)
577 boxFdynamic = #(make-dynamic-script boxF)
578 mfEspressDynamic = #(make-dynamic-script mfEspress)
579 \relative {
580   c'4_\roundFdynamic\< d e f
581   g,1~_\boxFdynamic\>
582   g1
583   g'1~\mfEspressDynamic
584   g1
585 }
586 @end lilypond
587
588 The Scheme form of markup mode may be used instead.  Its syntax is
589 explained in @rextend{Markup construction in Scheme}.
590
591 @lilypond[verbatim,quote]
592 moltoF = #(make-dynamic-script
593             (markup #:normal-text "molto"
594                     #:dynamic "f"))
595 \relative {
596   <d' e>16 <d e>
597   <d e>2..\moltoF
598 }
599 @end lilypond
600
601 To left-align the dynamic text rather than centering it on a note
602 use a @code{\tweak}:
603
604 @lilypond[verbatim,quote]
605 moltoF = \tweak DynamicText.self-alignment-X #LEFT
606          #(make-dynamic-script
607             (markup #:normal-text "molto"
608                     #:dynamic "f"))
609 \relative {
610   <d' e>16 <d e>
611   <d e>2..\moltoF <d e>1
612 }
613 @end lilypond
614
615 Font settings in markup mode are described in
616 @ref{Selecting font and font size}.
617
618 @seealso
619 Notation Reference:
620 @ref{Formatting text},
621 @ref{Selecting font and font size},
622 @ref{Enhancing MIDI output},
623 @ref{Controlling MIDI dynamics}.
624
625 Extending LilyPond:
626 @rextend{Markup construction in Scheme}.
627
628 Snippets:
629 @rlsr{Expressive marks}.
630
631
632 @node Expressive marks as curves
633 @subsection Expressive marks as curves
634
635 This section explains how to create various expressive marks that
636 are curved: normal slurs, phrasing slurs, breath marks, falls, and
637 doits.
638
639 @menu
640 * Slurs::
641 * Phrasing slurs::
642 * Breath marks::
643 * Falls and doits::
644 @end menu
645
646 @node Slurs
647 @unnumberedsubsubsec Slurs
648
649 @cindex slurs
650
651 @notation{Slurs} are entered using parentheses:
652
653 @warning{In polyphonic music, a slur must be terminated
654 in the same voice it began.}
655
656 @lilypond[verbatim,quote]
657 \relative {
658   f''4( g a) a8 b(
659   a4 g2 f4)
660   <c e>2( <b d>2)
661 }
662 @end lilypond
663
664 @cindex slurs, manual placement
665 @cindex slurs, below notes
666 @cindex slurs, above notes
667 @funindex \slurDown
668 @funindex \slurNeutral
669
670 Slurs may be manually placed above or below the staff; see
671 @ref{Direction and placement}.
672
673 @cindex phrasing slur
674 @cindex multiple slurs
675 @cindex simultaneous slurs
676 @cindex slur, phrasing
677 @cindex slurs, multiple
678 @cindex slurs, simultaneous
679 @funindex \=
680
681 Simultaneous or overlapping slurs require special attention.  Most
682 occurences of outer slurs actually indicate phrasing, and phrasing
683 slurs may overlap a regular slur, see @ref{Phrasing slurs}.  When
684 multiple regular slurs are needed in a single @code{Voice},
685 matching slur starts and ends need to be labelled by preceding
686 them with @code{\=} followed by an identifying number or string.
687
688 @lilypond[verbatim,quote]
689 \fixed c' {
690   <c~ f\=1( g\=2( >2 <c e\=1) a\=2) >
691 }
692 @end lilypond
693
694 @cindex slur style
695 @cindex slur, solid
696 @cindex slur, dotted
697 @cindex slur, dashed
698 @cindex solid slur
699 @cindex dotted slur
700 @cindex dashed slur
701 @cindex style, slur
702 @funindex \slurDashed
703 @funindex \slurDotted
704 @funindex \slurSolid
705
706 Slurs can be solid, dotted, or dashed.  Solid is the default slur
707 style:
708
709 @lilypond[verbatim,quote]
710 \relative {
711   c'4( e g2)
712   \slurDashed
713   g4( e c2)
714   \slurDotted
715   c4( e g2)
716   \slurSolid
717   g4( e c2)
718 }
719 @end lilypond
720
721 @funindex \slurHalfDashed
722 @funindex \slurHalfSolid
723 @cindex slur, half dashed and half solid
724
725 Slurs can also be made half-dashed (the first half dashed, the
726 second half solid) or half-solid (the first half solid, the second
727 half dashed):
728
729 @lilypond[verbatim,quote]
730 \relative {
731   c'4( e g2)
732   \slurHalfDashed
733   g4( e c2)
734   \slurHalfSolid
735   c4( e g2)
736   \slurSolid
737   g4( e c2)
738 }
739 @end lilypond
740
741 @funindex \slurDashPattern
742 @cindex slur, defining dash patterns
743
744 Custom dash patterns for slurs can be defined:
745
746 @lilypond[verbatim,quote]
747 \relative {
748   c'4( e g2)
749   \slurDashPattern #0.7 #0.75
750   g4( e c2)
751   \slurDashPattern #0.5 #2.0
752   c4( e g2)
753   \slurSolid
754   g4( e c2)
755 }
756 @end lilypond
757
758
759
760 @funindex \slurUp
761
762
763 @predefined
764 @code{\slurUp},
765 @code{\slurDown},
766 @code{\slurNeutral},
767 @code{\slurDashed},
768 @code{\slurDotted},
769 @code{\slurHalfDashed},
770 @code{\slurHalfSolid},
771 @code{\slurDashPattern},
772 @code{\slurSolid}.
773 @endpredefined
774
775
776 @snippets
777
778 @lilypondfile[verbatim,quote,texidoc,doctitle]
779 {using-double-slurs-for-legato-chords.ly}
780
781 @lilypondfile[verbatim,quote,texidoc,doctitle]
782 {positioning-text-markups-inside-slurs.ly}
783
784 @lilypondfile[verbatim,quote,texidoc,doctitle]
785 {making-slurs-with-complex-dash-structure.ly}
786
787 @seealso
788 Music Glossary:
789 @rglos{slur}.
790
791 Learning Manual:
792 @rlearning{On the un-nestedness of brackets and ties}.
793
794 Notation Reference:
795 @ref{Direction and placement},
796 @ref{Phrasing slurs}.
797
798 Snippets:
799 @rlsr{Expressive marks}.
800
801 Internals Reference:
802 @rinternals{Slur}.
803
804
805 @node Phrasing slurs
806 @unnumberedsubsubsec Phrasing slurs
807
808 @cindex phrasing slurs
809 @cindex phrasing marks
810 @cindex slur, phrasing
811 @cindex mark, phrasing
812 @funindex \(
813 @funindex \)
814
815 @notation{Phrasing slurs} (or phrasing marks) that indicate a
816 musical sentence are written using the commands @code{\(} and
817 @code{\)} respectively:
818
819 @lilypond[verbatim,quote]
820 \relative {
821   c''4\( d( e) f(
822   e2) d\)
823 }
824 @end lilypond
825
826 @funindex \phrasingSlurUp
827 @funindex \phrasingSlurDown
828 @funindex \phrasingSlurNeutral
829
830 Typographically, a phrasing slur behaves almost exactly like a
831 normal slur.  However, they are treated as different objects; a
832 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
833 may be manually placed above or below the staff; see
834 @ref{Direction and placement}.
835
836 @cindex simultaneous phrasing slurs
837 @cindex multiple phrasing slurs
838 @cindex slur, simultaneous phrasing
839 @cindex slur, multiple phrasing
840 @cindex phrasing slur, simultaneous
841 @cindex phrasing slur, multiple
842
843 Simultaneous or overlapping phrasing slurs are entered using
844 @code{\=} as with regular slurs, see @ref{Slurs}.
845
846 @funindex \phrasingSlurDashed
847 @funindex \phrasingSlurDotted
848 @funindex \phrasingSlurSolid
849 @cindex phrasing slur, dashed
850 @cindex dashed phrasing slur
851 @cindex phrasing slur, dotted
852 @cindex dotted phrasing slurs
853 @cindex slur, dashed phrasing
854 @cindex slur, dotted phrasing
855
856 Phrasing slurs can be solid, dotted, or dashed.  Solid is the default
857 style for phrasing slurs:
858
859 @lilypond[verbatim,quote]
860 \relative {
861   c'4\( e g2\)
862   \phrasingSlurDashed
863   g4\( e c2\)
864   \phrasingSlurDotted
865   c4\( e g2\)
866   \phrasingSlurSolid
867   g4\( e c2\)
868 }
869 @end lilypond
870
871 @funindex \phrasingSlurHalfDashed
872 @funindex \phrasingSlurHalfSolid
873 @cindex phrasing slur, half solid and half dashed
874 @cindex slur, half solid and half dashed phrasing
875
876 Phrasing slurs can also be made half-dashed (the first half dashed, the
877 second half solid) or half-solid (the first half solid, the second
878 half dashed):
879
880 @lilypond[verbatim,quote]
881 \relative {
882   c'4\( e g2\)
883   \phrasingSlurHalfDashed
884   g4\( e c2\)
885   \phrasingSlurHalfSolid
886   c4\( e g2\)
887   \phrasingSlurSolid
888   g4\( e c2\)
889 }
890 @end lilypond
891
892 @funindex \phrasingSlurDashPattern
893 @cindex phrasing slur, defining dash patterns
894 @cindex slur, phrasing, defining dash patterns
895 @cindex slur, defining dash patterns for phrasing
896
897 Custom dash patterns for phrasing slurs can be defined:
898
899 @lilypond[verbatim,quote]
900 \relative {
901   c'4\( e g2\)
902   \phrasingSlurDashPattern #0.7 #0.75
903   g4\( e c2\)
904   \phrasingSlurDashPattern #0.5 #2.0
905   c4\( e g2\)
906   \phrasingSlurSolid
907   g4\( e c2\)
908 }
909 @end lilypond
910
911 Dash pattern definitions for phrasing slurs have the same structure
912 as dash pattern definitions for slurs.  For more information about
913 complex dash patterns, see the snippets under @ref{Slurs}.
914
915 @predefined
916 @code{\phrasingSlurUp},
917 @code{\phrasingSlurDown},
918 @code{\phrasingSlurNeutral},
919 @code{\phrasingSlurDashed},
920 @code{\phrasingSlurDotted},
921 @code{\phrasingSlurHalfDashed},
922 @code{\phrasingSlurHalfSolid},
923 @code{\phrasingSlurDashPattern},
924 @code{\phrasingSlurSolid}.
925 @endpredefined
926
927 @seealso
928 Learning Manual:
929 @rlearning{On the un-nestedness of brackets and ties}.
930
931 Notation Reference:
932 @ref{Direction and placement},
933 @ref{Slurs}.
934
935 Snippets:
936 @rlsr{Expressive marks}.
937
938 Internals Reference:
939 @rinternals{PhrasingSlur}.
940
941
942 @node Breath marks
943 @unnumberedsubsubsec Breath marks
944
945 @cindex breath marks
946 @cindex pause mark
947 @funindex \breathe
948
949 Breath marks are entered using @code{\breathe}:
950
951 @lilypond[verbatim,quote]
952 { c''2. \breathe d''4 }
953 @end lilypond
954
955 Unlike other expressive marks, a breath mark is not associated with
956 the preceding note but is a separate music event.  So all the
957 expressive marks which are attached to the preceding note, any square
958 brackets indicating manual beams, and any brackets indicating slurs
959 and phrasing slurs must be placed before @code{\breathe}.
960
961 A breath mark will end an automatic beam; to override this behavior, see
962 @ref{Manual beams}.
963
964 @lilypond[verbatim,quote]
965 \relative { c''8 \breathe d e f g2 }
966 @end lilypond
967
968 Musical indicators for breath marks in ancient notation,
969 divisiones, are supported.  For details, see @ref{Divisiones}.
970
971
972 @snippets
973
974 @lilypondfile[verbatim,quote,texidoc,doctitle]
975 {changing-the-breath-mark-symbol.ly}
976
977 @cindex tick mark
978
979 @lilypondfile[verbatim,quote,texidoc,doctitle]
980 {using-a-tick-as-the-breath-mark-symbol.ly}
981
982 @cindex caesura
983 @cindex railroad tracks
984
985 @lilypondfile[verbatim,quote,texidoc,doctitle]
986 {inserting-a-caesura.ly}
987
988 @seealso
989 Music Glossary:
990 @rglos{caesura}.
991
992 Notation Reference:
993 @ref{Divisiones}.
994
995 Snippets:
996 @rlsr{Expressive marks}.
997
998 Internals Reference:
999 @rinternals{BreathingEvent},
1000 @rinternals{BreathingSign},
1001 @rinternals{Breathing_sign_engraver}.
1002
1003
1004 @node Falls and doits
1005 @unnumberedsubsubsec Falls and doits
1006
1007 @cindex falls
1008 @cindex doits
1009 @funindex \bendAfter
1010
1011 @notation{Falls} and @notation{doits} can be added to notes using
1012 the @code{\bendAfter} command.  The direction of the fall or doit
1013 is indicated with a plus or minus (up or down).  The number
1014 indicates the pitch interval that the fall or doit will extend
1015 @emph{beyond} the main note.
1016
1017 @lilypond[verbatim,quote]
1018 \relative c'' {
1019   c2\bendAfter #+4
1020   c2\bendAfter #-4
1021   c2\bendAfter #+6.5
1022   c2\bendAfter #-6.5
1023   c2\bendAfter #+8
1024   c2\bendAfter #-8
1025 }
1026 @end lilypond
1027
1028 @snippets
1029
1030 @lilypondfile[verbatim,quote,texidoc,doctitle]
1031 {adjusting-the-shape-of-falls-and-doits.ly}
1032
1033 @seealso
1034 Music Glossary:
1035 @rglos{fall},
1036 @rglos{doit}.
1037
1038 Snippets:
1039 @rlsr{Expressive marks}.
1040
1041
1042 @node Expressive marks as lines
1043 @subsection Expressive marks as lines
1044
1045 This section explains how to create various expressive marks that
1046 follow a linear path: glissandos, arpeggios, and trills.
1047
1048 @menu
1049 * Glissando::
1050 * Arpeggio::
1051 * Trills::
1052 @end menu
1053
1054 @node Glissando
1055 @unnumberedsubsubsec Glissando
1056
1057 @cindex glissando
1058 @funindex \glissando
1059
1060 A @notation{glissando} is created by appending @code{\glissando}
1061 to a note:
1062
1063 @lilypond[verbatim,quote]
1064 \relative {
1065   g'2\glissando g'
1066   c2\glissando c,
1067   \afterGrace f,1\glissando f'16
1068 }
1069 @end lilypond
1070
1071 A glissando can connect notes across staves:
1072
1073 @lilypond[verbatim,quote]
1074 \new PianoStaff <<
1075   \new Staff = "right" {
1076     e'''2\glissando
1077     \change Staff = "left"
1078     a,,4\glissando
1079     \change Staff = "right"
1080     b''8 r |
1081   }
1082   \new Staff = "left" {
1083     \clef bass
1084     s1
1085   }
1086 >>
1087 @end lilypond
1088
1089 A glissando can connect notes in chords.  If anything other than a
1090 direct one-to-one pairing of the notes in the two chords is required
1091 the connections between the notes are defined by setting
1092 @code{\glissandoMap}, where the notes of a chord are assumed to be
1093 numbered from zero in the order in which they appear in the input
1094 @file{.ly} file.
1095
1096 @lilypond[verbatim,quote]
1097 \relative {
1098   <c' e>1\glissando g' |
1099   <c, e>1\glissando |
1100   <g' b> |
1101   \break
1102   \set glissandoMap = #'((0 . 1) (1 . 0))
1103   <c, g'>1\glissando |
1104   <d a'> |
1105   \set glissandoMap = #'((0 . 0) (0 . 1) (0 . 2))
1106   c1\glissando |
1107   <d f a> |
1108   \set glissandoMap = #'((2 . 0) (1 . 0) (0 . 1))
1109   <f d a'>1\glissando |
1110   <c c'> |
1111 }
1112 @end lilypond
1113
1114 Different styles of glissandi can be created.  For details, see
1115 @ref{Line styles}.
1116
1117
1118 @snippets
1119 @lilypondfile[verbatim,quote,texidoc,doctitle]
1120 {contemporary-glissando.ly}
1121
1122 @lilypondfile[verbatim,quote,texidoc,doctitle]
1123 {adding-timing-marks-to-long-glissandi.ly}
1124
1125 @lilypondfile[verbatim,quote,texidoc,doctitle]
1126 {making-glissandi-breakable.ly}
1127
1128 @lilypondfile[verbatim,quote,texidoc,doctitle]
1129 {extending-glissandi-across-repeats.ly}
1130
1131 @seealso
1132 Music Glossary:
1133 @rglos{glissando}.
1134
1135 Notation Reference:
1136 @ref{Line styles}.
1137
1138 Snippets:
1139 @rlsr{Expressive marks}.
1140
1141 Internals Reference:
1142 @rinternals{Glissando}.
1143
1144 @knownissues
1145 Printing text over the line (such as @notation{gliss.}) is not
1146 supported.
1147
1148
1149 @node Arpeggio
1150 @unnumberedsubsubsec Arpeggio
1151
1152 @cindex arpeggio
1153 @cindex broken chord
1154 @cindex chord, broken
1155
1156 @funindex \arpeggio
1157 @funindex \arpeggioArrowUp
1158 @funindex \arpeggioArrowDown
1159 @funindex \arpeggioNormal
1160
1161 An @notation{arpeggio} on a chord (also known as a broken chord)
1162 is denoted by appending @code{\arpeggio} to the chord construct:
1163
1164 @lilypond[verbatim,quote]
1165 \relative { <c' e g c>1\arpeggio }
1166 @end lilypond
1167
1168 Different types of arpeggios may be written.
1169 @code{\arpeggioNormal} reverts to a normal arpeggio:
1170
1171 @lilypond[verbatim,quote]
1172 \relative {
1173   <c' e g c>2\arpeggio
1174
1175   \arpeggioArrowUp
1176   <c e g c>2\arpeggio
1177
1178   \arpeggioArrowDown
1179   <c e g c>2\arpeggio
1180
1181   \arpeggioNormal
1182   <c e g c>2\arpeggio
1183 }
1184 @end lilypond
1185
1186 @cindex arpeggio symbols, special
1187 @cindex special arpeggio symbols
1188
1189 @funindex \arpeggioBracket
1190 @funindex \arpeggioParenthesis
1191 @funindex \arpeggioParenthesisDashed
1192
1193 Special @emph{bracketed} arpeggio symbols can be created:
1194
1195 @lilypond[verbatim,quote]
1196 \relative {
1197   <c' e g c>2
1198
1199   \arpeggioBracket
1200   <c e g c>2\arpeggio
1201
1202   \arpeggioParenthesis
1203   <c e g c>2\arpeggio
1204
1205   \arpeggioParenthesisDashed
1206   <c e g c>2\arpeggio
1207
1208   \arpeggioNormal
1209   <c e g c>2\arpeggio
1210 }
1211 @end lilypond
1212
1213 The dash properties of the parenthesis arpeggio are controlled
1214 with the @code{'dash-definition} property, which is described at
1215 @ref{Slurs}.
1216
1217 Arpeggios can be explicitly written out with ties.  For more
1218 information, see @ref{Ties}.
1219
1220
1221 @predefined
1222 @code{\arpeggio},
1223 @code{\arpeggioArrowUp},
1224 @code{\arpeggioArrowDown},
1225 @code{\arpeggioNormal},
1226 @code{\arpeggioBracket},
1227 @code{\arpeggioParenthesis}
1228 @code{\arpeggioParenthesisDashed}.
1229 @endpredefined
1230
1231
1232 @snippets
1233
1234 @lilypondfile[verbatim,quote,texidoc,doctitle]
1235 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
1236
1237 @lilypondfile[verbatim,quote,texidoc,doctitle]
1238 {creating-cross-staff-arpeggios-in-other-contexts.ly}
1239
1240 @lilypondfile[verbatim,quote,texidoc,doctitle]
1241 {creating-arpeggios-across-notes-in-different-voices.ly}
1242
1243 @seealso
1244 Music Glossary:
1245 @rglos{arpeggio}.
1246
1247 Notation Reference:
1248 @ref{Slurs},
1249 @ref{Ties}.
1250
1251 Snippets:
1252 @rlsr{Expressive marks}.
1253
1254 Internals Reference:
1255 @rinternals{Arpeggio},
1256 @rinternals{Slur},
1257 @rinternals{PianoStaff}.
1258
1259 @knownissues
1260 @cindex cross-staff parenthesis-style arpeggio
1261 @cindex arpeggio, parenthesis-style, cross-staff
1262 @cindex arpeggio, cross-staff parenthesis-style
1263
1264 It is not possible to mix connected arpeggios and unconnected
1265 arpeggios in one @code{PianoStaff} at the same point in
1266 time.
1267
1268 The simple way of setting parenthesis-style arpeggio brackets does not work for
1269 cross-staff arpeggios; see @ref{Cross-staff stems}.
1270
1271
1272 @node Trills
1273 @unnumberedsubsubsec Trills
1274
1275 @cindex trills
1276
1277 @funindex \trill
1278 @funindex \startTrillSpan
1279 @funindex \stopTrillSpan
1280
1281 Short trills without an extender line are printed with
1282 @code{\trill}; see @ref{Articulations and ornamentations}.
1283
1284 Longer trills with an extender line are made with
1285 @code{\startTrillSpan} and @code{\stopTrillSpan}:
1286
1287 @lilypond[verbatim,quote]
1288 \relative {
1289   d''1\startTrillSpan
1290   d1
1291   c2\stopTrillSpan
1292   r2
1293 }
1294 @end lilypond
1295
1296 A trill spanner crossing a line break will restart exactly above
1297 the first note on the new line.
1298
1299 @lilypond[ragged-right,verbatim,quote]
1300 \relative {
1301   d''1\startTrillSpan
1302   \break
1303   d1
1304   c2\stopTrillSpan
1305   r2
1306 }
1307 @end lilypond
1308
1309 Consecutive trill spans will work without explicit
1310 @code{\stopTrillSpan} commands, since successive trill spanners will
1311 automatically become the right bound of the previous trill.
1312
1313 @lilypond[verbatim,quote]
1314 \relative {
1315   d''1\startTrillSpan
1316   d1
1317   b1\startTrillSpan
1318   d2\stopTrillSpan
1319   r2
1320 }
1321 @end lilypond
1322
1323 Trills can also be combined with grace notes.  The syntax of this
1324 construct and the method to precisely position the grace notes are
1325 described in @ref{Grace notes}.
1326
1327 @lilypond[verbatim,quote]
1328 \relative {
1329   d''1~\afterGrace
1330   d1\startTrillSpan { c32[ d]\stopTrillSpan }
1331   c2 r2
1332 }
1333 @end lilypond
1334
1335 @cindex pitched trills
1336 @cindex trills, pitched
1337 @funindex \pitchedTrill
1338
1339 Trills that require an auxiliary note with an explicit pitch can
1340 be typeset with the @code{\pitchedTrill} command.  The first
1341 argument is the main note, and the second is the @emph{trilled}
1342 note, printed as a stemless note head in parentheses.
1343
1344 @lilypond[verbatim,quote]
1345 \relative {
1346   \pitchedTrill
1347   d''2\startTrillSpan fis
1348   d2
1349   c2\stopTrillSpan
1350   r2
1351 }
1352 @end lilypond
1353
1354 @cindex pitched trill with accidental
1355 @cindex trill with accidental
1356
1357 Subsequent accidentals of the same note in the same measure will need
1358 to be added manually.  Only the accidental of the first pitched trill
1359 in a measure is printed.
1360
1361 @lilypond[verbatim,quote]
1362 \relative {
1363   \pitchedTrill
1364   eis''4\startTrillSpan fis
1365   eis4\stopTrillSpan
1366   \pitchedTrill
1367   eis4\startTrillSpan cis
1368   eis4\stopTrillSpan
1369   \pitchedTrill
1370   eis4\startTrillSpan fis
1371   eis4\stopTrillSpan
1372   \pitchedTrill
1373   eis4\startTrillSpan fis!
1374   eis4\stopTrillSpan
1375 }
1376 @end lilypond
1377
1378 @predefined
1379 @code{\startTrillSpan},
1380 @code{\stopTrillSpan}.
1381 @endpredefined
1382
1383 @seealso
1384 Music Glossary:
1385 @rglos{trill}.
1386
1387 Notation Reference:
1388 @ref{Articulations and ornamentations},
1389 @ref{Grace notes}.
1390
1391 Snippets:
1392 @rlsr{Expressive marks}.
1393
1394 Internals Reference:
1395 @rinternals{TrillSpanner}.