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