]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/expressive.itely
Update for expressive.itely
[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.38"
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 (@tie{}@code{-}) followed by a symbol
95 signifying the articulation.  Predefined shorthands exist for
96 @notation{marcato}, @notation{stopped}, @notation{tenuto},
97 @notation{staccatissimo}, @notation{accent}, @notation{staccato},
98 and @notation{portato}.  Their corresponding output appears as
99 follows:
100
101 @lilypond[verbatim,quote,relative=2]
102 c4-^  c-+  c--  c-|
103 c4->  c-.  c-_
104 @end lilypond
105
106 The rules for the default placement of articulations are defined
107 in @file{scm/@/script@/.scm}.  Articulations and ornamentations
108 may be manually placed above or below the staff, see
109 @ref{Direction and placement}.
110
111
112 @snippets
113
114 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
115 {modifying-default-values-for-articulation-shorthand-notation.ly}
116
117 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
118 {controlling-the-vertical-ordering-of-scripts.ly}
119
120
121 @seealso
122
123 Music Glossary:
124 @rglos{tenuto},
125 @rglos{accent},
126 @rglos{staccato},
127 @rglos{portato}.
128
129 Notation Reference:
130 @ref{Direction and placement},
131 @ref{List of articulations}.
132
133 Installed Files:
134 @file{scm/@/script@/.scm}.
135
136 Snippets:
137 @rlsr{Expressive marks}.
138
139 Internals Reference:
140 @rinternals{Script},
141 @rinternals{TextScript}.
142
143
144 @knownissues
145
146 These signs appear in the printed output but have no effect on the
147 MIDI rendering of the music.
148
149
150 @node Dynamics
151 @unnumberedsubsubsec Dynamics
152
153 @cindex absolute dynamics
154 @cindex dynamics
155 @cindex dynamics, absolute
156 @funindex \ppppp
157 @funindex \pppp
158 @funindex \ppp
159 @funindex \pp
160 @funindex \p
161 @funindex \mp
162 @funindex \mf
163 @funindex \f
164 @funindex \ff
165 @funindex \fff
166 @funindex \ffff
167 @funindex \fp
168 @funindex \sf
169 @funindex \sff
170 @funindex \sp
171 @funindex \spp
172 @funindex \sfz
173 @funindex \rfz
174
175 Absolute dynamic marks are specified using a command after a note,
176 such as @code{c4\ff}.  The available dynamic marks are
177 @code{\ppppp}, @code{\pppp}, @code{\ppp}, @code{\pp}, @code{\p},
178 @code{\mp}, @code{\mf}, @code{\f}, @code{\ff}, @code{\fff},
179 @code{\ffff}, @code{\fp}, @code{\sf}, @code{\sff}, @code{\sp},
180 @code{\spp}, @code{\sfz}, and @code{\rfz}.  The dynamic marks may
181 be manually placed above or below the staff, see 
182 @ref{Direction and placement}.
183
184 @lilypond[verbatim,quote,relative=2]
185 c2\ppp c\mp
186 c2\rfz c^\mf
187 c2_\spp c^\ff
188 @end lilypond
189
190 @cindex hairpin
191 @funindex \<
192 @funindex \>
193 @funindex \!
194 @funindex \cr
195 @funindex \decr
196
197 A @notation{crescendo} mark is started with @code{\<} and
198 terminated with @code{\!}, an absolute dynamic, or an additional
199 crescendo or decrescendo mark.  A @notation{decrescendo} mark is
200 started with @code{\>} and is also terminated with @code{\!}, an
201 absolute dynamic, or another crescendo or decrescendo mark.
202 @code{\cr} and @code{\decr} may be used instead of @code{\<} and
203 @code{\>}.  @notation{Hairpins} are engraved by default using this
204 notation.
205
206 @lilypond[verbatim,quote,relative=2]
207 c2\< c\!
208 d2\< d\f
209 e2\< e\>
210 f2\> f\!
211 e2\> e\mp
212 d2\> d\>
213 c1\!
214 @end lilypond
215
216 Spacer rests are needed to engrave multiple marks on one note.
217
218 @lilypond[verbatim,quote,relative=2]
219 c4\< c\! d\> e\!
220 << f1 { s4 s4\< s4\> s4\! } >>
221 @end lilypond
222
223 @cindex espressivo articulation
224
225 In some situations the @code{\espressivo} articulation mark may be
226 the appropriate choice to indicate a crescendo and decrescendo on
227 one note:
228
229 @lilypond[verbatim,quote,relative=2]
230 c2 b4 a
231 g1\espressivo
232 @end lilypond
233
234 @cindex crescendo
235 @cindex decrescendo
236 @cindex diminuendo
237
238 Crescendos and decrescendos can be engraved as textual markings
239 instead of hairpins.  The built-in commands that enable these text
240 modes are @code{\setTextCresc}, @code{\setTextDecresc},
241 @code{\setTextDecr}, and @code{\setTextDim}.  The corresponding
242 @code{\setHairpinCresc}, @code{\setHairpinDim}, and
243 @code{\setHairpinDecresc} commands will revert to hairpins again:
244
245 @lilypond[verbatim,quote,relative=2]
246 c4\< d e f\!
247 e4\> d c b\!
248 \setTextCresc
249 c4\< d e f\!
250 \setTextDecresc
251 e4\> d c b\!
252 \setHairpinCresc
253 c4\< d e f\!
254 @end lilypond
255
256 To create new absolute dynamic marks or text that should be
257 aligned with dynamics, see @ref{New dynamic marks}.
258
259 Vertical positioning of dynamics is handled by
260 @rinternals{DynamicLineSpanner}.
261
262
263 @predefined
264
265 @funindex \dynamicUp
266 @code{\dynamicUp},
267 @funindex \dynamicDown
268 @code{\dynamicDown},
269 @funindex \dynamicNeutral
270 @code{\dynamicNeutral},
271 @funindex \setTextCresc
272 @code{\setTextCresc},
273 @funindex \setTextDim
274 @code{\setTextDim},
275 @funindex \setTextDecr
276 @code{\setTextDecr},
277 @funindex \setTextDecresc
278 @code{\setTextDecresc},
279 @funindex \setHairpinCresc
280 @code{\setHairpinCresc},
281 @funindex \setHairpinDim
282 @code{\setHairpinDim},
283 @funindex \setHairpinDecresc
284 @code{\setHairpinDecresc}.
285
286
287 @snippets
288
289 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
290 {setting-hairpin-behavior-at-bar-lines.ly}
291
292 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
293 {setting-the-minimum-length-of-hairpins.ly}
294
295 @cindex al niente
296 @cindex niente, al
297
298 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
299 {printing-hairpins-using-al-niente-notation.ly}
300
301 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
302 {vertically-aligning-dynamics-across-multiple-notes.ly}
303
304 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
305 {hiding-the-extender-line-for-text-dynamics.ly}
306
307 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
308 {changing-text-and-spanner-styles-for-text-dynamics.ly}
309
310
311 @seealso
312
313 @c TODO: Add hairpin to glossary.
314
315 Music Glossary:
316 @rglos{crescendo},
317 @rglos{decrescendo}.
318
319 Learning Manual:
320 @rlearning{Articulation and dynamics}.
321
322 Notation Reference:
323 @ref{Direction and placement},
324 @ref{New dynamic marks}.
325
326 Snippets:
327 @rlsr{Expressive marks}.
328
329 Internals Reference:
330 @rinternals{DynamicText},
331 @rinternals{Hairpin},
332 @rinternals{DynamicLineSpanner}.
333
334
335 @node New dynamic marks
336 @unnumberedsubsubsec New dynamic marks
337
338 @cindex new dynamic marks
339 @cindex dynamic marks, new
340
341 The easiest way to create dynamic indications is to use
342 @code{\markup} objects.
343
344 @lilypond[verbatim,quote]
345 moltoF = \markup { molto \dynamic f }
346
347 \relative c' {
348   <d e>16 <d e>
349   <d e>2.._\moltoF
350 }
351 @end lilypond
352
353 @cindex dynamics, editorial
354 @cindex dynamics, parenthesis
355
356 Markup mode makes possible, for instance, to add
357 editorial dynamics, printed in round parenthesis or square
358 brackets.  Its syntax is described in @ref{Formatting text}.
359
360 @lilypond[verbatim,quote]
361 roundf = \markup { \center-align { \line { \bold { \italic ( }
362          \dynamic f \bold { \italic ) } } } }
363 boxf = \markup { \bracket { \dynamic f } }
364 \relative c' {
365   c1_\roundf
366   c1_\boxf
367 }
368 @end lilypond
369
370 Markup objects are treated differently from authentic dynamic marks.
371 Defining dynamic objects that will be entered and printed exactly like
372 standard dynamic marks is also possible, using the following function:
373
374 @cindex make-dynamic-script
375
376 @lilypond[verbatim,quote]
377 sfzp = #(make-dynamic-script "sfzp")
378 \relative c' {
379   c4 c c\sfzp c
380 }
381 @end lilypond
382
383 @noindent
384 Note that the dynamic font only contains the characters 
385 @code{f,m,p,r,s} and @code{z}.  To switch to other font families,
386 it is necessary to use markup mode in its Scheme form, as
387 explained in @ref{Markup construction in Scheme}.
388
389 @lilypond[verbatim,quote]
390 moltoF = #(make-dynamic-script (markup 
391                       #:normal-text "molto"
392                       #:dynamic "f"))
393 \relative c' {
394   <d e>16 <d e>
395   <d e>2..\moltoF
396 }
397 @end lilypond
398
399 @noindent
400 Font settings in markup mode are described in
401 @ref{Common markup commands}.
402
403
404 @seealso
405
406 Notation Reference:
407 @ref{Formatting text},
408 @ref{Common markup commands},
409 @ref{Markup construction in Scheme}.
410
411 Snippets:
412 @rlsr{Expressive marks}.
413
414
415 @node Curves
416 @subsection Curves
417
418 This section explains how to create various expressive marks that
419 are curved: normal slurs, phrasing slurs, breath marks, falls, and
420 doits.
421
422 @menu
423 * Slurs::                       
424 * Phrasing slurs::              
425 * Breath marks::                
426 * Falls and doits::             
427 @end menu
428
429 @node Slurs
430 @unnumberedsubsubsec Slurs
431
432 @cindex slurs
433
434 @notation{Slurs} are entered using parentheses:
435
436 @lilypond[verbatim,quote,relative=2]
437 f4( g a) a8 b(
438 a4 g2 f4)
439 <c e>2( <b d>2)
440 @end lilypond
441
442 Slurs may be manually placed above or below the notes, see
443 @ref{Direction and placement}.
444
445 @lilypond[verbatim,quote,relative=2]
446 c2( d)
447 \slurDown
448 c2( d)
449 \slurNeutral
450 c2( d)
451 @end lilypond
452
453 Phrasing slurs must be used to print more than one slur at once.
454 For details, see @ref{Phrasing slurs}.
455
456 Slurs can be solid, dotted, or dashed.  Solid is the default slur
457 style:
458
459 @lilypond[verbatim,quote,relative=1]
460 c4( e g2)
461 \slurDashed
462 g4( e c2)
463 \slurDotted
464 c4( e g2)
465 \slurSolid
466 g4( e c2)
467 @end lilypond
468
469
470 @predefined
471
472 @funindex \slurUp
473 @code{\slurUp},
474 @funindex \slurDown
475 @code{\slurDown},
476 @funindex \slurNeutral
477 @code{\slurNeutral},
478 @funindex \slurDashed
479 @code{\slurDashed},
480 @funindex \slurDotted
481 @code{\slurDotted},
482 @funindex \slurSolid
483 @code{\slurSolid}.
484
485
486 @snippets
487
488 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
489 {using-double-slurs-for-legato-chords.ly}
490
491
492 @seealso
493
494 Music Glossary:
495 @rglos{slur}.
496
497 Notation Reference:
498 @ref{Direction and placement},
499 @ref{Phrasing slurs}.
500
501 Snippets:
502 @rlsr{Expressive marks}.
503
504 Internals Reference:
505 @rinternals{Slur}.
506
507
508 @node Phrasing slurs
509 @unnumberedsubsubsec Phrasing slurs
510
511 @cindex phrasing slurs
512 @cindex phrasing marks
513 @funindex \(
514 @funindex \)
515
516 @notation{Phrasing slurs} (or phrasing marks) that indicate a
517 musical sentence are written using the commands @code{\(} and
518 @code{\)} respectively:
519
520 @lilypond[verbatim,quote,relative=2]
521 c4\( d( e) f(
522 e2) d\)
523 @end lilypond
524
525 Typographically, a phrasing slur behaves almost exactly like a
526 normal slur.  However, they are treated as different objects; a
527 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
528 slurs may be manually placed above or below the notes, see
529 @ref{Direction and placement}.
530
531 @lilypond[verbatim,quote,relative=1]
532 c4\( g' c,( b) | c1\)
533 \phrasingSlurUp
534 c4\( g' c,( b) | c1\)
535 @end lilypond
536
537 Simultaneous phrasing slurs are not permitted.
538
539
540 @predefined
541
542 @funindex \phrasingSlurUp
543 @code{\phrasingSlurUp},
544 @funindex \phrasingSlurDown
545 @code{\phrasingSlurDown},
546 @funindex \phrasingSlurNeutral
547 @code{\phrasingSlurNeutral}.
548
549
550 @seealso
551
552 Notation Reference:
553 @ref{Direction and placement}.
554
555 Snippets:
556 @rlsr{Expressive marks}.
557
558 Internals Reference:
559 @rinternals{PhrasingSlur}.
560
561
562 @node Breath marks
563 @unnumberedsubsubsec Breath marks
564
565 @cindex breath marks
566 @funindex \breathe
567
568 Breath marks are entered using @code{\breathe}:
569
570 @lilypond[verbatim,quote,relative=2]
571 c2. \breathe d4
572 @end lilypond
573
574 Musical indicators for breath marks in ancient notation,
575 divisiones, are supported.  For details, see @ref{Divisiones}.
576
577
578 @snippets
579
580 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
581 {changing-the-breath-mark-symbol.ly}
582
583 @cindex caesura
584 @cindex railroad tracks
585
586 @c input/new snippet
587 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
588 @c {inserting-a-caesura.ly}
589
590 Caesura marks can be created by overriding the @code{'text}
591 property of the @code{BreathingSign} object.  A curved caesura
592 mark is also available.
593
594 @lilypond[verbatim,quote,relative=2]
595 \override BreathingSign #'text =
596   #(make-musicglyph-markup "scripts.caesura.straight")
597 c8 e4. \breathe g8. e16 c4
598
599 \override BreathingSign #'text =
600   #(make-musicglyph-markup "scripts.caesura.curved")
601 g8 e'4. \breathe g8. e16 c4
602 @end lilypond
603
604
605 @seealso
606
607 Notation Reference:
608 @ref{Divisiones}.
609
610 Snippets:
611 @rlsr{Expressive marks}.
612 @c @lsr{expressive,breathing-sign.ly}.
613
614 Internals Reference:
615 @rinternals{BreathingSign}.
616
617
618 @node Falls and doits
619 @unnumberedsubsubsec Falls and doits
620
621 @cindex falls
622 @cindex doits
623 @funindex \bendAfter
624
625 @notation{Falls} and @notation{doits} can be added to notes using
626 the @code{\bendAfter} command.  The direction of the fall or doit
627 is indicated with a plus or minus (up or down).  The number
628 indicates the pitch interval that the fall or doit will extend
629 @emph{beyond} the main note.
630
631 @lilypond[verbatim,quote,relative=2]
632 c2-\bendAfter #+4
633 c2-\bendAfter #-4
634 c2-\bendAfter #+8
635 c2-\bendAfter #-8
636 @end lilypond
637
638 The dash (@tie{-}) immediately preceding the @code{\bendAfter}
639 command is @emph{required} when writing falls and doits.
640
641
642 @snippets
643
644 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
645 {adjusting-the-shape-of-falls-and-doits.ly}
646
647
648 @seealso
649
650 @c TODO: add falls and doits to glossary.
651 @c Music Glossary:
652 @c @rglos{falls},
653 @c @rglos{doits}.
654
655 Snippets:
656 @rlsr{Expressive marks}.
657
658
659 @node Lines
660 @subsection Lines
661
662 This section explains how to create various expressive marks that
663 follow a linear path: glissandos, arpeggios, and trills.
664
665 @menu
666 * Glissando::                   
667 * Arpeggio::                    
668 * Trills::                      
669 @end menu
670
671 @node Glissando
672 @unnumberedsubsubsec Glissando
673
674 @cindex glissando
675 @funindex \glissando
676
677 A @notation{glissando} is created by attaching @code{\glissando}
678 to a note:
679
680 @lilypond[verbatim,quote,relative=2]
681 g2\glissando g'
682 c2\glissando c,
683 @end lilypond
684
685 Different styles of glissandi can be created.  For details, see
686 @ref{Line styles}.
687
688 @snippets
689
690 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
691 {contemporary-glissando.ly}
692
693
694 @seealso
695
696 Music Glossary:
697 @rglos{glissando}.
698
699 Notation Reference:
700 @ref{Line styles}.
701
702 Snippets:
703 @rlsr{Expressive marks}.
704
705 @c FIXME: I need to figure out what's up with these.  -gp
706 @c @lsr{expressive,glissando.ly},
707 @c @lsr{expressive,line-styles.ly}
708
709 Internals Reference:
710 @rinternals{Glissando}.
711
712
713 @knownissues
714
715 Printing text over the line (such as @emph{gliss.}) is not
716 supported.
717
718
719 @node Arpeggio
720 @unnumberedsubsubsec Arpeggio
721
722 @cindex arpeggio
723 @cindex broken chord
724 @cindex chord, broken
725
726 An @notation{arpeggio} on a chord (also known as a broken chord)
727 is denoted by appending @code{\arpeggio} to the chord construct:
728
729 @lilypond[verbatim,quote,relative=1]
730 <c e g c>1\arpeggio
731 @end lilypond
732
733 The direction of an arpeggio is indicated by adding an arrowhead
734 to the wiggly line.  The commands @code{\arpeggioUp} and
735 @code{\arpeggioDown} are used for this task.
736 @code{\arpeggioNeutral} reverts back to an arrow-less arpeggio:
737
738 @lilypond[verbatim,quote,relative=1]
739 \arpeggioUp
740 <c e g c>2\arpeggio
741 \arpeggioDown
742 <c e g c>2\arpeggio
743 \arpeggioNeutral
744 <c e g c>1\arpeggio
745 @end lilypond
746
747 The command @code{\arpeggioBracket} can be used to create a square
748 bracket on the left of a chord, indicating that the chord should
749 @emph{not} be arpeggiated.  @code{\arpeggioNeutral} reverts back
750 to a regular arpeggio:
751
752 @lilypond[verbatim,quote,relative=1]
753 <c e g c>2
754 \arpeggioBracket
755 <c e g c>2\arpeggio
756 \arpeggioNeutral
757 <c e g c>1\arpeggio
758 @end lilypond
759
760 A @emph{parenthesis} style bracket may be attached to a chord
761 construct instead of a square bracket.
762
763 @c Maybe create a new \arpeggioParen command, or something
764 @c like that. -pm
765
766 @lilypond[verbatim,quote,relative=1]
767 <c e g c>2
768 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
769 \override Arpeggio #'X-extent = #ly:grob::stencil-width
770 <c e g c>2\arpeggio
771 \arpeggioNeutral
772 <c e g c>1\arpeggio
773 @end lilypond
774
775 Arpeggios can be explicitly written out with ties.  For more
776 information, see @ref{Ties}.
777
778 @predefined
779
780 @funindex \arpeggio
781 @code{\arpeggio},
782 @funindex \arpeggioUp
783 @code{\arpeggioUp},
784 @funindex \arpeggioDown
785 @code{\arpeggioDown},
786 @funindex \arpeggioNeutral
787 @code{\arpeggioNeutral},
788 @funindex \arpeggioBracket
789 @code{\arpeggioBracket}.
790
791
792 @snippets
793
794 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
795 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
796
797 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
798 {creating-cross-staff-arpeggios-in-other-contexts.ly}
799
800 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
801 {creating-arpeggios-across-notes-in-different-voices.ly}
802
803
804 @seealso
805
806 Music Glossary:
807 @rglos{arpeggio}.
808
809 Notation Reference:
810 @ref{Ties}.
811
812 Snippets:
813 @rlsr{Expressive marks}.
814
815 Internals Reference:
816 @rinternals{Arpeggio},
817 @rinternals{PianoStaff}.
818
819
820 @knownissues
821
822 It is not possible to mix connected arpeggios and unconnected
823 arpeggios in one @code{PianoStaff} at the same point in
824 time.
825
826 The parenthesis-style arpeggio brackets do not work for
827 cross-staff arpeggios.
828
829
830 @node Trills
831 @unnumberedsubsubsec Trills
832
833 @cindex trills
834 @funindex \trill
835
836 Short @notation{trills} without an extender line are printed with
837 @code{\trill}; see @ref{Articulations and ornamentations}.
838
839 Long running trills are made with @code{\startTrillSpan} and
840 @code{\stopTrillSpan}.  In the following example, a long running
841 trill is shown combined with grace notes.  To achieve precise
842 control of the placement of the grace notes, see @ref{Grace
843 notes}.
844
845 @lilypond[verbatim,quote,relative=2]
846 c1 \afterGrace
847 d1\startTrillSpan { c16[\stopTrillSpan d] }
848 c4
849 @end lilypond
850
851 @cindex pitched trills
852 @cindex trills, pitched
853
854 Trills that should be executed on an explicitly specified pitch
855 can be typeset with the command @code{\pitchedTrill} using the
856 following syntax:
857
858 @example
859 @code{\pitchedTrill} @var{mainnote} @code{\startTrillSpan}
860 @var{trillnote} @var{endnote} @code{\stopTrillSpan}
861 @end example
862
863 @lilypond[verbatim,quote,relative=1]
864 \pitchedTrill e2 \startTrillSpan fis
865 d\stopTrillSpan
866 @end lilypond
867
868 @noindent
869 The first argument is the main note.  The pitch of the second is
870 printed as a stemless note head in parentheses.
871
872
873 @predefined
874
875 @code{\startTrillSpan},
876 @funindex \startTrillSpan
877 @code{\stopTrillSpan}.
878 @funindex \stopTrillSpan
879
880
881 @seealso
882
883 Music Glossary:
884 @rglos{trill}.
885
886 Notation Reference:
887 @ref{Articulations and ornamentations},
888 @ref{Grace notes}.
889
890 Snippets:
891 @rlsr{Expressive marks}.
892
893 Internals Reference:
894 @rinternals{TrillSpanner}.