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