]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/expressive.itely
Issue 4952 Clearify ending of hairpins at bar line in NR
[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 number or string.
689
690 @lilypond[verbatim,quote]
691 \fixed c' {
692   <c~ f\=1( g\=2( >2 <c e\=1) a\=2) >
693 }
694 @end lilypond
695
696 @cindex slur style
697 @cindex slur, solid
698 @cindex slur, dotted
699 @cindex slur, dashed
700 @cindex solid slur
701 @cindex dotted slur
702 @cindex dashed slur
703 @cindex style, slur
704 @funindex \slurDashed
705 @funindex \slurDotted
706 @funindex \slurSolid
707
708 Slurs can be solid, dotted, or dashed.  Solid is the default slur
709 style:
710
711 @lilypond[verbatim,quote]
712 \relative {
713   c'4( e g2)
714   \slurDashed
715   g4( e c2)
716   \slurDotted
717   c4( e g2)
718   \slurSolid
719   g4( e c2)
720 }
721 @end lilypond
722
723 @funindex \slurHalfDashed
724 @funindex \slurHalfSolid
725 @cindex slur, half dashed and half solid
726
727 Slurs can also be made half-dashed (the first half dashed, the
728 second half solid) or half-solid (the first half solid, the second
729 half dashed):
730
731 @lilypond[verbatim,quote]
732 \relative {
733   c'4( e g2)
734   \slurHalfDashed
735   g4( e c2)
736   \slurHalfSolid
737   c4( e g2)
738   \slurSolid
739   g4( e c2)
740 }
741 @end lilypond
742
743 @funindex \slurDashPattern
744 @cindex slur, defining dash patterns
745
746 Custom dash patterns for slurs can be defined:
747
748 @lilypond[verbatim,quote]
749 \relative {
750   c'4( e g2)
751   \slurDashPattern #0.7 #0.75
752   g4( e c2)
753   \slurDashPattern #0.5 #2.0
754   c4( e g2)
755   \slurSolid
756   g4( e c2)
757 }
758 @end lilypond
759
760
761
762 @funindex \slurUp
763
764
765 @predefined
766 @code{\slurUp},
767 @code{\slurDown},
768 @code{\slurNeutral},
769 @code{\slurDashed},
770 @code{\slurDotted},
771 @code{\slurHalfDashed},
772 @code{\slurHalfSolid},
773 @code{\slurDashPattern},
774 @code{\slurSolid}.
775 @endpredefined
776
777
778 @snippets
779
780 @lilypondfile[verbatim,quote,texidoc,doctitle]
781 {using-double-slurs-for-legato-chords.ly}
782
783 @lilypondfile[verbatim,quote,texidoc,doctitle]
784 {positioning-text-markups-inside-slurs.ly}
785
786 @lilypondfile[verbatim,quote,texidoc,doctitle]
787 {making-slurs-with-complex-dash-structure.ly}
788
789 @seealso
790 Music Glossary:
791 @rglos{slur}.
792
793 Learning Manual:
794 @rlearning{On the un-nestedness of brackets and ties}.
795
796 Notation Reference:
797 @ref{Direction and placement},
798 @ref{Phrasing slurs}.
799
800 Snippets:
801 @rlsr{Expressive marks}.
802
803 Internals Reference:
804 @rinternals{Slur}.
805
806
807 @node Phrasing slurs
808 @unnumberedsubsubsec Phrasing slurs
809
810 @cindex phrasing slurs
811 @cindex phrasing marks
812 @cindex slur, phrasing
813 @cindex mark, phrasing
814 @funindex \(
815 @funindex \)
816
817 @notation{Phrasing slurs} (or phrasing marks) that indicate a
818 musical sentence are written using the commands @code{\(} and
819 @code{\)} respectively:
820
821 @lilypond[verbatim,quote]
822 \relative {
823   c''4\( d( e) f(
824   e2) d\)
825 }
826 @end lilypond
827
828 @funindex \phrasingSlurUp
829 @funindex \phrasingSlurDown
830 @funindex \phrasingSlurNeutral
831
832 Typographically, a phrasing slur behaves almost exactly like a
833 normal slur.  However, they are treated as different objects; a
834 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
835 may be manually placed above or below the staff; see
836 @ref{Direction and placement}.
837
838 @cindex simultaneous phrasing slurs
839 @cindex multiple phrasing slurs
840 @cindex slur, simultaneous phrasing
841 @cindex slur, multiple phrasing
842 @cindex phrasing slur, simultaneous
843 @cindex phrasing slur, multiple
844
845 Simultaneous or overlapping phrasing slurs are entered using
846 @code{\=} as with regular slurs, see @ref{Slurs}.
847
848 @funindex \phrasingSlurDashed
849 @funindex \phrasingSlurDotted
850 @funindex \phrasingSlurSolid
851 @cindex phrasing slur, dashed
852 @cindex dashed phrasing slur
853 @cindex phrasing slur, dotted
854 @cindex dotted phrasing slurs
855 @cindex slur, dashed phrasing
856 @cindex slur, dotted phrasing
857
858 Phrasing slurs can be solid, dotted, or dashed.  Solid is the default
859 style for phrasing slurs:
860
861 @lilypond[verbatim,quote]
862 \relative {
863   c'4\( e g2\)
864   \phrasingSlurDashed
865   g4\( e c2\)
866   \phrasingSlurDotted
867   c4\( e g2\)
868   \phrasingSlurSolid
869   g4\( e c2\)
870 }
871 @end lilypond
872
873 @funindex \phrasingSlurHalfDashed
874 @funindex \phrasingSlurHalfSolid
875 @cindex phrasing slur, half solid and half dashed
876 @cindex slur, half solid and half dashed phrasing
877
878 Phrasing slurs can also be made half-dashed (the first half dashed, the
879 second half solid) or half-solid (the first half solid, the second
880 half dashed):
881
882 @lilypond[verbatim,quote]
883 \relative {
884   c'4\( e g2\)
885   \phrasingSlurHalfDashed
886   g4\( e c2\)
887   \phrasingSlurHalfSolid
888   c4\( e g2\)
889   \phrasingSlurSolid
890   g4\( e c2\)
891 }
892 @end lilypond
893
894 @funindex \phrasingSlurDashPattern
895 @cindex phrasing slur, defining dash patterns
896 @cindex slur, phrasing, defining dash patterns
897 @cindex slur, defining dash patterns for phrasing
898
899 Custom dash patterns for phrasing slurs can be defined:
900
901 @lilypond[verbatim,quote]
902 \relative {
903   c'4\( e g2\)
904   \phrasingSlurDashPattern #0.7 #0.75
905   g4\( e c2\)
906   \phrasingSlurDashPattern #0.5 #2.0
907   c4\( e g2\)
908   \phrasingSlurSolid
909   g4\( e c2\)
910 }
911 @end lilypond
912
913 Dash pattern definitions for phrasing slurs have the same structure
914 as dash pattern definitions for slurs.  For more information about
915 complex dash patterns, see the snippets under @ref{Slurs}.
916
917 @predefined
918 @code{\phrasingSlurUp},
919 @code{\phrasingSlurDown},
920 @code{\phrasingSlurNeutral},
921 @code{\phrasingSlurDashed},
922 @code{\phrasingSlurDotted},
923 @code{\phrasingSlurHalfDashed},
924 @code{\phrasingSlurHalfSolid},
925 @code{\phrasingSlurDashPattern},
926 @code{\phrasingSlurSolid}.
927 @endpredefined
928
929 @seealso
930 Learning Manual:
931 @rlearning{On the un-nestedness of brackets and ties}.
932
933 Notation Reference:
934 @ref{Direction and placement},
935 @ref{Slurs}.
936
937 Snippets:
938 @rlsr{Expressive marks}.
939
940 Internals Reference:
941 @rinternals{PhrasingSlur}.
942
943
944 @node Breath marks
945 @unnumberedsubsubsec Breath marks
946
947 @cindex breath marks
948 @cindex pause mark
949 @funindex \breathe
950
951 Breath marks are entered using @code{\breathe}:
952
953 @lilypond[verbatim,quote]
954 { c''2. \breathe d''4 }
955 @end lilypond
956
957 Unlike other expressive marks, a breath mark is not associated with
958 the preceding note but is a separate music event.  So all the
959 expressive marks which are attached to the preceding note, any square
960 brackets indicating manual beams, and any brackets indicating slurs
961 and phrasing slurs must be placed before @code{\breathe}.
962
963 A breath mark will end an automatic beam; to override this behavior, see
964 @ref{Manual beams}.
965
966 @lilypond[verbatim,quote]
967 \relative { c''8 \breathe d e f g2 }
968 @end lilypond
969
970 Musical indicators for breath marks in ancient notation,
971 divisiones, are supported.  For details, see @ref{Divisiones}.
972
973
974 @snippets
975
976 @lilypondfile[verbatim,quote,texidoc,doctitle]
977 {changing-the-breath-mark-symbol.ly}
978
979 @cindex tick mark
980
981 @lilypondfile[verbatim,quote,texidoc,doctitle]
982 {using-a-tick-as-the-breath-mark-symbol.ly}
983
984 @cindex caesura
985 @cindex railroad tracks
986
987 @lilypondfile[verbatim,quote,texidoc,doctitle]
988 {inserting-a-caesura.ly}
989
990 @seealso
991 Music Glossary:
992 @rglos{caesura}.
993
994 Notation Reference:
995 @ref{Divisiones}.
996
997 Snippets:
998 @rlsr{Expressive marks}.
999
1000 Internals Reference:
1001 @rinternals{BreathingEvent},
1002 @rinternals{BreathingSign},
1003 @rinternals{Breathing_sign_engraver}.
1004
1005
1006 @node Falls and doits
1007 @unnumberedsubsubsec Falls and doits
1008
1009 @cindex falls
1010 @cindex doits
1011 @funindex \bendAfter
1012
1013 @notation{Falls} and @notation{doits} can be added to notes using
1014 the @code{\bendAfter} command.  The direction of the fall or doit
1015 is indicated with a plus or minus (up or down).  The number
1016 indicates the pitch interval that the fall or doit will extend
1017 @emph{beyond} the main note.
1018
1019 @lilypond[verbatim,quote]
1020 \relative c'' {
1021   c2\bendAfter #+4
1022   c2\bendAfter #-4
1023   c2\bendAfter #+6.5
1024   c2\bendAfter #-6.5
1025   c2\bendAfter #+8
1026   c2\bendAfter #-8
1027 }
1028 @end lilypond
1029
1030 @snippets
1031
1032 @lilypondfile[verbatim,quote,texidoc,doctitle]
1033 {adjusting-the-shape-of-falls-and-doits.ly}
1034
1035 @seealso
1036 Music Glossary:
1037 @rglos{fall},
1038 @rglos{doit}.
1039
1040 Snippets:
1041 @rlsr{Expressive marks}.
1042
1043
1044 @node Expressive marks as lines
1045 @subsection Expressive marks as lines
1046
1047 This section explains how to create various expressive marks that
1048 follow a linear path: glissandos, arpeggios, and trills.
1049
1050 @menu
1051 * Glissando::
1052 * Arpeggio::
1053 * Trills::
1054 @end menu
1055
1056 @node Glissando
1057 @unnumberedsubsubsec Glissando
1058
1059 @cindex glissando
1060 @funindex \glissando
1061
1062 A @notation{glissando} is created by appending @code{\glissando}
1063 to a note:
1064
1065 @lilypond[verbatim,quote]
1066 \relative {
1067   g'2\glissando g'
1068   c2\glissando c,
1069   \afterGrace f,1\glissando f'16
1070 }
1071 @end lilypond
1072
1073 A glissando can connect notes across staves:
1074
1075 @lilypond[verbatim,quote]
1076 \new PianoStaff <<
1077   \new Staff = "right" {
1078     e'''2\glissando
1079     \change Staff = "left"
1080     a,,4\glissando
1081     \change Staff = "right"
1082     b''8 r |
1083   }
1084   \new Staff = "left" {
1085     \clef bass
1086     s1
1087   }
1088 >>
1089 @end lilypond
1090
1091 A glissando can connect notes in chords.  If anything other than a
1092 direct one-to-one pairing of the notes in the two chords is required
1093 the connections between the notes are defined by setting
1094 @code{\glissandoMap}, where the notes of a chord are assumed to be
1095 numbered from zero in the order in which they appear in the input
1096 @file{.ly} file.
1097
1098 @lilypond[verbatim,quote]
1099 \relative {
1100   <c' e>1\glissando g' |
1101   <c, e>1\glissando |
1102   <g' b> |
1103   \break
1104   \set glissandoMap = #'((0 . 1) (1 . 0))
1105   <c, g'>1\glissando |
1106   <d a'> |
1107   \set glissandoMap = #'((0 . 0) (0 . 1) (0 . 2))
1108   c1\glissando |
1109   <d f a> |
1110   \set glissandoMap = #'((2 . 0) (1 . 0) (0 . 1))
1111   <f d a'>1\glissando |
1112   <c c'> |
1113 }
1114 @end lilypond
1115
1116 Different styles of glissandi can be created.  For details, see
1117 @ref{Line styles}.
1118
1119
1120 @snippets
1121 @lilypondfile[verbatim,quote,texidoc,doctitle]
1122 {contemporary-glissando.ly}
1123
1124 @lilypondfile[verbatim,quote,texidoc,doctitle]
1125 {adding-timing-marks-to-long-glissandi.ly}
1126
1127 @lilypondfile[verbatim,quote,texidoc,doctitle]
1128 {making-glissandi-breakable.ly}
1129
1130 @lilypondfile[verbatim,quote,texidoc,doctitle]
1131 {extending-glissandi-across-repeats.ly}
1132
1133 @seealso
1134 Music Glossary:
1135 @rglos{glissando}.
1136
1137 Notation Reference:
1138 @ref{Line styles}.
1139
1140 Snippets:
1141 @rlsr{Expressive marks}.
1142
1143 Internals Reference:
1144 @rinternals{Glissando}.
1145
1146 @knownissues
1147 Printing text over the line (such as @notation{gliss.}) is not
1148 supported.
1149
1150
1151 @node Arpeggio
1152 @unnumberedsubsubsec Arpeggio
1153
1154 @cindex arpeggio
1155 @cindex broken chord
1156 @cindex chord, broken
1157
1158 @funindex \arpeggio
1159 @funindex \arpeggioArrowUp
1160 @funindex \arpeggioArrowDown
1161 @funindex \arpeggioNormal
1162
1163 An @notation{arpeggio} on a chord (also known as a broken chord)
1164 is denoted by appending @code{\arpeggio} to the chord construct:
1165
1166 @lilypond[verbatim,quote]
1167 \relative { <c' e g c>1\arpeggio }
1168 @end lilypond
1169
1170 Different types of arpeggios may be written.
1171 @code{\arpeggioNormal} reverts to a normal arpeggio:
1172
1173 @lilypond[verbatim,quote]
1174 \relative {
1175   <c' e g c>2\arpeggio
1176
1177   \arpeggioArrowUp
1178   <c e g c>2\arpeggio
1179
1180   \arpeggioArrowDown
1181   <c e g c>2\arpeggio
1182
1183   \arpeggioNormal
1184   <c e g c>2\arpeggio
1185 }
1186 @end lilypond
1187
1188 @cindex arpeggio symbols, special
1189 @cindex special arpeggio symbols
1190
1191 @funindex \arpeggioBracket
1192 @funindex \arpeggioParenthesis
1193 @funindex \arpeggioParenthesisDashed
1194
1195 Special @emph{bracketed} arpeggio symbols can be created:
1196
1197 @lilypond[verbatim,quote]
1198 \relative {
1199   <c' e g c>2
1200
1201   \arpeggioBracket
1202   <c e g c>2\arpeggio
1203
1204   \arpeggioParenthesis
1205   <c e g c>2\arpeggio
1206
1207   \arpeggioParenthesisDashed
1208   <c e g c>2\arpeggio
1209
1210   \arpeggioNormal
1211   <c e g c>2\arpeggio
1212 }
1213 @end lilypond
1214
1215 The dash properties of the parenthesis arpeggio are controlled
1216 with the @code{'dash-definition} property, which is described at
1217 @ref{Slurs}.
1218
1219 Arpeggios can be explicitly written out with ties.  For more
1220 information, see @ref{Ties}.
1221
1222
1223 @predefined
1224 @code{\arpeggio},
1225 @code{\arpeggioArrowUp},
1226 @code{\arpeggioArrowDown},
1227 @code{\arpeggioNormal},
1228 @code{\arpeggioBracket},
1229 @code{\arpeggioParenthesis},
1230 @code{\arpeggioParenthesisDashed}.
1231 @endpredefined
1232
1233
1234 @snippets
1235
1236 @lilypondfile[verbatim,quote,texidoc,doctitle]
1237 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
1238
1239 @lilypondfile[verbatim,quote,texidoc,doctitle]
1240 {creating-cross-staff-arpeggios-in-other-contexts.ly}
1241
1242 @lilypondfile[verbatim,quote,texidoc,doctitle]
1243 {creating-arpeggios-across-notes-in-different-voices.ly}
1244
1245 @seealso
1246 Music Glossary:
1247 @rglos{arpeggio}.
1248
1249 Notation Reference:
1250 @ref{Slurs},
1251 @ref{Ties}.
1252
1253 Snippets:
1254 @rlsr{Expressive marks}.
1255
1256 Internals Reference:
1257 @rinternals{Arpeggio},
1258 @rinternals{Slur},
1259 @rinternals{PianoStaff}.
1260
1261 @knownissues
1262 @cindex cross-staff parenthesis-style arpeggio
1263 @cindex arpeggio, parenthesis-style, cross-staff
1264 @cindex arpeggio, cross-staff parenthesis-style
1265
1266 It is not possible to mix connected arpeggios and unconnected
1267 arpeggios in one @code{PianoStaff} at the same point in
1268 time.
1269
1270 The simple way of setting parenthesis-style arpeggio brackets does not work for
1271 cross-staff arpeggios; see @ref{Cross-staff stems}.
1272
1273
1274 @node Trills
1275 @unnumberedsubsubsec Trills
1276
1277 @cindex trills
1278
1279 @funindex \trill
1280 @funindex \startTrillSpan
1281 @funindex \stopTrillSpan
1282
1283 Short trills without an extender line are printed with
1284 @code{\trill}; see @ref{Articulations and ornamentations}.
1285
1286 Longer trills with an extender line are made with
1287 @code{\startTrillSpan} and @code{\stopTrillSpan}:
1288
1289 @lilypond[verbatim,quote]
1290 \relative {
1291   d''1\startTrillSpan
1292   d1
1293   c2\stopTrillSpan
1294   r2
1295 }
1296 @end lilypond
1297
1298 A trill spanner crossing a line break will restart exactly above
1299 the first note on the new line.
1300
1301 @lilypond[ragged-right,verbatim,quote]
1302 \relative {
1303   d''1\startTrillSpan
1304   \break
1305   d1
1306   c2\stopTrillSpan
1307   r2
1308 }
1309 @end lilypond
1310
1311 Consecutive trill spans will work without explicit
1312 @code{\stopTrillSpan} commands, since successive trill spanners will
1313 automatically become the right bound of the previous trill.
1314
1315 @lilypond[verbatim,quote]
1316 \relative {
1317   d''1\startTrillSpan
1318   d1
1319   b1\startTrillSpan
1320   d2\stopTrillSpan
1321   r2
1322 }
1323 @end lilypond
1324
1325 Trills can also be combined with grace notes.  The syntax of this
1326 construct and the method to precisely position the grace notes are
1327 described in @ref{Grace notes}.
1328
1329 @lilypond[verbatim,quote]
1330 \relative {
1331   d''1~\afterGrace
1332   d1\startTrillSpan { c32[ d]\stopTrillSpan }
1333   c2 r2
1334 }
1335 @end lilypond
1336
1337 @cindex pitched trills
1338 @cindex trills, pitched
1339 @funindex \pitchedTrill
1340
1341 Trills that require an auxiliary note with an explicit pitch can
1342 be typeset with the @code{\pitchedTrill} command.  The first
1343 argument is the main note, and the second is the @emph{trilled}
1344 note, printed as a stemless note head in parentheses.
1345
1346 @lilypond[verbatim,quote]
1347 \relative {
1348   \pitchedTrill
1349   d''2\startTrillSpan fis
1350   d2
1351   c2\stopTrillSpan
1352   r2
1353 }
1354 @end lilypond
1355
1356 @cindex pitched trill with accidental
1357 @cindex trill with accidental
1358
1359 Subsequent accidentals of the same note in the same measure will need
1360 to be added manually.  Only the accidental of the first pitched trill
1361 in a measure is printed.
1362
1363 @lilypond[verbatim,quote]
1364 \relative {
1365   \pitchedTrill
1366   eis''4\startTrillSpan fis
1367   eis4\stopTrillSpan
1368   \pitchedTrill
1369   eis4\startTrillSpan cis
1370   eis4\stopTrillSpan
1371   \pitchedTrill
1372   eis4\startTrillSpan fis
1373   eis4\stopTrillSpan
1374   \pitchedTrill
1375   eis4\startTrillSpan fis!
1376   eis4\stopTrillSpan
1377 }
1378 @end lilypond
1379
1380 @predefined
1381 @code{\startTrillSpan},
1382 @code{\stopTrillSpan}.
1383 @endpredefined
1384
1385 @seealso
1386 Music Glossary:
1387 @rglos{trill}.
1388
1389 Notation Reference:
1390 @ref{Articulations and ornamentations},
1391 @ref{Grace notes}.
1392
1393 Snippets:
1394 @rlsr{Expressive marks}.
1395
1396 Internals Reference:
1397 @rinternals{TrillSpanner}.