]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/expressive.itely
Doc: Part of Issue 989 non-integer for \bendAfter
[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.12.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 * Attached to notes::
22 * Curves::
23 * Lines::
24 @end menu
25
26
27 @node Attached to notes
28 @subsection 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 \segno
112 @funindex \coda
113 @funindex \varcoda
114
115
116 @funindex -
117
118 A variety of symbols that denote articulations, ornamentations,
119 and other performance indications can be attached to a note using
120 this syntax:
121
122 @example
123 @var{note}\@var{name}
124 @end example
125
126 The possible values for @var{name} are listed in @ref{List of
127 articulations}.  For example:
128
129 @lilypond[verbatim,quote,relative=2]
130 c4\staccato c\mordent b2\turn
131 c1\fermata
132 @end lilypond
133
134 @cindex marcato
135 @cindex tenuto
136 @cindex staccatissimo
137 @cindex accent
138 @cindex staccato
139 @cindex portato
140
141 Some of these articulations have shorthands for easier entry.
142 Shorthands are appended to the note name, and their syntax
143 consists of a dash @code{-} followed by a symbol signifying the
144 articulation.  Predefined shorthands exist for @notation{marcato},
145 @notation{stopped}, @notation{tenuto}, @notation{staccatissimo},
146 @notation{accent}, @notation{staccato}, and @notation{portato}.
147 Their corresponding output appears as follows:
148
149 @lilypond[verbatim,quote,relative=2]
150 c4-^ c-+ c-- c-|
151 c4-> c-. c2-_
152 @end lilypond
153
154 The rules for the default placement of articulations are defined
155 in @file{scm/@/script@/.scm}.  Articulations and ornamentations
156 may be manually placed above or below the staff; see
157 @ref{Direction and placement}.
158
159 Articulations are @code{Script} objects.  Their properties are
160 described more fully in @rinternals{Script}.
161
162 In addition to articulations, text and markups can be attached to
163 notes.  See @ref{Text scripts}.
164
165 For more information about the ordering of Scripts and TextScripts that
166 are attached to the notes, see @rlearning{Placement of objects}.
167
168 @snippets
169
170 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
171 {modifying-default-values-for-articulation-shorthand-notation.ly}
172
173 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
174 {controlling-the-vertical-ordering-of-scripts.ly}
175
176 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
177 {creating-a-delayed-turn.ly}
178
179 @seealso
180 Music Glossary:
181 @rglos{tenuto},
182 @rglos{accent},
183 @rglos{staccato},
184 @rglos{portato}.
185
186 Learning Manual:
187 @rlearning{Placement of objects}.
188
189
190 Notation Reference:
191 @ref{Text scripts},
192 @ref{Direction and placement},
193 @ref{List of articulations},
194 @ref{Trills}.
195
196 Installed Files:
197 @file{scm/@/script@/.scm}.
198
199 Snippets:
200 @rlsr{Expressive marks}.
201
202 Internals Reference:
203 @rinternals{Script},
204 @rinternals{TextScript}.
205
206
207 @node Dynamics
208 @unnumberedsubsubsec Dynamics
209
210 @cindex absolute dynamics
211 @cindex dynamics
212 @cindex dynamics, absolute
213
214 @funindex \ppppp
215 @funindex ppppp
216 @funindex \pppp
217 @funindex pppp
218 @funindex \ppp
219 @funindex ppp
220 @funindex \pp
221 @funindex pp
222 @funindex \p
223 @funindex p
224 @funindex \mp
225 @funindex mp
226 @funindex \mf
227 @funindex mf
228 @funindex \f
229 @funindex f
230 @funindex \ff
231 @funindex ff
232 @funindex \fff
233 @funindex fff
234 @funindex \ffff
235 @funindex ffff
236 @funindex \fffff
237 @funindex fffff
238 @funindex \fp
239 @funindex fp
240 @funindex \sf
241 @funindex sf
242 @funindex \sff
243 @funindex sff
244 @funindex \sp
245 @funindex sp
246 @funindex \spp
247 @funindex spp
248 @funindex \sfz
249 @funindex sfz
250 @funindex \rfz
251 @funindex rfz
252
253 Absolute dynamic marks are specified using a command after a note,
254 such as @code{c4\ff}.  The available dynamic marks are
255 @code{\ppppp}, @code{\pppp}, @code{\ppp}, @code{\pp}, @code{\p},
256 @code{\mp}, @code{\mf}, @code{\f}, @code{\ff}, @code{\fff},
257 @code{\ffff}, @code{\fffff}, @code{\fp}, @code{\sf}, @code{\sff},
258 @code{\sp}, @code{\spp}, @code{\sfz}, and @code{\rfz}.  Dynamic
259 marks may be manually placed above or below the staff; see
260 @ref{Direction and placement}.
261
262 @lilypond[verbatim,quote,relative=2]
263 c2\ppp c\mp
264 c2\rfz c^\mf
265 c2_\spp c^\ff
266 @end lilypond
267
268 @cindex hairpin
269 @cindex crescendo
270 @cindex decrescendo
271 @cindex diminuendo
272
273 @funindex \<
274 @funindex \>
275 @funindex \!
276 @funindex \cr
277 @funindex cr
278 @funindex \decr
279 @funindex decr
280
281 A @notation{crescendo} mark is started with @code{\<} and
282 terminated with @code{\!}, an absolute dynamic, or an additional
283 crescendo or decrescendo mark.  A @notation{decrescendo} mark is
284 started with @code{\>} and is also terminated with @code{\!}, an
285 absolute dynamic, or another crescendo or decrescendo mark.
286 @code{\cr} and @code{\decr} may be used instead of @code{\<} and
287 @code{\>}.  @notation{Hairpins} are engraved by default using this
288 notation.
289
290 @lilypond[verbatim,quote,relative=2]
291 c2\< c\!
292 d2\< d\f
293 e2\< e\>
294 f2\> f\!
295 e2\> e\mp
296 d2\> d\>
297 c1\!
298 @end lilypond
299
300 Spacer rests are needed to engrave multiple marks on one note.
301
302 @cindex multiple dynamic marks on one note
303 @cindex dynamic marks, multiple on one note
304
305 @lilypond[verbatim,quote,relative=2]
306 c4\< c\! d\> e\!
307 << f1 { s4 s4\< s4\> s4\! } >>
308 @end lilypond
309
310 @cindex espressivo articulation
311
312 @funindex \espressivo
313 @funindex espressivo
314
315 In some situations the @code{\espressivo} articulation mark may be
316 the appropriate choice to indicate a crescendo and decrescendo on
317 one note:
318
319 @lilypond[verbatim,quote,relative=2]
320 c2 b4 a
321 g1\espressivo
322 @end lilypond
323
324
325 @funindex \crescTextCresc
326 @funindex crescTextCresc
327 @funindex \dimTextDecresc
328 @funindex dimTextDecresc
329 @funindex \dimTextDecr
330 @funindex dimTextDecr
331 @funindex \dimTextDim
332 @funindex dimTextDim
333 @funindex \crescHairpin
334 @funindex crescHairpin
335 @funindex \dimHairpin
336 @funindex dimHairpin
337
338 Crescendos and decrescendos can be engraved as textual markings
339 instead of hairpins.  Dashed lines are printed to indicate their
340 extent.  The built-in commands @code{\crescTextCresc},
341 @code{\dimTextDecresc}, @code{\dimTextDecr}, and @code{\dimTextDim}
342 will tell LilyPond to use such textual marks instead of hairpins
343 for all subsequent @code{\<} and @code{\>} commands.  The corresponding
344 @code{\crescHairpin} and @code{\dimHairpin} commands will revert
345 to hairpins again:
346
347 @lilypond[verbatim,quote,relative=2]
348 \crescTextCresc
349 c2\< d | e f\!
350 \dimTextDecresc
351 e2\> d | c b\!
352 \crescHairpin
353 c2\< d | e f\!
354 \dimHairpin
355 e2\> d\!
356 @end lilypond
357
358
359 To create new absolute dynamic marks or text that should be
360 aligned with dynamics, see @ref{New dynamic marks}.
361
362 @cindex dynamics, vertical positioning
363 @cindex vertical positioning of dynamics
364
365 @funindex DynamicLineSpanner
366
367
368 Vertical positioning of dynamics is handled by
369 @rinternals{DynamicLineSpanner}.
370 @funindex \dynamicUp
371 @funindex dynamicUp
372 @funindex \dynamicDown
373 @funindex dynamicDown
374 @funindex \dynamicNeutral
375 @funindex dynamicNeutral
376
377
378 @predefined
379 @code{\dynamicUp},
380 @code{\dynamicDown},
381 @code{\dynamicNeutral},
382 @code{\crescTextCresc},
383 @code{\dimTextDim},
384 @code{\dimTextDecr},
385 @code{\dimTextDecresc},
386 @code{\crescHairpin},
387 @code{\dimHairpin}.
388 @endpredefined
389
390
391 @snippets
392
393 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
394 {setting-hairpin-behavior-at-bar-lines.ly}
395
396 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
397 {setting-the-minimum-length-of-hairpins.ly}
398
399 @cindex al niente
400 @cindex niente, al
401
402 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
403 {printing-hairpins-using-al-niente-notation.ly}
404
405 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
406 {vertically-aligned-dynamics-and-textscripts.ly}
407
408 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
409 {hiding-the-extender-line-for-text-dynamics.ly}
410
411 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
412 {changing-text-and-spanner-styles-for-text-dynamics.ly}
413
414
415 @seealso
416 Music Glossary:
417 @rglos{al niente},
418 @rglos{crescendo},
419 @rglos{decrescendo},
420 @rglos{hairpin}.
421
422 Learning Manual:
423 @rlearning{Articulation and dynamics}.
424
425 Notation Reference:
426 @ref{Direction and placement},
427 @ref{New dynamic marks},
428 @ref{What goes into the MIDI output?},
429 @ref{Controlling MIDI dynamics}.
430
431 Snippets:
432 @rlsr{Expressive marks}.
433
434 Internals Reference:
435 @rinternals{DynamicText},
436 @rinternals{Hairpin},
437 @rinternals{DynamicLineSpanner}.
438
439
440 @node New dynamic marks
441 @unnumberedsubsubsec New dynamic marks
442
443 @cindex new dynamic marks
444 @cindex dynamic marks, new
445
446 The easiest way to create dynamic indications is to use
447 @code{\markup} objects.
448
449 @lilypond[verbatim,quote]
450 moltoF = \markup { molto \dynamic f }
451
452 \relative c' {
453   <d e>16_\moltoF <d e>
454   <d e>2..
455 }
456 @end lilypond
457
458 @cindex dynamics, editorial
459 @cindex dynamics, parenthesis
460 @cindex editorial dynamics
461 @funindex \bracket
462 @funindex bracket
463 @funindex \dynamic
464 @funindex dynamic
465
466 In markup mode, editorial dynamics (within parentheses or square
467 brackets) can be created.  The syntax for markup mode is described
468 in @ref{Formatting text}.
469
470 @lilypond[verbatim,quote]
471 roundF = \markup {
472     \center-align \concat { \bold { \italic ( }
473            \dynamic f \bold { \italic ) } } }
474 boxF = \markup { \bracket { \dynamic f } }
475 \relative c' {
476   c1_\roundF
477   c1_\boxF
478 }
479 @end lilypond
480
481 @cindex make-dynamic-script
482 @funindex make-dynamic-script
483
484 Simple, centered dynamic marks are easily created with the
485 @code{make-dynamic-script} function.
486
487 @lilypond[verbatim,quote]
488 sfzp = #(make-dynamic-script "sfzp")
489 \relative c' {
490   c4 c c\sfzp c
491 }
492 @end lilypond
493
494 In general, @code{make-dynamic-script} takes any markup object as its
495 argument.  The dynamic font only contains the characters
496 @code{f,m,p,r,s} and @code{z}, so if a dynamic mark that includes
497 plain text or punctuation symbols is desired, markup commands that
498 reverts font family and font encoding to normal text should be used,
499 for example @code{\normal-text}.  The interest of using
500 @code{make-dynamic-script} instead of an ordinary markup is ensuring
501 the vertical alignment of markup objects and hairpins that are
502 attached to the same note head.
503
504 @lilypond[verbatim,quote]
505 roundF = \markup { \center-align \concat {
506            \normal-text { \bold { \italic ( } }
507            \dynamic f
508            \normal-text { \bold { \italic ) } } } }
509 boxF = \markup { \bracket { \dynamic f } }
510 mfEspress = \markup { \center-align \line {
511               \hspace #3.7 mf \normal-text \italic espress. } }
512 roundFdynamic = #(make-dynamic-script roundF)
513 boxFdynamic = #(make-dynamic-script boxF)
514 mfEspressDynamic = #(make-dynamic-script mfEspress)
515 \relative c' {
516   c4_\roundFdynamic\< d e f
517   g,1~_\boxFdynamic\>
518   g1
519   g'1~\mfEspressDynamic
520   g1
521 }
522 @end lilypond
523
524 The Scheme form of markup mode may be used instead.  Its syntax is
525 explained in @rextend{Markup construction in Scheme}.
526
527 @lilypond[verbatim,quote]
528 moltoF = #(make-dynamic-script
529             (markup #:normal-text "molto"
530                     #:dynamic "f"))
531 \relative c' {
532   <d e>16 <d e>
533   <d e>2..\moltoF
534 }
535 @end lilypond
536
537 Font settings in markup mode are described in
538 @ref{Selecting font and font size}.
539
540
541 @seealso
542 Notation Reference:
543 @ref{Formatting text},
544 @ref{Selecting font and font size},
545 @ref{What goes into the MIDI output?},
546 @ref{Controlling MIDI dynamics}.
547
548 Snippets:
549 @rlsr{Expressive marks}.
550
551 Extend:
552 @rextend{Markup construction in Scheme}.
553
554
555
556 @node Curves
557 @subsection Curves
558
559 This section explains how to create various expressive marks that
560 are curved: normal slurs, phrasing slurs, breath marks, falls, and
561 doits.
562
563 @menu
564 * Slurs::
565 * Phrasing slurs::
566 * Breath marks::
567 * Falls and doits::
568 @end menu
569
570 @node Slurs
571 @unnumberedsubsubsec Slurs
572
573 @cindex slurs
574
575 @notation{Slurs} are entered using parentheses:
576
577 @warning{In polyphonic music, a slur must be terminated
578 in the same voice it began.}
579
580 @lilypond[verbatim,quote,relative=2]
581 f4( g a) a8 b(
582 a4 g2 f4)
583 <c e>2( <b d>2)
584 @end lilypond
585
586 @cindex slurs, manual placement
587 @cindex slurs, below notes
588 @cindex slurs, above notes
589 @funindex \slurDown
590 @funindex slurDown
591 @funindex \slurNeutral
592 @funindex slurNeutral
593
594 Slurs may be manually placed above or below the staff; see
595 @ref{Direction and placement}.
596
597 @cindex phrasing slur
598 @cindex multiple slurs
599 @cindex simultaneous slurs
600 @cindex slur, phrasing
601 @cindex slurs, multiple
602 @cindex slurs, simultaneous
603
604 Simultaneous or overlapping slurs are not permitted, but a phrasing
605 slur can overlap a slur.  This permits two slurs to be printed at
606 once.  For details, see @ref{Phrasing slurs}.
607
608 @cindex slur style
609 @cindex slur, solid
610 @cindex slur, dotted
611 @cindex slur, dashed
612 @cindex solid slur
613 @cindex dotted slur
614 @cindex dashed slur
615 @cindex style, slur
616 @funindex \slurDashed
617 @funindex slurDashed
618 @funindex \slurDotted
619 @funindex slurDotted
620 @funindex \slurSolid
621 @funindex slurSolid
622
623 Slurs can be solid, dotted, or dashed.  Solid is the default slur
624 style:
625
626 @lilypond[verbatim,quote,relative=1]
627 c4( e g2)
628 \slurDashed
629 g4( e c2)
630 \slurDotted
631 c4( e g2)
632 \slurSolid
633 g4( e c2)
634 @end lilypond
635
636 @funindex \slurHalfDashed
637 @funindex slurHalfDashed
638 @funindex \slurHalfSolid
639 @funindex slurHalfSolid
640 @cindex slur, half dashed and half solid
641
642 Slurs can also be made half-dashed (the first half dashed, the
643 second half solid) or half-solid (the first half solid, the second
644 half dashed):
645
646 @lilypond[verbatim,quote,relative=1]
647 c4( e g2)
648 \slurHalfDashed
649 g4( e c2)
650 \slurHalfSolid
651 c4( e g2)
652 \slurSolid
653 g4( e c2)
654 @end lilypond
655
656 @funindex \slurDashPattern
657 @funindex slurDashPattern
658 @cindex slur, defining dash patterns
659
660 Custom dash patterns for slurs can be defined:
661
662 @lilypond[verbatim,quote,relative=1]
663 c4( e g2)
664 \slurDashPattern #0.7 #0.75
665 g4( e c2)
666 \slurDashPattern #0.5 #2.0
667 c4( e g2)
668 \slurSolid
669 g4( e c2)
670 @end lilypond
671
672
673
674 @funindex \slurUp
675 @funindex slurUp
676
677
678 @predefined
679 @code{\slurUp},
680 @code{\slurDown},
681 @code{\slurNeutral},
682 @code{\slurDashed},
683 @code{\slurDotted},
684 @code{\slurHalfDashed},
685 @code{\slurHalfSolid},
686 @code{\slurDashPattern},
687 @code{\slurSolid}.
688 @endpredefined
689
690
691 @snippets
692
693 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
694 {using-double-slurs-for-legato-chords.ly}
695
696 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
697 {positioning-text-markups-inside-slurs.ly}
698
699 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
700 {making-slurs-with-complex-dash-structure.ly}
701
702
703 @seealso
704 Music Glossary:
705 @rglos{slur}.
706
707 Learning Manual:
708 @rlearning{On the un-nestedness of brackets and ties}.
709
710 Notation Reference:
711 @ref{Direction and placement},
712 @ref{Phrasing slurs}.
713
714 Snippets:
715 @rlsr{Expressive marks}.
716
717 Internals Reference:
718 @rinternals{Slur}.
719
720
721 @node Phrasing slurs
722 @unnumberedsubsubsec Phrasing slurs
723
724 @cindex phrasing slurs
725 @cindex phrasing marks
726 @cindex slur, phrasing
727 @cindex mark, phrasing
728 @funindex \(
729 @funindex \)
730
731 @notation{Phrasing slurs} (or phrasing marks) that indicate a
732 musical sentence are written using the commands @code{\(} and
733 @code{\)} respectively:
734
735 @lilypond[verbatim,quote,relative=2]
736 c4\( d( e) f(
737 e2) d\)
738 @end lilypond
739
740 @funindex \phrasingSlurUp
741 @funindex phrasingSlurUp
742 @funindex \phrasingSlurDown
743 @funindex phrasingSlurDown
744 @funindex \phrasingSlurNeutral
745 @funindex phrasingSlurNeutral
746
747 Typographically, a phrasing slur behaves almost exactly like a
748 normal slur.  However, they are treated as different objects; a
749 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
750 may be manually placed above or below the staff; see
751 @ref{Direction and placement}.
752
753 @cindex simultaneous phrasing slurs
754 @cindex multiple phrasing slurs
755 @cindex slur, simultaneous phrasing
756 @cindex slur, multiple phrasing
757 @cindex phrasing slur, simultaneous
758 @cindex phrasing slur, multiple
759
760 Simultaneous or overlapping phrasing slurs are not permitted.
761
762 @funindex phrasingSlurDashed
763 @funindex \phrasingSlurDashed
764 @funindex \phrasingSlurDotted
765 @funindex phrasingSlurDotted
766 @funindex \phrasingSlurSolid
767 @funindex phrasingSlurSolid
768 @cindex phrasing slur, dashed
769 @cindex dashed phrasing slur
770 @cindex phrasing slur, dotted
771 @cindex dotted phrasing slurs
772 @cindex slur, dashed phrasing
773 @cindex slur, dotted phrasing
774
775 Phrasing slurs can be solid, dotted, or dashed.  Solid is the default
776 style for phrasing slurs:
777
778 @lilypond[verbatim,quote,relative=1]
779 c4\( e g2\)
780 \phrasingSlurDashed
781 g4\( e c2\)
782 \phrasingSlurDotted
783 c4\( e g2\)
784 \phrasingSlurSolid
785 g4\( e c2\)
786 @end lilypond
787
788 @funindex phrasingSlurHalfDashed
789 @funindex \phrasingSlurHalfDashed
790 @funindex \phrasingSlurHalfSolid
791 @funindex phrasingSlurHalfSolid
792 @cindex phrasing slur, half solid and half dashed
793 @cindex slur, half solid and half dashed phrasing
794
795 Phrasing slurs can also be made half-dashed (the first half dashed, the
796 second half solid) or half-solid (the first half solid, the second
797 half dashed):
798
799 @lilypond[verbatim,quote,relative=1]
800 c4\( e g2\)
801 \phrasingSlurHalfDashed
802 g4\( e c2\)
803 \phrasingSlurHalfSolid
804 c4\( e g2\)
805 \phrasingSlurSolid
806 g4\( e c2\)
807 @end lilypond
808
809 @funindex \phrasingSlurDashPattern
810 @funindex phrasingSlurDashPattern
811 @cindex phrasing slur, defining dash patterns
812 @cindex slur, phrasing, defining dash patterns
813 @cindex slur, definind dash patterns for phrasing
814
815 Custom dash patterns for phrasing slurs can be defined:
816
817 @lilypond[verbatim,quote,relative=1]
818 c4\( e g2\)
819 \phrasingSlurDashPattern #0.7 #0.75
820 g4\( e c2\)
821 \phrasingSlurDashPattern #0.5 #2.0
822 c4\( e g2\)
823 \phrasingSlurSolid
824 g4\( e c2\)
825 @end lilypond
826
827 Dash pattern definitions for phrasing slurs have the same structure
828 as dash pattern definitions for slurs.  For more information about
829 complex dash patterns, see the snippets under @ref{Slurs}.
830
831 @predefined
832 @code{\phrasingSlurUp},
833 @code{\phrasingSlurDown},
834 @code{\phrasingSlurNeutral},
835 @code{\phrasingSlurDashed},
836 @code{\phrasingSlurDotted},
837 @code{\phrasingSlurHalfDashed},
838 @code{\phrasingSlurHalfSolid},
839 @code{\phrasingSlurDashPattern},
840 @code{\phrasingSlurSolid}.
841 @endpredefined
842
843
844 @seealso
845 Learning Manual:
846 @rlearning{On the un-nestedness of brackets and ties}.
847
848 Notation Reference:
849 @ref{Direction and placement},
850 @ref{Slurs}.
851
852 Snippets:
853 @rlsr{Expressive marks}.
854
855 Internals Reference:
856 @rinternals{PhrasingSlur}.
857
858
859 @node Breath marks
860 @unnumberedsubsubsec Breath marks
861
862 @cindex breath marks
863 @cindex pause mark
864 @funindex \breathe
865 @funindex breathe
866
867 Breath marks are entered using @code{\breathe}:
868
869 @lilypond[verbatim,quote,relative=2]
870 c2. \breathe d4
871 @end lilypond
872
873 A breath mark will end an automatic beam; to override this behavior, see
874 @ref{Manual beams}.
875
876 @lilypond[verbatim,quote,relative=2]
877 c8 \breathe d e f g2
878 @end lilypond
879
880 Musical indicators for breath marks in ancient notation,
881 divisiones, are supported.  For details, see @ref{Divisiones}.
882
883
884 @snippets
885
886 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
887 {changing-the-breath-mark-symbol.ly}
888
889 @cindex caesura
890 @cindex railroad tracks
891
892 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
893 {inserting-a-caesura.ly}
894
895
896 @seealso
897 Music Glossary:
898 @rglos{caesura}.
899
900 Notation Reference:
901 @ref{Divisiones}.
902
903 Snippets:
904 @rlsr{Expressive marks}.
905
906 Internals Reference:
907 @rinternals{BreathingEvent},
908 @rinternals{BreathingSign},
909 @rinternals{Breathing_sign_engraver}.
910
911
912 @node Falls and doits
913 @unnumberedsubsubsec Falls and doits
914
915 @cindex falls
916 @cindex doits
917 @funindex \bendAfter
918 @funindex bendAfter
919
920 @notation{Falls} and @notation{doits} can be added to notes using
921 the @code{\bendAfter} command.  The direction of the fall or doit
922 is indicated with a plus or minus (up or down).  The number
923 indicates the pitch interval that the fall or doit will extend
924 @emph{beyond} the main note.
925
926 @lilypond[verbatim,quote,relative=2]
927 c2-\bendAfter #+4
928 c2-\bendAfter #-4
929 c2-\bendAfter #+6.5
930 c2-\bendAfter #-6.5
931 c2-\bendAfter #+8
932 c2-\bendAfter #-8
933 @end lilypond
934
935 The dash @code{-} immediately preceding the @code{\bendAfter}
936 command is @emph{required} when writing falls and doits.
937
938
939 @snippets
940
941 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
942 {adjusting-the-shape-of-falls-and-doits.ly}
943
944
945 @seealso
946 Music Glossary:
947 @rglos{fall},
948 @rglos{doit}.
949
950 Snippets:
951 @rlsr{Expressive marks}.
952
953
954 @node Lines
955 @subsection Lines
956
957 This section explains how to create various expressive marks that
958 follow a linear path: glissandos, arpeggios, and trills.
959
960 @menu
961 * Glissando::
962 * Arpeggio::
963 * Trills::
964 @end menu
965
966 @node Glissando
967 @unnumberedsubsubsec Glissando
968
969 @cindex glissando
970 @funindex \glissando
971 @funindex glissando
972
973 A @notation{glissando} is created by attaching @code{\glissando}
974 to a note:
975
976 @lilypond[verbatim,quote,relative=2]
977 g2\glissando g'
978 c2\glissando c,
979 @end lilypond
980
981 Different styles of glissandi can be created.  For details, see
982 @ref{Line styles}.
983
984 @snippets
985
986 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
987 {contemporary-glissando.ly}
988
989
990 @seealso
991 Music Glossary:
992 @rglos{glissando}.
993
994 Notation Reference:
995 @ref{Line styles}.
996
997 Snippets:
998 @rlsr{Expressive marks}.
999
1000 Internals Reference:
1001 @rinternals{Glissando}.
1002
1003
1004 @knownissues
1005
1006 Printing text over the line (such as @notation{gliss.}) is not
1007 supported.
1008
1009
1010 @node Arpeggio
1011 @unnumberedsubsubsec Arpeggio
1012
1013 @cindex arpeggio
1014 @cindex broken chord
1015 @cindex chord, broken
1016
1017 @funindex \arpeggio
1018 @funindex arpeggio
1019 @funindex \arpeggioArrowUp
1020 @funindex arpeggioArrowUp
1021 @funindex \arpeggioArrowDown
1022 @funindex arpeggioArrowDown
1023 @funindex \arpeggioNormal
1024 @funindex arpeggioNormal
1025
1026 An @notation{arpeggio} on a chord (also known as a broken chord)
1027 is denoted by appending @code{\arpeggio} to the chord construct:
1028
1029 @lilypond[verbatim,quote,relative=1]
1030 <c e g c>1\arpeggio
1031 @end lilypond
1032
1033 Different types of arpeggios may be written.
1034 @code{\arpeggioNormal} reverts to a normal arpeggio:
1035
1036 @lilypond[verbatim,quote,relative=1]
1037 <c e g c>2\arpeggio
1038
1039 \arpeggioArrowUp
1040 <c e g c>2\arpeggio
1041
1042 \arpeggioArrowDown
1043 <c e g c>2\arpeggio
1044
1045 \arpeggioNormal
1046 <c e g c>2\arpeggio
1047 @end lilypond
1048
1049 @cindex arpeggio symbols, special
1050 @cindex special arpeggio symbols
1051
1052 @funindex \arpeggioBracket
1053 @funindex arpeggioBracket
1054 @funindex \arpeggioParenthesis
1055 @funindex arpeggioParenthesis
1056 @funindex \arpeggioParenthesisDashed
1057 @funindex arpeggioParenthesisDashed
1058
1059 Special @emph{bracketed} arpeggio symbols can be created:
1060
1061 @lilypond[verbatim,quote,relative=1]
1062 <c e g c>2
1063
1064 \arpeggioBracket
1065 <c e g c>2\arpeggio
1066
1067 \arpeggioParenthesis
1068 <c e g c>2\arpeggio
1069
1070 \arpeggioParenthesisDashed
1071 <c e g c>2\arpeggio
1072
1073 \arpeggioNormal
1074 <c e g c>2\arpeggio
1075 @end lilypond
1076
1077 The dash properties of the parenthesis arpeggio are controlled
1078 with the @code{'dash-details} property, which is described at @ref{Slurs}.
1079
1080 Arpeggios can be explicitly written out with ties.  For more
1081 information, see @ref{Ties}.
1082
1083
1084 @predefined
1085 @code{\arpeggio},
1086 @code{\arpeggioArrowUp},
1087 @code{\arpeggioArrowDown},
1088 @code{\arpeggioNormal},
1089 @code{\arpeggioBracket},
1090 @code{\arpeggioParenthesis}
1091 @code{\arpeggioParenthesisDashed}.
1092 @endpredefined
1093
1094
1095 @snippets
1096
1097 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1098 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
1099
1100 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1101 {creating-cross-staff-arpeggios-in-other-contexts.ly}
1102
1103 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1104 {creating-arpeggios-across-notes-in-different-voices.ly}
1105
1106
1107 @seealso
1108 Music Glossary:
1109 @rglos{arpeggio}.
1110
1111 Notation Reference:
1112 @ref{Slurs},
1113 @ref{Ties}.
1114
1115 Snippets:
1116 @rlsr{Expressive marks}.
1117
1118 Internals Reference:
1119 @rinternals{Arpeggio},
1120 @rinternals{Slur},
1121 @rinternals{PianoStaff}.
1122
1123
1124 @knownissues
1125
1126 @cindex cross-staff parenthesis-style arpeggio
1127 @cindex arpeggio, parenthesis-style, cross-staff
1128 @cindex arpeggio, cross-staff parenthesis-style
1129
1130 It is not possible to mix connected arpeggios and unconnected
1131 arpeggios in one @code{PianoStaff} at the same point in
1132 time.
1133
1134 The parenthesis-style arpeggio brackets do not work for
1135 cross-staff arpeggios.
1136
1137
1138 @node Trills
1139 @unnumberedsubsubsec Trills
1140
1141 @cindex trills
1142
1143 @funindex \trill
1144 @funindex trill
1145 @funindex \startTrillSpan
1146 @funindex startTrillSpan
1147 @funindex \stopTrillSpan
1148 @funindex stopTrillSpan
1149
1150 Short @notation{trills} without an extender line are printed with
1151 @code{\trill}; see @ref{Articulations and ornamentations}.
1152
1153 Longer trills with an extender line are made with
1154 @code{\startTrillSpan} and @code{\stopTrillSpan}:
1155
1156 @lilypond[verbatim,quote,relative=2]
1157 d1~\startTrillSpan
1158 d1
1159 c2\stopTrillSpan r2
1160 @end lilypond
1161
1162 In the following example, a trill is combined with grace notes.
1163 The syntax of this construct and the method to precisely position
1164 the grace notes are described in @ref{Grace notes}.
1165
1166 @lilypond[verbatim,quote,relative=2]
1167 c1 \afterGrace
1168 d1\startTrillSpan { c32[ d]\stopTrillSpan }
1169 e2 r2
1170 @end lilypond
1171
1172 @cindex pitched trills
1173 @cindex trills, pitched
1174 @funindex \pitchedTrill
1175 @funindex pitchedTrill
1176
1177 Trills that require an auxiliary note with an explicit pitch can
1178 be typeset with the @code{\pitchedTrill} command.  The first
1179 argument is the main note, and the second is the @emph{trilled}
1180 note, printed as a stemless note head in parentheses.
1181
1182 @lilypond[verbatim,quote,relative=1]
1183 \pitchedTrill e2\startTrillSpan fis
1184 d\stopTrillSpan
1185 @end lilypond
1186
1187 @cindex pitched trill with forced accidental
1188 @cindex trill, pitched with forced accidental
1189 @cindex accidental, forced for pitched trill
1190
1191 In the following example, the second pitched trill is ambiguous;
1192 the accidental of the trilled note is not printed.  As a
1193 workaround, the accidentals of the trilled notes can be forced.
1194 The second measure illustrates this method:
1195
1196 @lilypond[verbatim,quote,relative=2]
1197 \pitchedTrill eis4\startTrillSpan fis
1198 g\stopTrillSpan
1199 \pitchedTrill eis4\startTrillSpan fis
1200 g\stopTrillSpan
1201 \pitchedTrill eis4\startTrillSpan fis
1202 g\stopTrillSpan
1203 \pitchedTrill eis4\startTrillSpan fis!
1204 g\stopTrillSpan
1205 @end lilypond
1206
1207
1208 @predefined
1209 @code{\startTrillSpan},
1210 @code{\stopTrillSpan}.
1211 @endpredefined
1212
1213
1214 @seealso
1215 Music Glossary:
1216 @rglos{trill}.
1217
1218 Notation Reference:
1219 @ref{Articulations and ornamentations},
1220 @ref{Grace notes}.
1221
1222 Snippets:
1223 @rlsr{Expressive marks}.
1224
1225 Internals Reference:
1226 @rinternals{TrillSpanner}.
1227