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