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