]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/expressive.itely
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / user / 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.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.11.61"
10
11 @node Expressive marks
12 @section Expressive marks
13
14 @lilypondfile[quote]{expressive-headword.ly}
15
16 This section lists various expressive marks that can be
17 created in a score.
18
19 @menu
20 * Attached to notes::
21 * Curves::
22 * Lines::
23 @end menu
24
25
26 @node Attached to notes
27 @subsection Attached to notes
28
29 This section explains how to create expressive marks that are
30 attached to notes: articulations, ornamentations, and dynamics.
31 Methods to create new dynamic markings are also discussed.
32
33 @menu
34 * Articulations and ornamentations::
35 * Dynamics::
36 * New dynamic marks::
37 @end menu
38
39 @node Articulations and ornamentations
40 @unnumberedsubsubsec Articulations and ornamentations
41
42 @cindex articulations
43 @cindex ornamentation
44 @cindex scripts
45 @cindex ornaments
46 @cindex espressivo
47 @cindex fermata
48 @cindex upbow
49 @cindex downbow
50 @cindex foot marks
51 @cindex organ pedal marks
52 @cindex pedal marks, organ
53 @cindex turn
54 @cindex open
55 @cindex stopped
56 @cindex flageolet
57 @cindex reverseturn
58 @cindex trill
59 @cindex prall
60 @cindex mordent
61 @cindex prallprall
62 @cindex prallmordent
63 @cindex prall, up
64 @cindex prall, down
65 @cindex thumb marking
66 @cindex segno
67 @cindex coda
68 @cindex varcoda
69
70 @funindex -
71
72 A variety of symbols that denote articulations, ornamentations,
73 and other performance indications can be attached to a note using
74 this syntax:
75
76 @example
77 @var{note}\@var{name}
78 @end example
79
80 The possible values for @var{name} are listed in @ref{List of
81 articulations}.  For example:
82
83 @lilypond[verbatim,quote,relative=2]
84 c4\staccato c\mordent b2\turn
85 c1\fermata
86 @end lilypond
87
88 @cindex marcato
89 @cindex tenuto
90 @cindex staccatissimo
91 @cindex accent
92 @cindex staccato
93 @cindex portato
94
95 Some of these articulations have shorthands for easier entry.
96 Shorthands are appended to the note name, and their syntax
97 consists of a dash @code{-} followed by a symbol signifying the
98 articulation.  Predefined shorthands exist for @notation{marcato},
99 @notation{stopped}, @notation{tenuto}, @notation{staccatissimo},
100 @notation{accent}, @notation{staccato}, and @notation{portato}.
101 Their corresponding output appears as follows:
102
103 @lilypond[verbatim,quote,relative=2]
104 c4-^  c-+  c--  c-|
105 c4->  c-.  c2-_
106 @end lilypond
107
108 The rules for the default placement of articulations are defined
109 in @file{scm/@/script@/.scm}.  Articulations and ornamentations
110 may be manually placed above or below the staff, see
111 @ref{Direction and placement}.
112
113
114 @snippets
115
116 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
117 {modifying-default-values-for-articulation-shorthand-notation.ly}
118
119 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
120 {controlling-the-vertical-ordering-of-scripts.ly}
121
122 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
123 {creating-a-delayed-turn.ly}
124
125 @seealso
126 Music Glossary:
127 @rglos{tenuto},
128 @rglos{accent},
129 @rglos{staccato},
130 @rglos{portato}.
131
132 Notation Reference:
133 @ref{Direction and placement},
134 @ref{List of articulations},
135 @ref{Trills}.
136
137 Installed Files:
138 @file{scm/@/script@/.scm}.
139
140 Snippets:
141 @rlsr{Expressive marks}.
142
143 Internals Reference:
144 @rinternals{Script},
145 @rinternals{TextScript}.
146
147
148 @node Dynamics
149 @unnumberedsubsubsec Dynamics
150
151 @cindex absolute dynamics
152 @cindex dynamics
153 @cindex dynamics, absolute
154
155 @funindex \ppppp
156 @funindex ppppp
157 @funindex \pppp
158 @funindex pppp
159 @funindex \ppp
160 @funindex ppp
161 @funindex \pp
162 @funindex pp
163 @funindex \p
164 @funindex p
165 @funindex \mp
166 @funindex mp
167 @funindex \mf
168 @funindex mf
169 @funindex \f
170 @funindex f
171 @funindex \ff
172 @funindex ff
173 @funindex \fff
174 @funindex fff
175 @funindex \ffff
176 @funindex ffff
177 @funindex \fp
178 @funindex fp
179 @funindex \sf
180 @funindex sf
181 @funindex \sff
182 @funindex sff
183 @funindex \sp
184 @funindex sp
185 @funindex \spp
186 @funindex spp
187 @funindex \sfz
188 @funindex sfz
189 @funindex \rfz
190 @funindex rfz
191
192 Absolute dynamic marks are specified using a command after a note,
193 such as @code{c4\ff}.  The available dynamic marks are
194 @code{\ppppp}, @code{\pppp}, @code{\ppp}, @code{\pp}, @code{\p},
195 @code{\mp}, @code{\mf}, @code{\f}, @code{\ff}, @code{\fff},
196 @code{\ffff}, @code{\fp}, @code{\sf}, @code{\sff}, @code{\sp},
197 @code{\spp}, @code{\sfz}, and @code{\rfz}.  The dynamic marks may
198 be manually placed above or below the staff, see
199 @ref{Direction and placement}.
200
201 @lilypond[verbatim,quote,relative=2]
202 c2\ppp c\mp
203 c2\rfz c^\mf
204 c2_\spp c^\ff
205 @end lilypond
206
207 @cindex hairpin
208 @cindex crescendo
209 @cindex decrescendo
210 @cindex diminuendo
211
212 @funindex \<
213 @funindex \>
214 @funindex \!
215 @funindex \cr
216 @funindex cr
217 @funindex \decr
218 @funindex decr
219
220 A @notation{crescendo} mark is started with @code{\<} and
221 terminated with @code{\!}, an absolute dynamic, or an additional
222 crescendo or decrescendo mark.  A @notation{decrescendo} mark is
223 started with @code{\>} and is also terminated with @code{\!}, an
224 absolute dynamic, or another crescendo or decrescendo mark.
225 @code{\cr} and @code{\decr} may be used instead of @code{\<} and
226 @code{\>}.  @notation{Hairpins} are engraved by default using this
227 notation.
228
229 @lilypond[verbatim,quote,relative=2]
230 c2\< c\!
231 d2\< d\f
232 e2\< e\>
233 f2\> f\!
234 e2\> e\mp
235 d2\> d\>
236 c1\!
237 @end lilypond
238
239 Spacer rests are needed to engrave multiple marks on one note.
240
241 @cindex multiple dynamic marks on one note
242 @cindex dynamic marks, multiple on one note
243
244 @lilypond[verbatim,quote,relative=2]
245 c4\< c\! d\> e\!
246 << f1 { s4 s4\< s4\> s4\! } >>
247 @end lilypond
248
249 @cindex espressivo articulation
250
251 @funindex \espressivo
252 @funindex espressivo
253
254 In some situations the @code{\espressivo} articulation mark may be
255 the appropriate choice to indicate a crescendo and decrescendo on
256 one note:
257
258 @lilypond[verbatim,quote,relative=2]
259 c2 b4 a
260 g1\espressivo
261 @end lilypond
262
263
264 @funindex \crescTextCresc
265 @funindex crescTextCresc
266 @funindex \dimTextDecresc
267 @funindex dimTextDecresc
268 @funindex \dimTextDecr
269 @funindex dimTextDecr
270 @funindex \dimTextDim
271 @funindex dimTextDim
272 @funindex \crescHairpin
273 @funindex crescHairpin
274 @funindex \dimHairpin
275 @funindex dimHairpin
276
277 Crescendos and decrescendos can be engraved as textual markings
278 instead of hairpins.  Dashed lines are printed to indicate their
279 extent.  The built-in commands that enable these text modes are
280 @code{\crescTextCresc}, @code{\dimTextDecresc},
281 @code{\dimTextDecr}, and @code{\dimTextDim}.  The corresponding
282 @code{\crescHairpin} and @code{\dimHairpin} commands will revert
283 to hairpins again:
284
285 @lilypond[verbatim,quote,relative=2]
286 \crescTextCresc
287 c2\< d | e f\!
288 \dimTextDecresc
289 e2\> d | c b\!
290 \crescHairpin
291 c2\< d | e f\!
292 \dimHairpin
293 e2\> d\!
294 @end lilypond
295
296
297 To create new absolute dynamic marks or text that should be
298 aligned with dynamics, see @ref{New dynamic marks}.
299
300 @cindex dynamics, vertical positioning
301 @cindex vertical positioning of dynamics
302
303 @funindex DynamicLineSpanner
304
305
306 Vertical positioning of dynamics is handled by
307 @rinternals{DynamicLineSpanner}.
308 @funindex \dynamicUp
309 @funindex dynamicUp
310 @funindex \dynamicDown
311 @funindex dynamicDown
312 @funindex \dynamicNeutral
313 @funindex dynamicNeutral
314
315
316 @predefined
317 @code{\dynamicUp},
318 @code{\dynamicDown},
319 @code{\dynamicNeutral},
320 @code{\crescTextCresc},
321 @code{\dimTextDim},
322 @code{\dimTextDecr},
323 @code{\dimTextDecresc},
324 @code{\crescHairpin},
325 @code{\dimHairpin}.
326 @endpredefined
327
328
329 @snippets
330
331 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
332 {setting-hairpin-behavior-at-bar-lines.ly}
333
334 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
335 {setting-the-minimum-length-of-hairpins.ly}
336
337 @cindex al niente
338 @cindex niente, al
339
340 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
341 {printing-hairpins-using-al-niente-notation.ly}
342
343 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
344 {vertically-aligned-dynamics-and-textscripts.ly}
345
346 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
347 {hiding-the-extender-line-for-text-dynamics.ly}
348
349 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
350 {changing-text-and-spanner-styles-for-text-dynamics.ly}
351
352
353 @seealso
354 Music Glossary:
355 @rglos{al niente},
356 @rglos{crescendo},
357 @rglos{decrescendo},
358 @rglos{hairpin}.
359
360 Learning Manual:
361 @rlearning{Articulation and dynamics}.
362
363 Notation Reference:
364 @ref{Direction and placement},
365 @ref{New dynamic marks},
366 @ref{What goes into the MIDI output?},
367 @ref{Controlling MIDI dynamics}.
368
369 Snippets:
370 @rlsr{Expressive marks}.
371
372 Internals Reference:
373 @rinternals{DynamicText},
374 @rinternals{Hairpin},
375 @rinternals{DynamicLineSpanner}.
376
377
378 @node New dynamic marks
379 @unnumberedsubsubsec New dynamic marks
380
381 @cindex new dynamic marks
382 @cindex dynamic marks, new
383
384 The easiest way to create dynamic indications is to use
385 @code{\markup} objects.
386
387 @lilypond[verbatim,quote]
388 moltoF = \markup { molto \dynamic f }
389
390 \relative c' {
391   <d e>16_\moltoF <d e>
392   <d e>2..
393 }
394 @end lilypond
395
396 @cindex dynamics, editorial
397 @cindex dynamics, parenthesis
398 @cindex editorial dynamics
399 @funindex \bracket
400 @funindex bracket
401 @funindex \dynamic
402 @funindex dynamic
403
404 In markup mode, editorial dynamics (within parentheses or square
405 brackets) can be created.  The syntax for markup mode is described
406 in @ref{Formatting text}.
407
408 @lilypond[verbatim,quote]
409 roundF = \markup { \center-align \concat { \bold { \italic ( }
410            \dynamic f \bold { \italic ) } } }
411 boxF = \markup { \bracket { \dynamic f } }
412 \relative c' {
413   c1_\roundF
414   c1_\boxF
415 }
416 @end lilypond
417
418 @cindex make-dynamic-script
419 @funindex make-dynamic-script
420
421 Simple, centered dynamic marks are easily created with the
422 @code{make-dynamic-script} function.  The dynamic font only
423 contains the characters @code{f,m,p,r,s} and @code{z}.
424
425 @lilypond[verbatim,quote]
426 sfzp = #(make-dynamic-script "sfzp")
427 \relative c' {
428   c4 c c\sfzp c
429 }
430 @end lilypond
431
432 In general, @code{make-dynamic-script} takes any markup object as
433 its argument.  In the following example, using
434 @code{make-dynamic-script} ensures the vertical alignment of
435 markup objects and hairpins that are attached to the same note
436 head.
437
438 @lilypond[verbatim,quote]
439 roundF = \markup { \center-align \concat {
440            \normal-text { \bold { \italic ( } }
441            \dynamic f
442            \normal-text { \bold { \italic ) } } } }
443 boxF = \markup { \bracket { \dynamic f } }
444 roundFdynamic = #(make-dynamic-script roundF)
445 boxFdynamic = #(make-dynamic-script boxF)
446 \relative c' {
447   c4_\roundFdynamic\< d e f
448   g,1_\boxFdynamic
449 }
450 @end lilypond
451
452 The Scheme form of markup mode may be used instead.  Its syntax is
453 explained in @ref{Markup construction in Scheme}.
454
455 @lilypond[verbatim,quote]
456 moltoF = #(make-dynamic-script
457             (markup #:normal-text "molto"
458                     #:dynamic "f"))
459 \relative c' {
460   <d e>16 <d e>
461   <d e>2..\moltoF
462 }
463 @end lilypond
464
465 Font settings in markup mode are described in
466 @ref{Selecting font and font size}.
467
468
469 @seealso
470 Notation Reference:
471 @ref{Formatting text},
472 @ref{Selecting font and font size},
473 @ref{Markup construction in Scheme},
474 @ref{What goes into the MIDI output?},
475 @ref{Controlling MIDI dynamics}.
476
477 Snippets:
478 @rlsr{Expressive marks}.
479
480
481 @node Curves
482 @subsection Curves
483
484 This section explains how to create various expressive marks that
485 are curved: normal slurs, phrasing slurs, breath marks, falls, and
486 doits.
487
488 @menu
489 * Slurs::
490 * Phrasing slurs::
491 * Breath marks::
492 * Falls and doits::
493 @end menu
494
495 @node Slurs
496 @unnumberedsubsubsec Slurs
497
498 @cindex slurs
499
500 @notation{Slurs} are entered using parentheses:
501
502 @lilypond[verbatim,quote,relative=2]
503 f4( g a) a8 b(
504 a4 g2 f4)
505 <c e>2( <b d>2)
506 @end lilypond
507
508 @cindex slurs, manual placement
509 @cindex slurs, below notes
510 @cindex slurs, above notes
511 @funindex \slurDown
512 @funindex slurDown
513 @funindex \slurNeutral
514 @funindex slurNeutral
515
516 Slurs may be manually placed above or below the notes, see
517 @ref{Direction and placement}.
518
519 @lilypond[verbatim,quote,relative=2]
520 c2( d)
521 \slurDown
522 c2( d)
523 \slurNeutral
524 c2( d)
525 @end lilypond
526
527 @cindex phrasing slur
528 @cindex multiple slurs
529 @cindex simultaneous slurs
530 @cindex slur, phrasing
531 @cindex slurs, multiple
532 @cindex slurs, simultaneous
533
534 Simultaneous or overlapping slurs are not permitted, but a phrasing
535 slur can overlap a slur.  This permits two slurs to be printed at
536 once.  For details, see @ref{Phrasing slurs}.
537
538 @cindex slur style
539 @cindex solid slur
540 @cindex dotted slur
541 @cindex dashed slur
542 @cindex slur, solid
543 @cindex slur, dotted
544 @cindex slur, dashed
545 @cindex solid slur
546 @cindex dotted slur
547 @cindex dashed slur
548 @cindex sytle, slur
549 @funindex \slurDashed
550 @funindex slurDashed
551 @funindex \slurDotted
552 @funindex slurDotted
553 @funindex \slurSolid
554 @funindex slurSolid
555
556 Slurs can be solid, dotted, or dashed.  Solid is the default slur
557 style:
558
559 @lilypond[verbatim,quote,relative=1]
560 c4( e g2)
561 \slurDashed
562 g4( e c2)
563 \slurDotted
564 c4( e g2)
565 \slurSolid
566 g4( e c2)
567 @end lilypond
568
569 @funindex \slurUp
570 @funindex slurUp
571
572
573 @predefined
574 @code{\slurUp},
575 @code{\slurDown},
576 @code{\slurNeutral},
577 @code{\slurDashed},
578 @code{\slurDotted},
579 @code{\slurSolid}.
580 @endpredefined
581
582
583 @snippets
584
585 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
586 {using-double-slurs-for-legato-chords.ly}
587
588 @c TODO remove ignores after LSR update
589 @ignore
590 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
591 {positioning-text-markups-inside-slurs}
592 @end ignore
593
594 @seealso
595 Music Glossary:
596 @rglos{slur}.
597
598 Learning Manual:
599 @rlearning{On the un-nestedness of brackets and ties}.
600
601 Notation Reference:
602 @ref{Direction and placement},
603 @ref{Phrasing slurs}.
604
605 Snippets:
606 @rlsr{Expressive marks}.
607
608 Internals Reference:
609 @rinternals{Slur}.
610
611
612 @node Phrasing slurs
613 @unnumberedsubsubsec Phrasing slurs
614
615 @cindex phrasing slurs
616 @cindex phrasing marks
617 @cindex slur, phrasing
618 @cindex mark, phrasing
619 @funindex \(
620 @funindex \)
621
622 @notation{Phrasing slurs} (or phrasing marks) that indicate a
623 musical sentence are written using the commands @code{\(} and
624 @code{\)} respectively:
625
626 @lilypond[verbatim,quote,relative=2]
627 c4\( d( e) f(
628 e2) d\)
629 @end lilypond
630
631 @funindex \phrasingSlurUp
632 @funindex phrasingSlurUp
633 @funindex \phrasingSlurDown
634 @funindex phrasingSlurDown
635 @funindex \phrasingSlurNeutral
636 @funindex phrasingSlurNeutral
637 @funindex phrasingSlurDashed
638 @funindex \phrasingSlurDashed
639 @funindex \phrasingSlurDotted
640 @funindex phrasingSlurDotted
641 @funindex \phrasingSlurSolid
642 @funindex phrasingSlurSolid
643
644 Typographically, a phrasing slur behaves almost exactly like a
645 normal slur.  However, they are treated as different objects; a
646 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
647 slurs may be manually placed above or below the notes, see
648 @ref{Direction and placement}.
649
650 @lilypond[verbatim,quote,relative=1]
651 c4\( g' c,( b) | c1\)
652 \phrasingSlurUp
653 c4\( g' c,( b) | c1\)
654 @end lilypond
655
656 @cindex simultaneous phrasing slurs
657 @cindex multiple phrasing slurs
658 @cindex slurs, simultaneous phrasing
659 @cindex slurs, multiple phrasing
660 @cindex phrasing slurs, simultaneous
661 @cindex phrasing slurs, multiple
662
663 Simultaneous or overlapping phrasing slurs are not permitted.
664
665 Phrasing slurs can be solid, dotted, or dashed.  Solid is the default
666 style for phrasing slurs:
667
668 @lilypond[verbatim,quote,relative=1]
669 c4\( e g2\)
670 \phrasingSlurDashed
671 g4\( e c2\)
672 \phrasingSlurDotted
673 c4\( e g2\)
674 \phrasingSlurSolid
675 g4\( e c2\)
676 @end lilypond
677
678
679 @predefined
680 @code{\phrasingSlurUp},
681 @code{\phrasingSlurDown},
682 @code{\phrasingSlurNeutral},
683 @code{\phrasingSlurDashed},
684 @code{\phrasingSlurDotted},
685 @code{\phrasingSlurSolid}.
686 @endpredefined
687
688
689 @seealso
690 Learning Manual:
691 @rlearning{On the un-nestedness of brackets and ties}.
692
693 Notation Reference:
694 @ref{Direction and placement}.
695
696 Snippets:
697 @rlsr{Expressive marks}.
698
699 Internals Reference:
700 @rinternals{PhrasingSlur}.
701
702
703 @node Breath marks
704 @unnumberedsubsubsec Breath marks
705
706 @cindex breath marks
707 @cindex pause mark
708 @funindex \breathe
709 @funindex breathe
710
711 Breath marks are entered using @code{\breathe}:
712
713 @lilypond[verbatim,quote,relative=2]
714 c2. \breathe d4
715 @end lilypond
716
717 Musical indicators for breath marks in ancient notation,
718 divisiones, are supported.  For details, see @ref{Divisiones}.
719
720
721 @snippets
722
723 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
724 {changing-the-breath-mark-symbol.ly}
725
726 @cindex caesura
727 @cindex railroad tracks
728
729 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
730 {inserting-a-caesura.ly}
731
732
733 @seealso
734 Music Glossary:
735 @rglos{caesura}.
736
737 Notation Reference:
738 @ref{Divisiones}.
739
740 Snippets:
741 @rlsr{Expressive marks}.
742
743 Internals Reference:
744 @rinternals{BreathingSign}.
745
746
747 @node Falls and doits
748 @unnumberedsubsubsec Falls and doits
749
750 @cindex falls
751 @cindex doits
752 @funindex \bendAfter
753 @funindex bendAfter
754
755 @notation{Falls} and @notation{doits} can be added to notes using
756 the @code{\bendAfter} command.  The direction of the fall or doit
757 is indicated with a plus or minus (up or down).  The number
758 indicates the pitch interval that the fall or doit will extend
759 @emph{beyond} the main note.
760
761 @lilypond[verbatim,quote,relative=2]
762 c2-\bendAfter #+4
763 c2-\bendAfter #-4
764 c2-\bendAfter #+8
765 c2-\bendAfter #-8
766 @end lilypond
767
768 The dash @code{-} immediately preceding the @code{\bendAfter}
769 command is @emph{required} when writing falls and doits.
770
771
772 @snippets
773
774 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
775 {adjusting-the-shape-of-falls-and-doits.ly}
776
777
778 @seealso
779 Music Glossary:
780 @rglos{fall},
781 @rglos{doit}.
782
783 Snippets:
784 @rlsr{Expressive marks}.
785
786
787 @node Lines
788 @subsection Lines
789
790 This section explains how to create various expressive marks that
791 follow a linear path: glissandos, arpeggios, and trills.
792
793 @menu
794 * Glissando::
795 * Arpeggio::
796 * Trills::
797 @end menu
798
799 @node Glissando
800 @unnumberedsubsubsec Glissando
801
802 @cindex glissando
803 @funindex \glissando
804 @funindex glissando
805
806 A @notation{glissando} is created by attaching @code{\glissando}
807 to a note:
808
809 @lilypond[verbatim,quote,relative=2]
810 g2\glissando g'
811 c2\glissando c,
812 @end lilypond
813
814 Different styles of glissandi can be created.  For details, see
815 @ref{Line styles}.
816
817 @snippets
818
819 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
820 {contemporary-glissando.ly}
821
822
823 @seealso
824 Music Glossary:
825 @rglos{glissando}.
826
827 Notation Reference:
828 @ref{Line styles}.
829
830 Snippets:
831 @rlsr{Expressive marks}.
832
833 Internals Reference:
834 @rinternals{Glissando}.
835
836
837 @knownissues
838
839 Printing text over the line (such as @notation{gliss.}) is not
840 supported.
841
842
843 @node Arpeggio
844 @unnumberedsubsubsec Arpeggio
845
846 @cindex arpeggio
847 @cindex broken chord
848 @cindex chord, broken
849
850 @funindex \arpeggio
851 @funindex arpeggio
852 @funindex \arpeggioArrowUp
853 @funindex arpeggioArrowUp
854 @funindex \arpeggioArrowDown
855 @funindex arpeggioArrowDown
856 @funindex \arpeggioNormal
857 @funindex arpeggioNormal
858
859 An @notation{arpeggio} on a chord (also known as a broken chord)
860 is denoted by appending @code{\arpeggio} to the chord construct:
861
862 @lilypond[verbatim,quote,relative=1]
863 <c e g c>1\arpeggio
864 @end lilypond
865
866 Different types of arpeggios may be written.
867 @code{\arpeggioNormal} reverts to a normal arpeggio:
868
869 @lilypond[verbatim,quote,relative=1]
870 <c e g c>2\arpeggio
871 \arpeggioArrowUp
872 <c e g c>2\arpeggio
873 \arpeggioArrowDown
874 <c e g c>2\arpeggio
875 \arpeggioNormal
876 <c e g c>2\arpeggio
877 @end lilypond
878
879 @cindex arpeggio symbols, special
880 @cindex special arpeggio symbols
881
882 @funindex \arpeggioBracket
883 @funindex arpeggioBracket
884 @funindex \arpeggioParenthesis
885 @funindex arpeggioParenthesis
886
887 Special @emph{bracketed} arpeggio symbols can be created:
888
889 @lilypond[verbatim,quote,relative=1]
890 <c e g c>2
891 \arpeggioBracket
892 <c e g c>2\arpeggio
893 \arpeggioParenthesis
894 <c e g c>2\arpeggio
895 \arpeggioNormal
896 <c e g c>2\arpeggio
897 @end lilypond
898
899 Arpeggios can be explicitly written out with ties.  For more
900 information, see @ref{Ties}.
901
902
903 @predefined
904 @code{\arpeggio},
905 @code{\arpeggioArrowUp},
906 @code{\arpeggioArrowDown},
907 @code{\arpeggioNormal},
908 @code{\arpeggioBracket},
909 @code{\arpeggioParenthesis}.
910 @endpredefined
911
912
913 @snippets
914
915 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
916 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
917
918 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
919 {creating-cross-staff-arpeggios-in-other-contexts.ly}
920
921 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
922 {creating-arpeggios-across-notes-in-different-voices.ly}
923
924
925 @seealso
926 Music Glossary:
927 @rglos{arpeggio}.
928
929 Notation Reference:
930 @ref{Ties}.
931
932 Snippets:
933 @rlsr{Expressive marks}.
934
935 Internals Reference:
936 @rinternals{Arpeggio},
937 @rinternals{PianoStaff}.
938
939
940 @knownissues
941
942 @cindex cross-staff parenthesis-style arpeggio
943 @cindex arpeggio, parenthesis-style, cross-staff
944 @cindex arpeggio, cross-staff parenthesis-style
945
946 It is not possible to mix connected arpeggios and unconnected
947 arpeggios in one @code{PianoStaff} at the same point in
948 time.
949
950 The parenthesis-style arpeggio brackets do not work for
951 cross-staff arpeggios.
952
953
954 @node Trills
955 @unnumberedsubsubsec Trills
956
957 @cindex trills
958
959 @funindex \trill
960 @funindex trill
961 @funindex \startTrillSpan
962 @funindex startTrillSpan
963 @funindex \stopTrillSpan
964 @funindex stopTrillSpan
965
966 Short @notation{trills} without an extender line are printed with
967 @code{\trill}; see @ref{Articulations and ornamentations}.
968
969 Longer trills with an extender line are made with
970 @code{\startTrillSpan} and @code{\stopTrillSpan}:
971
972 @lilypond[verbatim,quote,relative=2]
973 d1~\startTrillSpan
974 d1
975 c2\stopTrillSpan r2
976 @end lilypond
977
978 In the following example, a trill is combined with grace notes.
979 The syntax of this construct and the method to precisely position
980 the grace notes are described in @ref{Grace notes}.
981
982 @lilypond[verbatim,quote,relative=2]
983 c1 \afterGrace
984 d1\startTrillSpan { c32[ d]\stopTrillSpan }
985 e2 r2
986 @end lilypond
987
988 @cindex pitched trills
989 @cindex trills, pitched
990 @funindex \pitchedTrill
991 @funindex pitchedTrill
992
993 Trills that require an auxiliary note with an explicit pitch can
994 be typeset with the @code{\pitchedTrill} command.  The first
995 argument is the main note, and the second is the @emph{trilled}
996 note, printed as a stemless note head in parentheses.
997
998 @lilypond[verbatim,quote,relative=1]
999 \pitchedTrill e2\startTrillSpan fis
1000 d\stopTrillSpan
1001 @end lilypond
1002
1003 @cindex pitched trill with forced accidental
1004 @cindex trill, pitched with forced accidental
1005 @cindex accidental, forced for pitched trill
1006
1007 In the following example, the second pitched trill is ambiguous;
1008 the accidental of the trilled note is not printed.  As a
1009 workaround, the accidentals of the trilled notes can be forced.
1010 The second measure illustrates this method:
1011
1012 @lilypond[verbatim,quote,relative=2]
1013 \pitchedTrill eis4\startTrillSpan fis
1014 g\stopTrillSpan
1015 \pitchedTrill eis4\startTrillSpan fis
1016 g\stopTrillSpan
1017 \pitchedTrill eis4\startTrillSpan fis
1018 g\stopTrillSpan
1019 \pitchedTrill eis4\startTrillSpan fis!
1020 g\stopTrillSpan
1021 @end lilypond
1022
1023
1024 @predefined
1025 @code{\startTrillSpan},
1026 @code{\stopTrillSpan}.
1027 @endpredefined
1028
1029
1030 @seealso
1031 Music Glossary:
1032 @rglos{trill}.
1033
1034 Notation Reference:
1035 @ref{Articulations and ornamentations},
1036 @ref{Grace notes}.
1037
1038 Snippets:
1039 @rlsr{Expressive marks}.
1040
1041 Internals Reference:
1042 @rinternals{TrillSpanner}.
1043