]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/expressive.itely
Merge branch 'master' of /home/lilydev/git/lily/
[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.51"
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{\crescTextCresc}, @code{\dimTextDecresc},
241 @code{\dimTextDecr}, and @code{\dimTextDim}.  The corresponding
242 @code{\crescHairpin} and @code{\dimHairpin} commands will revert to
243 hairpins again:
244
245 @lilypond[verbatim,quote,relative=2]
246 c4\< d e f\!
247 e4\> d c b\!
248 \crescTextCresc
249 c4\< d e f\!
250 \dimTextDecresc
251 e4\> d c b\!
252 \crescHairpin
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 \crescTextCresc
272 @code{\crescTextCresc},
273 @funindex \dimTextDim
274 @code{\dimTextDim},
275 @funindex \dimTextDecr
276 @code{\dimTextDecr},
277 @funindex \dimTextDecresc
278 @code{\dimTextDecresc},
279 @funindex \crescHairpin
280 @code{\crescHairpin},
281 @funindex \dimHairpin
282 @code{\dimHairpin}.
283
284
285 @snippets
286
287 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
288 {setting-hairpin-behavior-at-bar-lines.ly}
289
290 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
291 {setting-the-minimum-length-of-hairpins.ly}
292
293 @cindex al niente
294 @cindex niente, al
295
296 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
297 {printing-hairpins-using-al-niente-notation.ly}
298
299 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
300 {vertically-aligning-dynamics-across-multiple-notes.ly}
301
302 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
303 {hiding-the-extender-line-for-text-dynamics.ly}
304
305 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
306 {changing-text-and-spanner-styles-for-text-dynamics.ly}
307
308
309 @seealso
310
311 @c TODO: Add hairpin to glossary.
312
313 Music Glossary:
314 @rglos{crescendo},
315 @rglos{decrescendo}.
316
317 Learning Manual:
318 @rlearning{Articulation and dynamics}.
319
320 Notation Reference:
321 @ref{Direction and placement},
322 @ref{New dynamic marks}.
323
324 Snippets:
325 @rlsr{Expressive marks}.
326
327 Internals Reference:
328 @rinternals{DynamicText},
329 @rinternals{Hairpin},
330 @rinternals{DynamicLineSpanner}.
331
332
333 @node New dynamic marks
334 @unnumberedsubsubsec New dynamic marks
335
336 @cindex new dynamic marks
337 @cindex dynamic marks, new
338
339 The easiest way to create dynamic indications is to use
340 @code{\markup} objects.
341
342 @lilypond[verbatim,quote]
343 moltoF = \markup { molto \dynamic f }
344
345 \relative c' {
346   <d e>16 <d e>
347   <d e>2.._\moltoF
348 }
349 @end lilypond
350
351 @cindex dynamics, editorial
352 @cindex dynamics, parenthesis
353
354 Markup mode makes possible, for instance, to add
355 editorial dynamics, printed in round parenthesis or square
356 brackets.  Its syntax is described in @ref{Formatting text}.
357
358 @lilypond[verbatim,quote]
359 roundf = \markup { \center-align { \line { \bold { \italic ( }
360          \dynamic f \bold { \italic ) } } } }
361 boxf = \markup { \bracket { \dynamic f } }
362 \relative c' {
363   c1_\roundf
364   c1_\boxf
365 }
366 @end lilypond
367
368 Markup objects are treated differently from authentic dynamic marks.
369 Defining dynamic objects that will be entered and printed exactly like
370 standard dynamic marks is also possible, using the following function:
371
372 @cindex make-dynamic-script
373
374 @lilypond[verbatim,quote]
375 sfzp = #(make-dynamic-script "sfzp")
376 \relative c' {
377   c4 c c\sfzp c
378 }
379 @end lilypond
380
381 @noindent
382 Note that the dynamic font only contains the characters 
383 @code{f,m,p,r,s} and @code{z}.  To switch to other font families,
384 it is necessary to use markup mode in its Scheme form, as
385 explained in @ref{Markup construction in Scheme}.
386
387 @lilypond[verbatim,quote]
388 moltoF = #(make-dynamic-script (markup 
389                       #:normal-text "molto"
390                       #:dynamic "f"))
391 \relative c' {
392   <d e>16 <d e>
393   <d e>2..\moltoF
394 }
395 @end lilypond
396
397 @noindent
398 Font settings in markup mode are described in
399 @ref{Common markup commands}.
400
401
402 @seealso
403
404 Notation Reference:
405 @ref{Formatting text},
406 @ref{Common markup commands},
407 @ref{Markup construction in Scheme}.
408
409 Snippets:
410 @rlsr{Expressive marks}.
411
412
413 @node Curves
414 @subsection Curves
415
416 This section explains how to create various expressive marks that
417 are curved: normal slurs, phrasing slurs, breath marks, falls, and
418 doits.
419
420 @menu
421 * Slurs::                       
422 * Phrasing slurs::              
423 * Breath marks::                
424 * Falls and doits::             
425 @end menu
426
427 @node Slurs
428 @unnumberedsubsubsec Slurs
429
430 @cindex slurs
431
432 @notation{Slurs} are entered using parentheses:
433
434 @lilypond[verbatim,quote,relative=2]
435 f4( g a) a8 b(
436 a4 g2 f4)
437 <c e>2( <b d>2)
438 @end lilypond
439
440 Slurs may be manually placed above or below the notes, see
441 @ref{Direction and placement}.
442
443 @lilypond[verbatim,quote,relative=2]
444 c2( d)
445 \slurDown
446 c2( d)
447 \slurNeutral
448 c2( d)
449 @end lilypond
450
451 Phrasing slurs must be used to print more than one slur at once.
452 For details, see @ref{Phrasing slurs}.
453
454 Slurs can be solid, dotted, or dashed.  Solid is the default slur
455 style:
456
457 @lilypond[verbatim,quote,relative=1]
458 c4( e g2)
459 \slurDashed
460 g4( e c2)
461 \slurDotted
462 c4( e g2)
463 \slurSolid
464 g4( e c2)
465 @end lilypond
466
467
468 @predefined
469
470 @funindex \slurUp
471 @code{\slurUp},
472 @funindex \slurDown
473 @code{\slurDown},
474 @funindex \slurNeutral
475 @code{\slurNeutral},
476 @funindex \slurDashed
477 @code{\slurDashed},
478 @funindex \slurDotted
479 @code{\slurDotted},
480 @funindex \slurSolid
481 @code{\slurSolid}.
482
483
484 @snippets
485
486 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
487 {using-double-slurs-for-legato-chords.ly}
488
489
490 @seealso
491
492 Music Glossary:
493 @rglos{slur}.
494
495 Notation Reference:
496 @ref{Direction and placement},
497 @ref{Phrasing slurs}.
498
499 Snippets:
500 @rlsr{Expressive marks}.
501
502 Internals Reference:
503 @rinternals{Slur}.
504
505
506 @node Phrasing slurs
507 @unnumberedsubsubsec Phrasing slurs
508
509 @cindex phrasing slurs
510 @cindex phrasing marks
511 @funindex \(
512 @funindex \)
513
514 @notation{Phrasing slurs} (or phrasing marks) that indicate a
515 musical sentence are written using the commands @code{\(} and
516 @code{\)} respectively:
517
518 @lilypond[verbatim,quote,relative=2]
519 c4\( d( e) f(
520 e2) d\)
521 @end lilypond
522
523 Typographically, a phrasing slur behaves almost exactly like a
524 normal slur.  However, they are treated as different objects; a
525 @code{\slurUp} will have no effect on a phrasing slur.  Phrasing
526 slurs may be manually placed above or below the notes, see
527 @ref{Direction and placement}.
528
529 @lilypond[verbatim,quote,relative=1]
530 c4\( g' c,( b) | c1\)
531 \phrasingSlurUp
532 c4\( g' c,( b) | c1\)
533 @end lilypond
534
535 Simultaneous phrasing slurs are not permitted.
536
537
538 @predefined
539
540 @funindex \phrasingSlurUp
541 @code{\phrasingSlurUp},
542 @funindex \phrasingSlurDown
543 @code{\phrasingSlurDown},
544 @funindex \phrasingSlurNeutral
545 @code{\phrasingSlurNeutral}.
546
547
548 @seealso
549
550 Notation Reference:
551 @ref{Direction and placement}.
552
553 Snippets:
554 @rlsr{Expressive marks}.
555
556 Internals Reference:
557 @rinternals{PhrasingSlur}.
558
559
560 @node Breath marks
561 @unnumberedsubsubsec Breath marks
562
563 @cindex breath marks
564 @funindex \breathe
565
566 Breath marks are entered using @code{\breathe}:
567
568 @lilypond[verbatim,quote,relative=2]
569 c2. \breathe d4
570 @end lilypond
571
572 Musical indicators for breath marks in ancient notation,
573 divisiones, are supported.  For details, see @ref{Divisiones}.
574
575
576 @snippets
577
578 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
579 {changing-the-breath-mark-symbol.ly}
580
581 @cindex caesura
582 @cindex railroad tracks
583
584 @c input/new snippet
585 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
586 @c {inserting-a-caesura.ly}
587
588 Caesura marks can be created by overriding the @code{'text}
589 property of the @code{BreathingSign} object.  A curved caesura
590 mark is also available.
591
592 @lilypond[verbatim,quote,relative=2]
593 \override BreathingSign #'text =
594   #(make-musicglyph-markup "scripts.caesura.straight")
595 c8 e4. \breathe g8. e16 c4
596
597 \override BreathingSign #'text =
598   #(make-musicglyph-markup "scripts.caesura.curved")
599 g8 e'4. \breathe g8. e16 c4
600 @end lilypond
601
602
603 @seealso
604
605 Notation Reference:
606 @ref{Divisiones}.
607
608 Snippets:
609 @rlsr{Expressive marks}.
610 @c @lsr{expressive,breathing-sign.ly}.
611
612 Internals Reference:
613 @rinternals{BreathingSign}.
614
615
616 @node Falls and doits
617 @unnumberedsubsubsec Falls and doits
618
619 @cindex falls
620 @cindex doits
621 @funindex \bendAfter
622
623 @notation{Falls} and @notation{doits} can be added to notes using
624 the @code{\bendAfter} command.  The direction of the fall or doit
625 is indicated with a plus or minus (up or down).  The number
626 indicates the pitch interval that the fall or doit will extend
627 @emph{beyond} the main note.
628
629 @lilypond[verbatim,quote,relative=2]
630 c2-\bendAfter #+4
631 c2-\bendAfter #-4
632 c2-\bendAfter #+8
633 c2-\bendAfter #-8
634 @end lilypond
635
636 The dash (@tie{-}) immediately preceding the @code{\bendAfter}
637 command is @emph{required} when writing falls and doits.
638
639
640 @snippets
641
642 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
643 {adjusting-the-shape-of-falls-and-doits.ly}
644
645
646 @seealso
647
648 @c TODO: add falls and doits to glossary.
649 @c Music Glossary:
650 @c @rglos{falls},
651 @c @rglos{doits}.
652
653 Snippets:
654 @rlsr{Expressive marks}.
655
656
657 @node Lines
658 @subsection Lines
659
660 This section explains how to create various expressive marks that
661 follow a linear path: glissandos, arpeggios, and trills.
662
663 @menu
664 * Glissando::                   
665 * Arpeggio::                    
666 * Trills::                      
667 @end menu
668
669 @node Glissando
670 @unnumberedsubsubsec Glissando
671
672 @cindex glissando
673 @funindex \glissando
674
675 A @notation{glissando} is created by attaching @code{\glissando}
676 to a note:
677
678 @lilypond[verbatim,quote,relative=2]
679 g2\glissando g'
680 c2\glissando c,
681 @end lilypond
682
683 Different styles of glissandi can be created.  For details, see
684 @ref{Line styles}.
685
686 @snippets
687
688 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
689 {contemporary-glissando.ly}
690
691
692 @seealso
693
694 Music Glossary:
695 @rglos{glissando}.
696
697 Notation Reference:
698 @ref{Line styles}.
699
700 Snippets:
701 @rlsr{Expressive marks}.
702
703 @c FIXME: I need to figure out what's up with these.  -gp
704 @c @lsr{expressive,glissando.ly},
705 @c @lsr{expressive,line-styles.ly}
706
707 Internals Reference:
708 @rinternals{Glissando}.
709
710
711 @knownissues
712
713 Printing text over the line (such as @emph{gliss.}) is not
714 supported.
715
716
717 @node Arpeggio
718 @unnumberedsubsubsec Arpeggio
719
720 @cindex arpeggio
721 @cindex broken chord
722 @cindex chord, broken
723
724 An @notation{arpeggio} on a chord (also known as a broken chord)
725 is denoted by appending @code{\arpeggio} to the chord construct:
726
727 @lilypond[verbatim,quote,relative=1]
728 <c e g c>1\arpeggio
729 @end lilypond
730
731 The direction of an arpeggio is indicated by adding an arrowhead
732 to the wiggly line.  The commands @code{\arpeggioArrowUp} and
733 @code{\arpeggioArrowDown} are used for this task.
734 @code{\arpeggioNormal} reverts back to an arrow-less arpeggio:
735
736 @lilypond[verbatim,quote,relative=1]
737 \arpeggioArrowUp
738 <c e g c>2\arpeggio
739 \arpeggioArrowDown
740 <c e g c>2\arpeggio
741 \arpeggioNormal
742 <c e g c>1\arpeggio
743 @end lilypond
744
745 The command @code{\arpeggioBracket} can be used to create a square
746 bracket on the left of a chord, indicating that the chord should
747 @emph{not} be arpeggiated.  @code{\arpeggioNormal} reverts back
748 to a regular arpeggio:
749
750 @lilypond[verbatim,quote,relative=1]
751 <c e g c>2
752 \arpeggioBracket
753 <c e g c>2\arpeggio
754 \arpeggioNormal
755 <c e g c>1\arpeggio
756 @end lilypond
757
758 A @emph{parenthesis} style bracket may be attached to a chord
759 construct instead of a square bracket.
760
761 @c Maybe create a new \arpeggioParen command, or something
762 @c like that. -pm
763
764 @lilypond[verbatim,quote,relative=1]
765 <c e g c>2
766 \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-slur
767 \override Arpeggio #'X-extent = #ly:grob::stencil-width
768 <c e g c>2\arpeggio
769 \arpeggioNormal
770 <c e g c>1\arpeggio
771 @end lilypond
772
773 Arpeggios can be explicitly written out with ties.  For more
774 information, see @ref{Ties}.
775
776 @predefined
777
778 @funindex \arpeggio
779 @code{\arpeggio},
780 @funindex \arpeggioArrowUp
781 @code{\arpeggioArrowUp},
782 @funindex \arpeggioArrowDown
783 @code{\arpeggioArrowDown},
784 @funindex \arpeggioNormal
785 @code{\arpeggioNormal},
786 @funindex \arpeggioBracket
787 @code{\arpeggioBracket}.
788
789
790 @snippets
791
792 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
793 {creating-cross-staff-arpeggios-in-a-piano-staff.ly}
794
795 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
796 {creating-cross-staff-arpeggios-in-other-contexts.ly}
797
798 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
799 {creating-arpeggios-across-notes-in-different-voices.ly}
800
801
802 @seealso
803
804 Music Glossary:
805 @rglos{arpeggio}.
806
807 Notation Reference:
808 @ref{Ties}.
809
810 Snippets:
811 @rlsr{Expressive marks}.
812
813 Internals Reference:
814 @rinternals{Arpeggio},
815 @rinternals{PianoStaff}.
816
817
818 @knownissues
819
820 It is not possible to mix connected arpeggios and unconnected
821 arpeggios in one @code{PianoStaff} at the same point in
822 time.
823
824 The parenthesis-style arpeggio brackets do not work for
825 cross-staff arpeggios.
826
827
828 @node Trills
829 @unnumberedsubsubsec Trills
830
831 @cindex trills
832 @funindex \trill
833
834 Short @notation{trills} without an extender line are printed with
835 @code{\trill}; see @ref{Articulations and ornamentations}.
836
837 Long running trills are made with @code{\startTrillSpan} and
838 @code{\stopTrillSpan}.  In the following example, a long running
839 trill is shown combined with grace notes.  To achieve precise
840 control of the placement of the grace notes, see @ref{Grace
841 notes}.
842
843 @lilypond[verbatim,quote,relative=2]
844 c1 \afterGrace
845 d1\startTrillSpan { c16[\stopTrillSpan d] }
846 c4
847 @end lilypond
848
849 @cindex pitched trills
850 @cindex trills, pitched
851
852 Trills that should be executed on an explicitly specified pitch
853 can be typeset with the command @code{\pitchedTrill} using the
854 following syntax:
855
856 @example
857 @code{\pitchedTrill} @var{mainnote} @code{\startTrillSpan}
858 @var{trillnote} @var{endnote} @code{\stopTrillSpan}
859 @end example
860
861 @lilypond[verbatim,quote,relative=1]
862 \pitchedTrill e2 \startTrillSpan fis
863 d\stopTrillSpan
864 @end lilypond
865
866 @noindent
867 The first argument is the main note.  The pitch of the second is
868 printed as a stemless note head in parentheses.
869
870
871 @predefined
872
873 @code{\startTrillSpan},
874 @funindex \startTrillSpan
875 @code{\stopTrillSpan}.
876 @funindex \stopTrillSpan
877
878
879 @seealso
880
881 Music Glossary:
882 @rglos{trill}.
883
884 Notation Reference:
885 @ref{Articulations and ornamentations},
886 @ref{Grace notes}.
887
888 Snippets:
889 @rlsr{Expressive marks}.
890
891 Internals Reference:
892 @rinternals{TrillSpanner}.