]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/expressive.itely
Update expressive marks from Eyolf, thanks!
[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 @node Expressive marks
10 @section Expressive marks
11
12 @menu
13 * Attached to notes::           
14 * Curves::                      
15 * Lines::                       
16 @end menu
17
18
19 @node Attached to notes
20 @subsection Attached to notes
21
22
23 @menu
24 * Articulations and ornamentations::  
25 * Dynamics::                    
26 @end menu
27
28 @node Articulations and ornamentations
29 @unnumberedsubsubsec Articulations and ornamentations
30
31 @cindex Articulations
32 @cindex scripts
33 @cindex ornaments
34
35 A variety of symbols can appear above and below notes to indicate
36 different characteristics of the performance.  All these symbols
37 can be attached to a note using the syntax @var{note}@code{\}@var{name}. 
38
39 The possible values for @var{name} are listed in @ref{List of
40 articulations}.
41
42 Some of these articulations have shorthands for easier entry.  They
43 are used by adding a dash and the character signifying
44 the articulation to the note name.  The available shorthands and
45 their output are:
46
47 @example
48 \relative c'' @{
49 c-.  c-- c-+ c-|
50 c-> c-^ c-_ @} 
51 @end example 
52
53 @lilypond[quote,ragged-right,fragment]
54 \override TextScript  #'font-family = #'typewriter
55 \override TextScript  #'font-shape = #'upright
56 c''4-._"c-."   
57 c''4--_"c--"   
58 c''4-+_"c-+"   
59 c''4-|_"c-|"   
60 c''4->_"c->"   
61 c''4-^_"c-^"   
62 c''4-__"c-_"         
63 @end lilypond
64
65 The marks are automatically placed, but the direction can be
66 forced as well.  Like other pieces of LilyPond code, @code{_} will
67 place them below the staff, and @code{^} will place them above.
68 This applies both to the shorthands and the fully named
69 articulations. For the shorthands, @code{_} and @code{^} replace
70 the dash:
71
72 @lilypond[quote,ragged-right,fragment,verbatim]
73 c''4^^ c''4_^
74 c\fermata c^\fermata c_\fermata
75 @end lilypond
76
77
78 @cindex accent
79 @cindex marcato
80 @cindex staccatissimo
81 @cindex espressivo
82 @cindex fermata
83 @cindex stopped
84 @cindex staccato
85 @cindex portato
86 @cindex tenuto
87 @cindex upbow
88 @cindex downbow
89 @cindex foot marks
90 @cindex organ pedal marks
91 @cindex turn
92 @cindex open
93 @cindex stopped
94 @cindex flageolet
95 @cindex reverseturn
96 @cindex trill
97 @cindex prall
98 @cindex mordent
99 @cindex prallprall
100 @cindex prallmordent
101 @cindex prall, up
102 @cindex prall, down
103 @cindex thumb marking
104 @cindex segno
105 @cindex coda
106 @cindex varcoda
107
108
109 @commonprop
110
111 The meanings of the shorthands can be changed.  They are defined
112 in @file{ly/@/script@/-init@/.ly}, where the variables  
113 @code{DashDot}, @code{DashDash}, @code{DashPlus}, @code{DashBar},
114 @code{DashLarger}, @code{DashHat}, and @code{DashUnderscore}
115 are associated with the default articulation marks.  If you want,
116 e.g., @code{-+} to produce a trill instead of a "+", you can
117 redefine the variable in your document:
118
119 @lilypond[quote,ragged-right,verbatim]
120 \relative c'' { c-+ }       
121 dashPlus = "trill"
122 \relative c'' { c-+ }       
123 @end lilypond
124
125 The vertical ordering of scripts is controlled with the
126 @code{script-priority} property.  The lower this number, the
127 closer it will be put to the note.  In this example, the
128 @internalsref{TextScript} (the sharp symbol) first has the lowest
129 priority, so it is put lowest in the first example.  In the
130 second, the prall trill (the @internalsref{Script}) has the
131 lowest, so it is on the inside.  When two objects have the same
132 priority, the order in which they are entered decides which one
133 comes first.
134
135 @lilypond[verbatim,relative=3,ragged-right,fragment,quote]
136 \once \override TextScript #'script-priority = #-100
137 a4^\prall^\markup { \sharp }
138
139 \once \override Script #'script-priority = #-100
140 a4^\prall^\markup { \sharp }
141 @end lilypond
142
143
144 @seealso
145
146 Program reference: @internalsref{Script}.
147
148
149 @refbugs
150
151 These signs appear in the printed output but have no effect on the
152 MIDI rendering of the music.
153
154
155 @node Dynamics
156 @unnumberedsubsubsec Dynamics
157
158 @cindex Dynamics
159 @funindex \pppp
160 @funindex \ppp
161 @funindex \pp
162 @funindex \p
163 @funindex \mp
164 @funindex \mf
165 @funindex \f
166 @funindex \ff
167 @funindex \fff
168 @funindex \ffff
169 @funindex \fp
170 @funindex \sf
171 @funindex \sff
172 @funindex \sp
173 @funindex \spp
174 @funindex \sfz
175 @funindex \rfz
176
177 Absolute dynamic marks are specified using a command after a note
178 @code{c4\ff}.  The available dynamic marks are @code{\ppppp},
179 @code{\pppp}, @code{\ppp}, @code{\pp}, @code{\p}, @code{\mp},
180 @code{\mf}, @code{\f}, @code{\ff}, @code{\fff}, @code{\ffff},
181 @code{\fp}, @code{\sf}, @code{\sff}, @code{\sp}, @code{\spp},
182 @code{\sfz}, and @code{\rfz}.  The dynamic marks can be placed
183 above or below the staff with @code{_} and @code{^}, just like
184 articulation marks. 
185
186 @lilypond[quote,verbatim,ragged-right,fragment,relative=2]
187 c2\ppp c\mp 
188 c\rfz c^\mf
189 c_\spp c_\staccato^\ff
190 @end lilypond
191
192 @funindex \<
193 @funindex \>
194 @funindex \!
195
196 A crescendo mark is started with @code{\<} and terminated with
197 @code{\!} or an absolute dynamic.  A decrescendo is started with
198 @code{\>} and is also terminated with @code{\!} or an absolute
199 dynamic.  @code{\cr} and @code{\decr} may be used instead of
200 @code{\<} and @code{\>}.
201
202 Because these marks are bound to notes, you must use spacer notes
203 if multiple marks are needed during one note.
204
205 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
206 c\< c\! d\> e\!
207 << f1 { s4 s4\< s4\! \> s4\! } >>
208 @end lilypond
209
210 This may give rise to very short hairpins.  Use
211 @code{minimum-length} in
212 @internalsref{Voice}.@internalsref{Hairpin} to lengthen them, for
213 example:
214
215 @example
216 \override Voice.Hairpin #'minimum-length = #5
217 @end example
218
219 @noindent
220 A hairpin normally starts at the left edge of the beginning note
221 and ends on the right edge of the ending note.  If the ending note
222 falls on the downbeat, the hairpin ends on the immediately
223 preceding barline.  This may be modified by setting the
224 @code{hairpinToBarline} property,
225 @cindex Hairpin
226
227 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
228 e4\< e2. e1\!
229 \set hairpinToBarline = ##f
230 e4\< e2. e1\!
231 @end lilypond
232
233 @cindex espressivo, articulation
234 In some situations the @code{\espressivo} articulation mark may be
235 suitable to indicate a crescendo and decrescendo on the one note:
236
237 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
238 c2 b4 a g1\espressivo
239 @end lilypond
240
241 @cindex al niente
242 @cindex niente, al
243
244 Hairpins may be printed with a circled tip (al niente notation) by
245 setting the @code{circled-tip} property:
246
247 @lilypond[quote,ragged-right,fragment,relative=2,verbatim]
248 \override Hairpin #'circled-tip = ##t
249 c2\< c\!
250 c4\> c\< c2\!
251 @end lilypond
252
253
254 @cindex crescendo
255 @cindex decrescendo
256 @cindex diminuendo
257
258 You can use text saying @emph{cresc.} instead of hairpins with the
259 commands \setTextCresc, \setTextDim, and \setTextDecresc.  The
260 corresponding \setHairpinCresc, \setHairpinDim, and
261 \setHairpinDecresc will revert to hairpins again: 
262
263 @lilypond[quote,ragged-right,fragment,relative=2,verbatim]
264 \setTextCresc
265 c\< d e f\!
266 \setHairpinCresc
267 e\> d c b\!
268 \setTextDecresc
269 c\> d e f\!
270 \setTextDim
271 e\> d c b\!
272 @end lilypond
273
274 You can also supply your own texts and change the style of the
275 spanner line with the properties @code{\crescendoText},
276 @code{\crescendoSpanner}, @code{\decrescendoText}, and
277 @code{\decrescendoSpanner}. Available values for the spanner
278 properties are @code{hairpin}, @code{line}, @code{dashed-line},
279 and @code{dotted-line}. If unset, a hairpin crescendo is used:
280
281 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
282 \set crescendoText = \markup { \italic "cresc. poco" }
283 \set crescendoSpanner = #'dotted-line
284 a'2\< a a a a a a a\!\mf
285 @end lilypond
286
287
288 To create new dynamic marks or text that should be aligned with
289 dynamics, see @ref{New dynamic marks}.
290
291 Vertical positioning of dynamics is handled by
292 @internalsref{DynamicLineSpanner}.
293
294
295 @commonprop
296
297 Dynamics that occur at, begin on, or end on the same note will be
298 vertically aligned.  If you want to ensure that dynamics are
299 aligned when they do not occur on the same note, you can increase
300 the @code{staff-padding} property.
301
302 @example
303 \override DynamicLineSpanner #'staff-padding = #4
304 @end example
305
306 You may also use this property if the dynamics are colliding with
307 other notation.
308
309 Crescendi and decrescendi that cross a line break will be
310 continued on the second line.  If they end on the first note of a
311 new line, nothing will be printed on that line.  To change this
312 behavior, use
313
314 @example
315 \override Score.Hairpin #'after-line-breaking = ##t
316 @end example
317
318 Text style dynamic changes (such as @emph{cresc.} and @emph{dim.})
319 are printed with a dashed line showing their extent.  To surpress
320 printing this line, use
321
322 @example
323 \override DynamicTextSpanner #'dash-period = #-1.0
324 @end example
325
326
327 @refcommands
328
329 @funindex \dynamicUp
330 @code{\dynamicUp},
331 @funindex \dynamicDown
332 @code{\dynamicDown},
333 @funindex \dynamicNeutral
334 @code{\dynamicNeutral}.
335
336
337 @seealso
338
339 Program reference: @internalsref{DynamicText},
340 @internalsref{Hairpin}.  Vertical positioning of these symbols is
341 handled by @internalsref{DynamicLineSpanner}.
342 Glossary: @rglos{Hairpin}, @rglos{crescendo}, @rglos{decrescendo}
343
344
345 @node Curves
346 @subsection Curves
347
348 @menu
349 * Ties::                        
350 * Slurs::                       
351 * Phrasing slurs::              
352 * Breath marks::                
353 * Falls and doits::             
354 @end menu
355
356 @node Ties
357 @unnumberedsubsubsec Ties
358
359 @cindex tie
360 @funindex ~
361
362 A tie connects two adjacent note heads of the same pitch.  The tie
363 in effect extends the length of a note.  Ties should not be
364 confused with slurs, which indicate articulation, or phrasing
365 slurs, which indicate musical phrasing.  A tie is entered using
366 the tilde symbol @samp{~}
367
368 @lilypond[quote,ragged-right,fragment,verbatim]
369 e' ~ e' <c' e' g'> ~ <c' e' g'>
370 @end lilypond
371
372 When a tie is applied to a chord, all note heads whose pitches
373 match are connected.  When no note heads match, no ties will be
374 created.  Chords may be partially tied by placing the tie inside
375 the chord,
376
377 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
378 <c~ e g~ b> <c e g b>
379 @end lilypond
380
381 A tie is just a way of extending a note duration, similar to the
382 augmentation dot.  The following example shows two ways of
383 notating exactly the same concept
384
385 @lilypond[quote,fragment,ragged-right]
386 \time 3/4 c'2. c'2 ~ c'4
387 @end lilypond
388
389 @noindent
390 Ties are used either when the note crosses a bar line, or when
391 dots cannot be used to denote the rhythm.  When using ties, larger
392 note values should be aligned to subdivisions of the measure, such
393 as
394
395 @lilypond[fragment,quote,ragged-right]
396 \relative {
397   r8 c8 ~ c2 r4 | r8^"not" c2 ~ c8 r4
398 }
399 @end lilypond
400
401 If you need to tie a lot of notes over bars, it may be easier to
402 use automatic note splitting (see @ref{Automatic note splitting}).
403 This mechanism automatically splits long notes, and ties them
404 across bar lines.
405
406 @funindex \repeatTie
407 @cindex repeating ties
408 @cindex volta brackets and ties
409
410 When a second alternative of a repeat starts with a tied note, you
411 have to repeat the tie.  This can be achieved with
412 @code{\repeatTie},
413
414 @lilypond[fragment,quote,ragged-right,relative=2]
415 r <c e g>\repeatTie
416 @end lilypond
417
418 @cindex Laissez vibrer
419 @cindex Ties, laissez vibrer
420
421 L.v. ties (laissez vibrer) indicate that notes must not be damped
422 at the end.  It is used in notation for piano, harp and other
423 string and percussion instruments.  They can be entered using
424 @code{\laissezVibrer},
425
426 @lilypond[fragment,ragged-right,verbatim,relative=1]
427 <c f g>\laissezVibrer
428 @end lilypond
429
430 @seealso
431
432 Program reference:
433 @internalsref{LaissezVibrerTie}
434 @internalsref{LaissezVibrerTieColumn}
435
436 Example files:
437 @lsr{connecting,laissez-vibrer-ties.ly}
438
439
440 @commonprop
441
442 Ties are sometimes used to write out arpeggios.  In this case, two
443 tied notes need not be consecutive.  This can be achieved by
444 setting the @code{tieWaitForNote} property to true.  The same
445 feature is also useful, for example, to tie a tremolo to a chord.
446 For example,
447
448 @lilypond[fragment,verbatim,relative=1,ragged-right,quote]
449 \set tieWaitForNote = ##t
450 \grace { c16[~ e~ g]~ } <c, e g>2
451 \repeat tremolo 8 { c32~ c'~ } <c c,>1
452 e8~ c~ a~ f~ <e' c a f>2
453 @end lilypond
454
455 Ties may be engraved manually by changing the
456 @code{tie-configuration} property.  The first number indicates the
457 distance from the center of the staff in staff-spaces, and the
458 second number indicates the direction (1=up, -1=down).
459
460 @lilypond[fragment,verbatim,relative=1,ragged-right,quote]
461 <c e g>2~ <c e g> |
462 \override TieColumn #'tie-configuration =
463   #'((0.0 . 1) (-2.0 . 1) (-4.0 . 1))
464 <c e g>~ <c e g> |
465 @end lilypond
466
467
468 @refcommands
469
470
471 @funindex \tieUp
472 @code{\tieUp},
473 @funindex \tieDown
474 @code{\tieDown},
475 @funindex \tieNeutral
476 @code{\tieNeutral},
477 @funindex \tieDotted
478 @code{\tieDotted},
479 @funindex \tieDashed
480 @code{\tieDashed},
481 @funindex \tieSolid
482 @code{\tieSolid}.
483
484
485 @seealso
486
487 In this manual: @ref{Automatic note splitting}.
488
489 Program reference: @internalsref{Tie}.
490
491
492 @refbugs
493
494 Switching staves when a tie is active will not produce a slanted
495 tie.
496
497 Changing clefs or octavations during a tie is not really
498 well-defined.  In these cases, a slur may be preferable.
499
500
501 @node Slurs
502 @unnumberedsubsubsec Slurs
503
504 @cindex Slurs
505
506 A slur indicates that notes are to be played bound or
507 @emph{legato}.  They are entered using parentheses
508
509 @lilypond[quote,ragged-right,relative=2,fragment,verbatim]
510 f( g a) a8 b( a4 g2 f4)
511 <c e>2( <b d>2)
512 @end lilypond
513
514 The direction of a slur can be specified with
515 @code{\slur@emph{DIR}}, where @code{@emph{DIR}} is either
516 @code{Up}, @code{Down}, or @code{Neutral} (automatically
517 selected).
518
519 However, there is a convenient shorthand for forcing slur
520 directions.  By adding @code{_} or @code{^} before the opening
521 parentheses, the direction is also set.  For example,
522
523 @lilypond[relative=2,ragged-right,quote,verbatim,fragment]
524 c4_( c) c^( c)
525 @end lilypond
526
527 Only one slur can be printed at once.  If you need to print a long
528 slur over a few small slurs, please see @ref{Phrasing slurs}.
529
530
531 @commonprop
532
533 Some composers write two slurs when they want legato chords.  This
534 can be achieved in LilyPond by setting @code{doubleSlurs},
535
536 @lilypond[verbatim,ragged-right,relative,fragment,quote]
537 \set doubleSlurs = ##t
538 <c e>4 ( <d f> <c e> <d f> )
539 @end lilypond
540
541
542 @refcommands
543
544 @funindex \slurUp
545 @code{\slurUp},
546 @funindex \slurDown
547 @code{\slurDown},
548 @funindex \slurNeutral
549 @code{\slurNeutral},
550 @funindex \slurDashed
551 @code{\slurDashed},
552 @funindex \slurDotted
553 @code{\slurDotted},
554 @funindex \slurSolid
555 @code{\slurSolid}.
556
557 @seealso
558
559 Program reference: @internalsref{Slur}.
560
561
562 @node Phrasing slurs
563 @unnumberedsubsubsec Phrasing slurs
564
565 @cindex phrasing slurs
566 @cindex phrasing marks
567
568 A phrasing slur (or phrasing mark) connects notes and is used to
569 indicate a musical sentence.  It is written using @code{\(} and
570 @code{\)} respectively
571
572 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
573 \time 6/4 c'\( d( e) f( e) d\)
574 @end lilypond
575
576 Typographically, the phrasing slur behaves almost exactly like a
577 normal slur.  However, they are treated as different objects.  A
578 @code{\slurUp} will have no effect on a phrasing slur; instead,
579 use @code{\phrasingSlurUp}, @code{\phrasingSlurDown}, and
580 @code{\phrasingSlurNeutral}.
581
582 You cannot have simultaneous phrasing slurs.
583
584
585 @refcommands
586
587 @funindex \phrasingSlurUp
588 @code{\phrasingSlurUp},
589 @funindex \phrasingSlurDown
590 @code{\phrasingSlurDown},
591 @funindex \phrasingSlurNeutral
592 @code{\phrasingSlurNeutral}.
593
594
595 @seealso
596
597 Program reference: @internalsref{PhrasingSlur}.
598
599
600 @node Breath marks
601 @unnumberedsubsubsec Breath marks
602
603 Breath marks are entered using @code{\breathe}
604
605 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
606 c'4 \breathe d4
607 @end lilypond
608
609
610 @commonprop
611
612 The glyph of the breath mark can be tuned by overriding the
613 @code{text} property of the @code{BreathingSign} layout object
614 with any markup text.  For example,
615
616 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
617 c'4
618 \override BreathingSign #'text
619   = #(make-musicglyph-markup "scripts.rvarcomma")
620 \breathe
621 d4
622 @end lilypond
623
624 @seealso
625
626 Program reference: @internalsref{BreathingSign}.
627
628 Examples: @lsr{expressive,breathing-sign.ly}
629
630
631 @node Falls and doits
632 @unnumberedsubsubsec Falls and doits
633
634 Falls and doits can be added to notes using the @code{\bendAfter}
635 command,
636
637 @lilypond[fragment,ragged-right,relative=2]
638 \override Score.SpacingSpanner #'shortest-duration-space = #3.0
639 c4-\bendAfter #+5
640 c4-\bendAfter #-3
641 @end lilypond
642
643
644 @node Lines
645 @subsection Lines
646
647 @menu
648 * Glissando::                   
649 * Arpeggio::                    
650 * Trills::                      
651 * Analysis brackets::           
652 @end menu
653
654 @node Glissando
655 @unnumberedsubsubsec Glissando
656
657 @cindex Glissando
658 @funindex \glissando
659
660 A glissando is a smooth change in pitch.  It is denoted by a line
661 or a wavy line between two notes.  It is requested by attaching
662 @code{\glissando} to a note
663
664 @lilypond[quote,ragged-right,fragment,relative=2,verbatim]
665 c2\glissando c'
666 \override Glissando #'style = #'zigzag
667 c2\glissando c,
668 @end lilypond
669
670
671 @commonprop
672
673 @lilypond[quote,ragged-right,verbatim]
674 I = \once \override NoteColumn #'ignore-collision = ##t
675
676 \relative <<
677   { \oneVoice \stemDown f2 \glissando \stemNeutral a } \\
678   { \oneVoice \I c2 \glissando \I d, }
679 >>
680 @end lilypond
681
682
683
684 @seealso
685
686 Program reference: @internalsref{Glissando}.
687
688 Example files:
689 @lsr{expressive,glissando.ly}, @lsr{expressive,line-styles.ly}
690
691
692 @refbugs
693
694 Printing text over the line (such as @emph{gliss.}) is not
695 supported.
696
697
698 @node Arpeggio
699 @unnumberedsubsubsec Arpeggio
700
701 @cindex Arpeggio
702 @cindex broken chord
703 @funindex \arpeggio
704
705 You can specify an arpeggio sign (also known as broken chord) on a
706 chord by attaching an @code{\arpeggio} to a chord
707
708 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
709 <c e g c>\arpeggio
710 @end lilypond
711
712 A square bracket on the left indicates that the player should not
713 arpeggiate the chord
714
715 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
716 \arpeggioBracket
717 <c' e g c>\arpeggio
718 @end lilypond
719
720 The direction of the arpeggio is sometimes denoted by adding an
721 arrowhead to the wiggly line
722
723 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
724 \new Voice {
725   \arpeggioUp
726   <c e g c>\arpeggio
727   \arpeggioDown
728   <c e g c>\arpeggio
729 }
730 @end lilypond
731
732
733 @commonprop
734
735 When an arpeggio crosses staves, you may attach an arpeggio to the
736 chords in both staves and set
737 @internalsref{PianoStaff}.@code{connectArpeggios}
738
739 @lilypond[quote,ragged-right,fragment,relative=1,verbatim]
740 \new PianoStaff <<
741   \set PianoStaff.connectArpeggios = ##t
742   \new Staff { <c' e g c>\arpeggio }
743   \new Staff { \clef bass <c,, e g>\arpeggio }
744 >>
745 @end lilypond
746
747 @c TODO: cross-voice arpeggio example?
748 @c such an example is already in LSR -J.Mandereau
749
750 @refcommands
751
752 @code{\arpeggio},
753 @funindex \arpeggioUp
754 @code{\arpeggioUp},
755 @funindex \arpeggioDown
756 @code{\arpeggioDown},
757 @funindex \arpeggioNeutral
758 @code{\arpeggioNeutral},
759 @funindex \arpeggioBracket
760 @code{\arpeggioBracket}.
761
762
763 @seealso
764
765 Notation manual: @ref{Ties}, for writing out arpeggios.
766
767 Program reference: @internalsref{Arpeggio}.
768
769
770 @refbugs
771
772 It is not possible to mix connected arpeggios and unconnected
773 arpeggios in one @internalsref{PianoStaff} at the same point in
774 time.
775
776
777 @node Trills
778 @unnumberedsubsubsec Trills
779
780 Short trills are printed like normal articulation; see
781 @ref{Articulations and ornamentations}.
782
783 Long running trills are made with @code{\startTrillSpan} and
784 @code{\stopTrillSpan},
785
786 @lilypond[verbatim,ragged-right,relative=2,quote,fragment]
787 \new Voice {
788   << { c1 \startTrillSpan }
789      { s2. \grace { d16[\stopTrillSpan e] } } >>
790   c4 }
791 @end lilypond
792
793 @cindex Pitched trills
794
795 Trills that should be executed on an explicitly specified pitch
796 can be typeset with the command @code{pitchedTrill},
797
798 @lilypond[ragged-right,verbatim,fragment,relative=1,quote]
799 \pitchedTrill c4\startTrillSpan fis
800 f\stopTrillSpan
801 @end lilypond
802
803 @noindent
804 The first argument is the main note.  The pitch of the second is
805 printed as a stemless note head in parentheses.
806
807
808 @refcommands
809
810 @code{\startTrillSpan},
811 @funindex \startTrillSpan
812 @code{\stopTrillSpan}.
813 @funindex \stopTrillSpan
814
815
816 @seealso
817
818 Program reference: @internalsref{TrillSpanner}.
819
820
821 @node Analysis brackets
822 @unnumberedsubsubsec Analysis brackets
823
824 @cindex brackets
825 @cindex phrasing brackets
826 @cindex musicological analysis
827 @cindex note grouping bracket
828
829 Brackets are used in musical analysis to indicate structure in
830 musical pieces.  LilyPond supports a simple form of nested
831 horizontal brackets.  To use this, add the
832 @internalsref{Horizontal_bracket_engraver} to @internalsref{Staff}
833 context.  A bracket is started with @code{\startGroup} and closed
834 with @code{\stopGroup}
835
836 @lilypond[quote,ragged-right,verbatim]
837 \score {
838   \relative c'' {
839     c4\startGroup\startGroup
840     c4\stopGroup
841     c4\startGroup
842     c4\stopGroup\stopGroup
843   }
844   \layout {
845     \context {
846       \Staff \consists "Horizontal_bracket_engraver"
847 }}}
848 @end lilypond
849
850 @seealso
851
852 Program reference: @internalsref{HorizontalBracket}.
853
854
855