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