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