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