]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/expressive.itely
Fixed errors in Catalan translation
[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.17.25"
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 A breath mark will end an automatic beam; to override this behavior, see
964 @ref{Manual beams}.
965
966 @lilypond[verbatim,quote,relative=2]
967 c8 \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 @funindex bendAfter
1013
1014 @notation{Falls} and @notation{doits} can be added to notes using
1015 the @code{\bendAfter} command.  The direction of the fall or doit
1016 is indicated with a plus or minus (up or down).  The number
1017 indicates the pitch interval that the fall or doit will extend
1018 @emph{beyond} the main note.
1019
1020 @lilypond[verbatim,quote,relative=2]
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 @end lilypond
1028
1029 @snippets
1030
1031 @lilypondfile[verbatim,quote,texidoc,doctitle]
1032 {adjusting-the-shape-of-falls-and-doits.ly}
1033
1034 @seealso
1035 Music Glossary:
1036 @rglos{fall},
1037 @rglos{doit}.
1038
1039 Snippets:
1040 @rlsr{Expressive marks}.
1041
1042
1043 @node Expressive marks as lines
1044 @subsection Expressive marks as lines
1045
1046 This section explains how to create various expressive marks that
1047 follow a linear path: glissandos, arpeggios, and trills.
1048
1049 @menu
1050 * Glissando::
1051 * Arpeggio::
1052 * Trills::
1053 @end menu
1054
1055 @node Glissando
1056 @unnumberedsubsubsec Glissando
1057
1058 @cindex glissando
1059 @funindex \glissando
1060 @funindex glissando
1061
1062 A @notation{glissando} is created by appending @code{\glissando}
1063 to a note:
1064
1065 @lilypond[verbatim,quote,relative=2]
1066 g2\glissando g'
1067 c2\glissando c,
1068 \afterGrace f,1\glissando f'16
1069 @end lilypond
1070
1071 A glissando can connect notes across staves:
1072
1073 @lilypond[verbatim,quote]
1074 \new PianoStaff <<
1075   \new Staff = "right" {
1076     e'''2\glissando
1077     \change Staff = "left"
1078     a,,4\glissando
1079     \change Staff = "right"
1080     b''8 r |
1081   }
1082   \new Staff = "left" {
1083     \clef bass
1084     s1
1085   }
1086 >>
1087 @end lilypond
1088
1089 A glissando can connect notes in chords.  If anything other than a
1090 direct one-to-one pairing of the notes in the two chords is required
1091 the connections between the notes are defined by setting
1092 @code{\glissandoMap}, where the notes of a chord are assumed to be
1093 numbered from zero in the order in which they appear in the input
1094 @file{.ly} file.
1095
1096 @lilypond[verbatim,quote,relative=2]
1097 <c, e>1\glissando g' |
1098 <c, e>1\glissando |
1099 <g' b> |
1100 \break
1101 \set glissandoMap = #'((0 . 1) (1 . 0))
1102 <c, g'>1\glissando |
1103 <d a'> |
1104 \set glissandoMap = #'((0 . 0) (0 . 1) (0 . 2))
1105 c1\glissando |
1106 <d f a> |
1107 \set glissandoMap = #'((2 . 0) (1 . 0) (0 . 1))
1108 <f d a'>1\glissando |
1109 <c c'> |
1110 @end lilypond
1111
1112 Different styles of glissandi can be created.  For details, see
1113 @ref{Line styles}.
1114
1115
1116 @snippets
1117 @lilypondfile[verbatim,quote,texidoc,doctitle]
1118 {contemporary-glissando.ly}
1119
1120 @lilypondfile[verbatim,quote,texidoc,doctitle]
1121 {adding-timing-marks-to-long-glissandi.ly}
1122
1123 @lilypondfile[verbatim,quote,texidoc,doctitle]
1124 {making-glissandi-breakable.ly}
1125
1126 @lilypondfile[verbatim,quote,texidoc,doctitle]
1127 {extending-glissandi-across-repeats.ly}
1128
1129 @seealso
1130 Music Glossary:
1131 @rglos{glissando}.
1132
1133 Notation Reference:
1134 @ref{Line styles}.
1135
1136 Snippets:
1137 @rlsr{Expressive marks}.
1138
1139 Internals Reference:
1140 @rinternals{Glissando}.
1141
1142 @knownissues
1143 Printing text over the line (such as @notation{gliss.}) is not
1144 supported.
1145
1146
1147 @node Arpeggio
1148 @unnumberedsubsubsec Arpeggio
1149
1150 @cindex arpeggio
1151 @cindex broken chord
1152 @cindex chord, broken
1153
1154 @funindex \arpeggio
1155 @funindex arpeggio
1156 @funindex \arpeggioArrowUp
1157 @funindex arpeggioArrowUp
1158 @funindex \arpeggioArrowDown
1159 @funindex arpeggioArrowDown
1160 @funindex \arpeggioNormal
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,relative=1]
1167 <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,relative=1]
1174 <c e g c>2\arpeggio
1175
1176 \arpeggioArrowUp
1177 <c e g c>2\arpeggio
1178
1179 \arpeggioArrowDown
1180 <c e g c>2\arpeggio
1181
1182 \arpeggioNormal
1183 <c e g c>2\arpeggio
1184 @end lilypond
1185
1186 @cindex arpeggio symbols, special
1187 @cindex special arpeggio symbols
1188
1189 @funindex \arpeggioBracket
1190 @funindex arpeggioBracket
1191 @funindex \arpeggioParenthesis
1192 @funindex arpeggioParenthesis
1193 @funindex \arpeggioParenthesisDashed
1194 @funindex arpeggioParenthesisDashed
1195
1196 Special @emph{bracketed} arpeggio symbols can be created:
1197
1198 @lilypond[verbatim,quote,relative=1]
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 @end lilypond
1213
1214 The dash properties of the parenthesis arpeggio are controlled
1215 with the @code{'dash-details} property, which is described at @ref{Slurs}.
1216
1217 Arpeggios can be explicitly written out with ties.  For more
1218 information, see @ref{Ties}.
1219
1220
1221 @predefined
1222 @code{\arpeggio},
1223 @code{\arpeggioArrowUp},
1224 @code{\arpeggioArrowDown},
1225 @code{\arpeggioNormal},
1226 @code{\arpeggioBracket},
1227 @code{\arpeggioParenthesis}
1228 @code{\arpeggioParenthesisDashed}.
1229 @endpredefined
1230
1231
1232 @snippets
1233
1234 @lilypondfile[verbatim,quote,texidoc,doctitle]
1235 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
1236
1237 @lilypondfile[verbatim,quote,texidoc,doctitle]
1238 {creating-cross-staff-arpeggios-in-other-contexts.ly}
1239
1240 @lilypondfile[verbatim,quote,texidoc,doctitle]
1241 {creating-arpeggios-across-notes-in-different-voices.ly}
1242
1243 @seealso
1244 Music Glossary:
1245 @rglos{arpeggio}.
1246
1247 Notation Reference:
1248 @ref{Slurs},
1249 @ref{Ties}.
1250
1251 Snippets:
1252 @rlsr{Expressive marks}.
1253
1254 Internals Reference:
1255 @rinternals{Arpeggio},
1256 @rinternals{Slur},
1257 @rinternals{PianoStaff}.
1258
1259 @knownissues
1260 @cindex cross-staff parenthesis-style arpeggio
1261 @cindex arpeggio, parenthesis-style, cross-staff
1262 @cindex arpeggio, cross-staff parenthesis-style
1263
1264 It is not possible to mix connected arpeggios and unconnected
1265 arpeggios in one @code{PianoStaff} at the same point in
1266 time.
1267
1268 The simple way of setting parenthesis-style arpeggio brackets does not work for
1269 cross-staff arpeggios; see @ref{Cross-staff stems}.
1270
1271
1272 @node Trills
1273 @unnumberedsubsubsec Trills
1274
1275 @cindex trills
1276
1277 @funindex \trill
1278 @funindex trill
1279 @funindex \startTrillSpan
1280 @funindex startTrillSpan
1281 @funindex \stopTrillSpan
1282 @funindex stopTrillSpan
1283
1284 Short trills without an extender line are printed with
1285 @code{\trill}; see @ref{Articulations and ornamentations}.
1286
1287 Longer trills with an extender line are made with
1288 @code{\startTrillSpan} and @code{\stopTrillSpan}:
1289
1290 @lilypond[verbatim,quote,relative=2]
1291 d1\startTrillSpan
1292 d1
1293 c2\stopTrillSpan
1294 r2
1295 @end lilypond
1296
1297 A trill spanner crossing a line break will restart exactly above
1298 the first note on the new line.
1299
1300 @lilypond[ragged-right,verbatim,quote,relative=2]
1301 d1\startTrillSpan
1302 \break
1303 d1
1304 c2\stopTrillSpan
1305 r2
1306 @end lilypond
1307
1308 Consecutive trill spans will work without explicit
1309 @code{\stopTrillSpan} commands, since successive trill spanners will
1310 automatically become the right bound of the previous trill.
1311
1312 @lilypond[verbatim,quote,relative=2]
1313 d1\startTrillSpan
1314 d1
1315 b1\startTrillSpan
1316 d2\stopTrillSpan
1317 r2
1318 @end lilypond
1319
1320 Trills can also be combined with grace notes.  The syntax of this
1321 construct and the method to precisely position the grace notes are
1322 described in @ref{Grace notes}.
1323
1324 @lilypond[verbatim,quote,relative=2]
1325 d1~\afterGrace
1326 d1\startTrillSpan { c32[ d]\stopTrillSpan }
1327 c2 r2
1328 @end lilypond
1329
1330 @cindex pitched trills
1331 @cindex trills, pitched
1332 @funindex \pitchedTrill
1333 @funindex pitchedTrill
1334
1335 Trills that require an auxiliary note with an explicit pitch can
1336 be typeset with the @code{\pitchedTrill} command.  The first
1337 argument is the main note, and the second is the @emph{trilled}
1338 note, printed as a stemless note head in parentheses.
1339
1340 @lilypond[verbatim,quote,relative=2]
1341 \pitchedTrill
1342 d2\startTrillSpan fis
1343 d2
1344 c2\stopTrillSpan
1345 r2
1346 @end lilypond
1347
1348 @cindex pitched trill with accidental
1349 @cindex trill with accidental
1350
1351 Subsequent accidentals of the same note in the same measure will need
1352 to be added manually.  Only the accidental of the first pitched trill
1353 in a measure is printed.
1354
1355 @lilypond[verbatim,quote,relative=2]
1356 \pitchedTrill
1357 eis4\startTrillSpan fis
1358 eis4\stopTrillSpan
1359 \pitchedTrill
1360 eis4\startTrillSpan cis
1361 eis4\stopTrillSpan
1362 \pitchedTrill
1363 eis4\startTrillSpan fis
1364 eis4\stopTrillSpan
1365 \pitchedTrill
1366 eis4\startTrillSpan fis!
1367 eis4\stopTrillSpan
1368 @end lilypond
1369
1370 @predefined
1371 @code{\startTrillSpan},
1372 @code{\stopTrillSpan}.
1373 @endpredefined
1374
1375 @seealso
1376 Music Glossary:
1377 @rglos{trill}.
1378
1379 Notation Reference:
1380 @ref{Articulations and ornamentations},
1381 @ref{Grace notes}.
1382
1383 Snippets:
1384 @rlsr{Expressive marks}.
1385
1386 Internals Reference:
1387 @rinternals{TrillSpanner}.