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