]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/expressive.itely
Add '-dcrop' option to ps and svg backends
[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.  A hairpin ending on a downbeat will stop at the preceding bar line.
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 @cindex hairpins at bar lines
450
451 @lilypondfile[verbatim,quote,texidoc,doctitle]
452 {setting-hairpin-behavior-at-bar-lines.ly}
453
454 @lilypondfile[verbatim,quote,texidoc,doctitle]
455 {setting-the-minimum-length-of-hairpins.ly}
456
457 @lilypondfile[verbatim,quote,texidoc,doctitle]
458 {moving-the-ends-of-hairpins.ly}
459
460 @cindex al niente
461 @cindex niente, al
462
463 @lilypondfile[verbatim,quote,texidoc,doctitle]
464 {printing-hairpins-using-al-niente-notation.ly}
465
466 @cindex Ferneyhough hairpins
467 @cindex hairpins, Ferneyhough
468 @cindex flared hairpins
469 @cindex hairpins, flared
470 @cindex constante hairpins
471 @cindex hairpins, constante
472
473 @lilypondfile[verbatim,quote,texidoc,doctitle]
474 {printing-hairpins-in-various-styles.ly}
475
476 @lilypondfile[verbatim,quote,texidoc,doctitle]
477 {vertically-aligned-dynamics-and-textscripts.ly}
478
479 @lilypondfile[verbatim,quote,texidoc,doctitle]
480 {hiding-the-extender-line-for-text-dynamics.ly}
481
482 @lilypondfile[verbatim,quote,texidoc,doctitle]
483 {changing-text-and-spanner-styles-for-text-dynamics.ly}
484
485 @seealso
486 Music Glossary:
487 @rglos{al niente},
488 @rglos{crescendo},
489 @rglos{decrescendo},
490 @rglos{hairpin}.
491
492 Learning Manual:
493 @rlearning{Articulation and dynamics}.
494
495 Notation Reference:
496 @ref{Direction and placement},
497 @ref{New dynamic marks},
498 @ref{Enhancing MIDI output},
499 @ref{Controlling MIDI dynamics}.
500
501 Snippets:
502 @rlsr{Expressive marks}.
503
504 Internals Reference:
505 @rinternals{DynamicText},
506 @rinternals{Hairpin},
507 @rinternals{DynamicLineSpanner},
508 @rinternals{Dynamics}.
509
510
511 @node New dynamic marks
512 @unnumberedsubsubsec New dynamic marks
513
514 @cindex new dynamic marks
515 @cindex dynamic marks, new
516
517 The easiest way to create dynamic indications is to use
518 @code{\markup} objects.
519
520 @lilypond[verbatim,quote]
521 moltoF = \markup { molto \dynamic f }
522
523 \relative {
524   <d' e>16_\moltoF <d e>
525   <d e>2..
526 }
527 @end lilypond
528
529 @cindex dynamics, editorial
530 @cindex dynamics, parenthesis
531 @cindex editorial dynamics
532 @funindex \bracket
533 @funindex \dynamic
534
535 In markup mode, editorial dynamics (within parentheses or square
536 brackets) can be created.  The syntax for markup mode is described
537 in @ref{Formatting text}.
538
539 @lilypond[verbatim,quote]
540 roundF = \markup {
541     \center-align \concat { \bold { \italic ( }
542            \dynamic f \bold { \italic ) } } }
543 boxF = \markup { \bracket { \dynamic f } }
544 \relative {
545   c'1_\roundF
546   c1_\boxF
547 }
548 @end lilypond
549
550 @cindex make-dynamic-script
551 @funindex make-dynamic-script
552
553 Simple, centered dynamic marks are easily created with the
554 @code{make-dynamic-script} function.
555
556 @lilypond[verbatim,quote]
557 sfzp = #(make-dynamic-script "sfzp")
558 \relative {
559   c'4 c c\sfzp c
560 }
561 @end lilypond
562
563 In general, @code{make-dynamic-script} takes any markup object as its
564 argument.  The dynamic font only contains the characters
565 @code{f,m,p,r,s} and @code{z}, so if a dynamic mark that includes
566 plain text or punctuation symbols is desired, markup commands that
567 reverts font family and font encoding to normal text should be used,
568 for example @code{\normal-text}.  The interest of using
569 @code{make-dynamic-script} instead of an ordinary markup is ensuring
570 the vertical alignment of markup objects and hairpins that are
571 attached to the same note head.
572
573 @lilypond[verbatim,quote]
574 roundF = \markup { \center-align \concat {
575            \normal-text { \bold { \italic ( } }
576            \dynamic f
577            \normal-text { \bold { \italic ) } } } }
578 boxF = \markup { \bracket { \dynamic f } }
579 mfEspress = \markup { \center-align \line {
580               \hspace #3.7 mf \normal-text \italic espress. } }
581 roundFdynamic = #(make-dynamic-script roundF)
582 boxFdynamic = #(make-dynamic-script boxF)
583 mfEspressDynamic = #(make-dynamic-script mfEspress)
584 \relative {
585   c'4_\roundFdynamic\< d e f
586   g,1~_\boxFdynamic\>
587   g1
588   g'1~\mfEspressDynamic
589   g1
590 }
591 @end lilypond
592
593 The Scheme form of markup mode may be used instead.  Its syntax is
594 explained in @rextend{Markup construction in Scheme}.
595
596 @lilypond[verbatim,quote]
597 moltoF = #(make-dynamic-script
598             (markup #:normal-text "molto"
599                     #:dynamic "f"))
600 \relative {
601   <d' e>16 <d e>
602   <d e>2..\moltoF
603 }
604 @end lilypond
605
606 To left-align the dynamic text rather than centering it on a note
607 use a @code{\tweak}:
608
609 @lilypond[verbatim,quote]
610 moltoF = \tweak DynamicText.self-alignment-X #LEFT
611          #(make-dynamic-script
612             (markup #:normal-text "molto"
613                     #:dynamic "f"))
614 \relative {
615   <d' e>16 <d e>
616   <d e>2..\moltoF <d e>1
617 }
618 @end lilypond
619
620 Font settings in markup mode are described in
621 @ref{Selecting font and font size}.
622
623 @seealso
624 Notation Reference:
625 @ref{Formatting text},
626 @ref{Selecting font and font size},
627 @ref{Enhancing MIDI output},
628 @ref{Controlling MIDI dynamics}.
629
630 Extending LilyPond:
631 @rextend{Markup construction in Scheme}.
632
633 Snippets:
634 @rlsr{Expressive marks}.
635
636
637 @node Expressive marks as curves
638 @subsection Expressive marks as curves
639
640 This section explains how to create various expressive marks that
641 are curved: normal slurs, phrasing slurs, breath marks, falls, and
642 doits.
643
644 @menu
645 * Slurs::
646 * Phrasing slurs::
647 * Breath marks::
648 * Falls and doits::
649 @end menu
650
651 @node Slurs
652 @unnumberedsubsubsec Slurs
653
654 @cindex slurs
655
656 @notation{Slurs} are entered using parentheses:
657
658 @warning{In polyphonic music, a slur must be terminated
659 in the same voice it began.}
660
661 @lilypond[verbatim,quote]
662 \relative {
663   f''4( g a) a8 b(
664   a4 g2 f4)
665   <c e>2( <b d>2)
666 }
667 @end lilypond
668
669 @cindex slurs, manual placement
670 @cindex slurs, below notes
671 @cindex slurs, above notes
672 @funindex \slurDown
673 @funindex \slurNeutral
674
675 Slurs may be manually placed above or below the staff; see
676 @ref{Direction and placement}.
677
678 @cindex phrasing slur
679 @cindex multiple slurs
680 @cindex simultaneous slurs
681 @cindex slur, phrasing
682 @cindex slurs, multiple
683 @cindex slurs, simultaneous
684 @funindex \=
685
686 Simultaneous or overlapping slurs require special attention.  Most
687 occurences of outer slurs actually indicate phrasing, and phrasing
688 slurs may overlap a regular slur, see @ref{Phrasing slurs}.  When
689 multiple regular slurs are needed in a single @code{Voice},
690 matching slur starts and ends need to be labelled by preceding
691 them with @code{\=} followed by an identifying key (a symbol or
692 non-negative integer).
693
694 @lilypond[verbatim,quote]
695 \fixed c' {
696   <c~ f\=1( g\=2( >2 <c e\=1) a\=2) >
697 }
698 @end lilypond
699
700 @cindex slur style
701 @cindex slur, solid
702 @cindex slur, dotted
703 @cindex slur, dashed
704 @cindex solid slur
705 @cindex dotted slur
706 @cindex dashed slur
707 @cindex style, slur
708 @funindex \slurDashed
709 @funindex \slurDotted
710 @funindex \slurSolid
711
712 Slurs can be solid, dotted, or dashed.  Solid is the default slur
713 style:
714
715 @lilypond[verbatim,quote]
716 \relative {
717   c'4( e g2)
718   \slurDashed
719   g4( e c2)
720   \slurDotted
721   c4( e g2)
722   \slurSolid
723   g4( e c2)
724 }
725 @end lilypond
726
727 @funindex \slurHalfDashed
728 @funindex \slurHalfSolid
729 @cindex slur, half dashed and half solid
730
731 Slurs can also be made half-dashed (the first half dashed, the
732 second half solid) or half-solid (the first half solid, the second
733 half dashed):
734
735 @lilypond[verbatim,quote]
736 \relative {
737   c'4( e g2)
738   \slurHalfDashed
739   g4( e c2)
740   \slurHalfSolid
741   c4( e g2)
742   \slurSolid
743   g4( e c2)
744 }
745 @end lilypond
746
747 @funindex \slurDashPattern
748 @cindex slur, defining dash patterns
749
750 Custom dash patterns for slurs can be defined:
751
752 @lilypond[verbatim,quote]
753 \relative {
754   c'4( e g2)
755   \slurDashPattern #0.7 #0.75
756   g4( e c2)
757   \slurDashPattern #0.5 #2.0
758   c4( e g2)
759   \slurSolid
760   g4( e c2)
761 }
762 @end lilypond
763
764
765
766 @funindex \slurUp
767
768
769 @predefined
770 @code{\slurUp},
771 @code{\slurDown},
772 @code{\slurNeutral},
773 @code{\slurDashed},
774 @code{\slurDotted},
775 @code{\slurHalfDashed},
776 @code{\slurHalfSolid},
777 @code{\slurDashPattern},
778 @code{\slurSolid}.
779 @endpredefined
780
781
782 @snippets
783
784 @lilypondfile[verbatim,quote,texidoc,doctitle]
785 {using-double-slurs-for-legato-chords.ly}
786
787 @lilypondfile[verbatim,quote,texidoc,doctitle]
788 {positioning-text-markups-inside-slurs.ly}
789
790 @lilypondfile[verbatim,quote,texidoc,doctitle]
791 {making-slurs-with-complex-dash-structure.ly}
792
793 @seealso
794 Music Glossary:
795 @rglos{slur}.
796
797 Learning Manual:
798 @rlearning{On the un-nestedness of brackets and ties}.
799
800 Notation Reference:
801 @ref{Direction and placement},
802 @ref{Phrasing slurs}.
803
804 Snippets:
805 @rlsr{Expressive marks}.
806
807 Internals Reference:
808 @rinternals{Slur}.
809
810
811 @node Phrasing slurs
812 @unnumberedsubsubsec Phrasing slurs
813
814 @cindex phrasing slurs
815 @cindex phrasing marks
816 @cindex slur, phrasing
817 @cindex mark, phrasing
818 @funindex \(
819 @funindex \)
820
821 @notation{Phrasing slurs} (or phrasing marks) that indicate a
822 musical sentence are written using the commands @code{\(} and
823 @code{\)} respectively:
824
825 @lilypond[verbatim,quote]
826 \relative {
827   c''4\( d( e) f(
828   e2) d\)
829 }
830 @end lilypond
831
832 @funindex \phrasingSlurUp
833 @funindex \phrasingSlurDown
834 @funindex \phrasingSlurNeutral
835
836 Typographically, a phrasing slur behaves almost exactly like a
837 normal slur.  However, they are treated as different objects; a
838 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
839 may be manually placed above or below the staff; see
840 @ref{Direction and placement}.
841
842 @cindex simultaneous phrasing slurs
843 @cindex multiple phrasing slurs
844 @cindex slur, simultaneous phrasing
845 @cindex slur, multiple phrasing
846 @cindex phrasing slur, simultaneous
847 @cindex phrasing slur, multiple
848
849 Simultaneous or overlapping phrasing slurs are entered using
850 @code{\=} as with regular slurs, see @ref{Slurs}.
851
852 @funindex \phrasingSlurDashed
853 @funindex \phrasingSlurDotted
854 @funindex \phrasingSlurSolid
855 @cindex phrasing slur, dashed
856 @cindex dashed phrasing slur
857 @cindex phrasing slur, dotted
858 @cindex dotted phrasing slurs
859 @cindex slur, dashed phrasing
860 @cindex slur, dotted phrasing
861
862 Phrasing slurs can be solid, dotted, or dashed.  Solid is the default
863 style for phrasing slurs:
864
865 @lilypond[verbatim,quote]
866 \relative {
867   c'4\( e g2\)
868   \phrasingSlurDashed
869   g4\( e c2\)
870   \phrasingSlurDotted
871   c4\( e g2\)
872   \phrasingSlurSolid
873   g4\( e c2\)
874 }
875 @end lilypond
876
877 @funindex \phrasingSlurHalfDashed
878 @funindex \phrasingSlurHalfSolid
879 @cindex phrasing slur, half solid and half dashed
880 @cindex slur, half solid and half dashed phrasing
881
882 Phrasing slurs can also be made half-dashed (the first half dashed, the
883 second half solid) or half-solid (the first half solid, the second
884 half dashed):
885
886 @lilypond[verbatim,quote]
887 \relative {
888   c'4\( e g2\)
889   \phrasingSlurHalfDashed
890   g4\( e c2\)
891   \phrasingSlurHalfSolid
892   c4\( e g2\)
893   \phrasingSlurSolid
894   g4\( e c2\)
895 }
896 @end lilypond
897
898 @funindex \phrasingSlurDashPattern
899 @cindex phrasing slur, defining dash patterns
900 @cindex slur, phrasing, defining dash patterns
901 @cindex slur, defining dash patterns for phrasing
902
903 Custom dash patterns for phrasing slurs can be defined:
904
905 @lilypond[verbatim,quote]
906 \relative {
907   c'4\( e g2\)
908   \phrasingSlurDashPattern #0.7 #0.75
909   g4\( e c2\)
910   \phrasingSlurDashPattern #0.5 #2.0
911   c4\( e g2\)
912   \phrasingSlurSolid
913   g4\( e c2\)
914 }
915 @end lilypond
916
917 Dash pattern definitions for phrasing slurs have the same structure
918 as dash pattern definitions for slurs.  For more information about
919 complex dash patterns, see the snippets under @ref{Slurs}.
920
921 @predefined
922 @code{\phrasingSlurUp},
923 @code{\phrasingSlurDown},
924 @code{\phrasingSlurNeutral},
925 @code{\phrasingSlurDashed},
926 @code{\phrasingSlurDotted},
927 @code{\phrasingSlurHalfDashed},
928 @code{\phrasingSlurHalfSolid},
929 @code{\phrasingSlurDashPattern},
930 @code{\phrasingSlurSolid}.
931 @endpredefined
932
933 @seealso
934 Learning Manual:
935 @rlearning{On the un-nestedness of brackets and ties}.
936
937 Notation Reference:
938 @ref{Direction and placement},
939 @ref{Slurs}.
940
941 Snippets:
942 @rlsr{Expressive marks}.
943
944 Internals Reference:
945 @rinternals{PhrasingSlur}.
946
947
948 @node Breath marks
949 @unnumberedsubsubsec Breath marks
950
951 @cindex breath marks
952 @cindex pause mark
953 @funindex \breathe
954
955 Breath marks are entered using @code{\breathe}:
956
957 @lilypond[verbatim,quote]
958 { c''2. \breathe d''4 }
959 @end lilypond
960
961 Unlike other expressive marks, a breath mark is not associated with
962 the preceding note but is a separate music event.  So all the
963 expressive marks which are attached to the preceding note, any square
964 brackets indicating manual beams, and any brackets indicating slurs
965 and phrasing slurs must be placed before @code{\breathe}.
966
967 A breath mark will end an automatic beam; to override this behavior, see
968 @ref{Manual beams}.
969
970 @lilypond[verbatim,quote]
971 \relative { c''8 \breathe d e f g2 }
972 @end lilypond
973
974 Musical indicators for breath marks in ancient notation,
975 divisiones, are supported.  For details, see @ref{Divisiones}.
976
977
978 @snippets
979
980 @lilypondfile[verbatim,quote,texidoc,doctitle]
981 {changing-the-breath-mark-symbol.ly}
982
983 @cindex tick mark
984
985 @lilypondfile[verbatim,quote,texidoc,doctitle]
986 {using-a-tick-as-the-breath-mark-symbol.ly}
987
988 @cindex caesura
989 @cindex railroad tracks
990
991 @lilypondfile[verbatim,quote,texidoc,doctitle]
992 {inserting-a-caesura.ly}
993
994 @seealso
995 Music Glossary:
996 @rglos{caesura}.
997
998 Notation Reference:
999 @ref{Divisiones}.
1000
1001 Snippets:
1002 @rlsr{Expressive marks}.
1003
1004 Internals Reference:
1005 @rinternals{BreathingEvent},
1006 @rinternals{BreathingSign},
1007 @rinternals{Breathing_sign_engraver}.
1008
1009
1010 @node Falls and doits
1011 @unnumberedsubsubsec Falls and doits
1012
1013 @cindex falls
1014 @cindex doits
1015 @funindex \bendAfter
1016
1017 @notation{Falls} and @notation{doits} can be added to notes using
1018 the @code{\bendAfter} command.  The direction of the fall or doit
1019 is indicated with a plus or minus (up or down).  The number
1020 indicates the pitch interval that the fall or doit will extend
1021 @emph{beyond} the main note.
1022
1023 @lilypond[verbatim,quote]
1024 \relative c'' {
1025   c2\bendAfter #+4
1026   c2\bendAfter #-4
1027   c2\bendAfter #+6.5
1028   c2\bendAfter #-6.5
1029   c2\bendAfter #+8
1030   c2\bendAfter #-8
1031 }
1032 @end lilypond
1033
1034 @snippets
1035
1036 @lilypondfile[verbatim,quote,texidoc,doctitle]
1037 {adjusting-the-shape-of-falls-and-doits.ly}
1038
1039 @seealso
1040 Music Glossary:
1041 @rglos{fall},
1042 @rglos{doit}.
1043
1044 Snippets:
1045 @rlsr{Expressive marks}.
1046
1047
1048 @node Expressive marks as lines
1049 @subsection Expressive marks as lines
1050
1051 This section explains how to create various expressive marks that
1052 follow a linear path: glissandos, arpeggios, and trills.
1053
1054 @menu
1055 * Glissando::
1056 * Arpeggio::
1057 * Trills::
1058 @end menu
1059
1060 @node Glissando
1061 @unnumberedsubsubsec Glissando
1062
1063 @cindex glissando
1064 @funindex \glissando
1065
1066 A @notation{glissando} is created by appending @code{\glissando}
1067 to a note:
1068
1069 @lilypond[verbatim,quote]
1070 \relative {
1071   g'2\glissando g'
1072   c2\glissando c,
1073   \afterGrace f,1\glissando f'16
1074 }
1075 @end lilypond
1076
1077 A glissando can connect notes across staves:
1078
1079 @lilypond[verbatim,quote]
1080 \new PianoStaff <<
1081   \new Staff = "right" {
1082     e'''2\glissando
1083     \change Staff = "left"
1084     a,,4\glissando
1085     \change Staff = "right"
1086     b''8 r |
1087   }
1088   \new Staff = "left" {
1089     \clef bass
1090     s1
1091   }
1092 >>
1093 @end lilypond
1094
1095 A glissando can connect notes in chords.  If anything other than a
1096 direct one-to-one pairing of the notes in the two chords is required
1097 the connections between the notes are defined by setting
1098 @code{\glissandoMap}, where the notes of a chord are assumed to be
1099 numbered from zero in the order in which they appear in the input
1100 @file{.ly} file.
1101
1102 @lilypond[verbatim,quote]
1103 \relative {
1104   <c' e>1\glissando g' |
1105   <c, e>1\glissando |
1106   <g' b> |
1107   \break
1108   \set glissandoMap = #'((0 . 1) (1 . 0))
1109   <c, g'>1\glissando |
1110   <d a'> |
1111   \set glissandoMap = #'((0 . 0) (0 . 1) (0 . 2))
1112   c1\glissando |
1113   <d f a> |
1114   \set glissandoMap = #'((2 . 0) (1 . 0) (0 . 1))
1115   <f d a'>1\glissando |
1116   <c c'> |
1117 }
1118 @end lilypond
1119
1120 Different styles of glissandi can be created.  For details, see
1121 @ref{Line styles}.
1122
1123
1124 @snippets
1125 @lilypondfile[verbatim,quote,texidoc,doctitle]
1126 {contemporary-glissando.ly}
1127
1128 @lilypondfile[verbatim,quote,texidoc,doctitle]
1129 {adding-timing-marks-to-long-glissandi.ly}
1130
1131 @lilypondfile[verbatim,quote,texidoc,doctitle]
1132 {making-glissandi-breakable.ly}
1133
1134 @lilypondfile[verbatim,quote,texidoc,doctitle]
1135 {extending-glissandi-across-repeats.ly}
1136
1137 @seealso
1138 Music Glossary:
1139 @rglos{glissando}.
1140
1141 Notation Reference:
1142 @ref{Line styles}.
1143
1144 Snippets:
1145 @rlsr{Expressive marks}.
1146
1147 Internals Reference:
1148 @rinternals{Glissando}.
1149
1150 @knownissues
1151 Printing text over the line (such as @notation{gliss.}) is not
1152 supported.
1153
1154
1155 @node Arpeggio
1156 @unnumberedsubsubsec Arpeggio
1157
1158 @cindex arpeggio
1159 @cindex broken chord
1160 @cindex chord, broken
1161
1162 @funindex \arpeggio
1163 @funindex \arpeggioArrowUp
1164 @funindex \arpeggioArrowDown
1165 @funindex \arpeggioNormal
1166
1167 An @notation{arpeggio} on a chord (also known as a broken chord)
1168 is denoted by appending @code{\arpeggio} to the chord construct:
1169
1170 @lilypond[verbatim,quote]
1171 \relative { <c' e g c>1\arpeggio }
1172 @end lilypond
1173
1174 Different types of arpeggios may be written.
1175 @code{\arpeggioNormal} reverts to a normal arpeggio:
1176
1177 @lilypond[verbatim,quote]
1178 \relative {
1179   <c' e g c>2\arpeggio
1180
1181   \arpeggioArrowUp
1182   <c e g c>2\arpeggio
1183
1184   \arpeggioArrowDown
1185   <c e g c>2\arpeggio
1186
1187   \arpeggioNormal
1188   <c e g c>2\arpeggio
1189 }
1190 @end lilypond
1191
1192 @cindex arpeggio symbols, special
1193 @cindex special arpeggio symbols
1194
1195 @funindex \arpeggioBracket
1196 @funindex \arpeggioParenthesis
1197 @funindex \arpeggioParenthesisDashed
1198
1199 Special @emph{bracketed} arpeggio symbols can be created:
1200
1201 @lilypond[verbatim,quote]
1202 \relative {
1203   <c' e g c>2
1204
1205   \arpeggioBracket
1206   <c e g c>2\arpeggio
1207
1208   \arpeggioParenthesis
1209   <c e g c>2\arpeggio
1210
1211   \arpeggioParenthesisDashed
1212   <c e g c>2\arpeggio
1213
1214   \arpeggioNormal
1215   <c e g c>2\arpeggio
1216 }
1217 @end lilypond
1218
1219 The dash properties of the parenthesis arpeggio are controlled
1220 with the @code{'dash-definition} property, which is described at
1221 @ref{Slurs}.
1222
1223 Arpeggios can be explicitly written out with ties.  For more
1224 information, see @ref{Ties}.
1225
1226
1227 @predefined
1228 @code{\arpeggio},
1229 @code{\arpeggioArrowUp},
1230 @code{\arpeggioArrowDown},
1231 @code{\arpeggioNormal},
1232 @code{\arpeggioBracket},
1233 @code{\arpeggioParenthesis},
1234 @code{\arpeggioParenthesisDashed}.
1235 @endpredefined
1236
1237
1238 @snippets
1239
1240 @lilypondfile[verbatim,quote,texidoc,doctitle]
1241 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
1242
1243 @lilypondfile[verbatim,quote,texidoc,doctitle]
1244 {creating-cross-staff-arpeggios-in-other-contexts.ly}
1245
1246 @lilypondfile[verbatim,quote,texidoc,doctitle]
1247 {creating-arpeggios-across-notes-in-different-voices.ly}
1248
1249 @seealso
1250 Music Glossary:
1251 @rglos{arpeggio}.
1252
1253 Notation Reference:
1254 @ref{Slurs},
1255 @ref{Ties}.
1256
1257 Snippets:
1258 @rlsr{Expressive marks}.
1259
1260 Internals Reference:
1261 @rinternals{Arpeggio},
1262 @rinternals{Slur},
1263 @rinternals{PianoStaff}.
1264
1265 @knownissues
1266 @cindex cross-staff parenthesis-style arpeggio
1267 @cindex arpeggio, parenthesis-style, cross-staff
1268 @cindex arpeggio, cross-staff parenthesis-style
1269
1270 It is not possible to mix connected arpeggios and unconnected
1271 arpeggios in one @code{PianoStaff} at the same point in
1272 time.
1273
1274 The simple way of setting parenthesis-style arpeggio brackets does not work for
1275 cross-staff arpeggios; see @ref{Cross-staff stems}.
1276
1277
1278 @node Trills
1279 @unnumberedsubsubsec Trills
1280
1281 @cindex trills
1282
1283 @funindex \trill
1284 @funindex \startTrillSpan
1285 @funindex \stopTrillSpan
1286
1287 Short trills without an extender line are printed with
1288 @code{\trill}; see @ref{Articulations and ornamentations}.
1289
1290 Longer trills with an extender line are made with
1291 @code{\startTrillSpan} and @code{\stopTrillSpan}:
1292
1293 @lilypond[verbatim,quote]
1294 \relative {
1295   d''1\startTrillSpan
1296   d1
1297   c2\stopTrillSpan
1298   r2
1299 }
1300 @end lilypond
1301
1302 A trill spanner crossing a line break will restart exactly above
1303 the first note on the new line.
1304
1305 @lilypond[ragged-right,verbatim,quote]
1306 \relative {
1307   d''1\startTrillSpan
1308   \break
1309   d1
1310   c2\stopTrillSpan
1311   r2
1312 }
1313 @end lilypond
1314
1315 Consecutive trill spans will work without explicit
1316 @code{\stopTrillSpan} commands, since successive trill spanners will
1317 automatically become the right bound of the previous trill.
1318
1319 @lilypond[verbatim,quote]
1320 \relative {
1321   d''1\startTrillSpan
1322   d1
1323   b1\startTrillSpan
1324   d2\stopTrillSpan
1325   r2
1326 }
1327 @end lilypond
1328
1329 Trills can also be combined with grace notes.  The syntax of this
1330 construct and the method to precisely position the grace notes are
1331 described in @ref{Grace notes}.
1332
1333 @lilypond[verbatim,quote]
1334 \relative {
1335   d''1~\afterGrace
1336   d1\startTrillSpan { c32[ d]\stopTrillSpan }
1337   c2 r2
1338 }
1339 @end lilypond
1340
1341 @cindex pitched trills
1342 @cindex trills, pitched
1343 @funindex \pitchedTrill
1344
1345 Trills that require an auxiliary note with an explicit pitch can
1346 be typeset with the @code{\pitchedTrill} command.  The first
1347 argument is the main note, and the second is the @emph{trilled}
1348 note, printed as a stemless note head in parentheses.
1349
1350 @lilypond[verbatim,quote]
1351 \relative {
1352   \pitchedTrill
1353   d''2\startTrillSpan fis
1354   d2
1355   c2\stopTrillSpan
1356   r2
1357 }
1358 @end lilypond
1359
1360 @cindex pitched trill with accidental
1361 @cindex trill with accidental
1362
1363 Subsequent accidentals of the same note in the same measure will need
1364 to be added manually.  Only the accidental of the first pitched trill
1365 in a measure is printed.
1366
1367 @lilypond[verbatim,quote]
1368 \relative {
1369   \pitchedTrill
1370   eis''4\startTrillSpan fis
1371   eis4\stopTrillSpan
1372   \pitchedTrill
1373   eis4\startTrillSpan cis
1374   eis4\stopTrillSpan
1375   \pitchedTrill
1376   eis4\startTrillSpan fis
1377   eis4\stopTrillSpan
1378   \pitchedTrill
1379   eis4\startTrillSpan fis!
1380   eis4\stopTrillSpan
1381 }
1382 @end lilypond
1383
1384 @predefined
1385 @code{\startTrillSpan},
1386 @code{\stopTrillSpan}.
1387 @endpredefined
1388
1389 @seealso
1390 Music Glossary:
1391 @rglos{trill}.
1392
1393 Notation Reference:
1394 @ref{Articulations and ornamentations},
1395 @ref{Grace notes}.
1396
1397 Snippets:
1398 @rlsr{Expressive marks}.
1399
1400 Internals Reference:
1401 @rinternals{TrillSpanner}.