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