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