]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/expressive/how-to-print-a-classical-trill-combining-acciaccatura,-trillspan-and-aftergrace.ly
fe3bd5b3471ab7af2e570546be639dff7b055015
[lilypond.git] / input / lsr / expressive / how-to-print-a-classical-trill-combining-acciaccatura,-trillspan-and-aftergrace.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 Here is an excerpt of Mozart's KV545 piano Sonata (as brought to
6 Mutopia by A. Sierra), in which you can see the typical classical
7 trill, i.e. beginning with an acciaccatura, then trilling the whole
8 bar, and ending with two afterGrace notes. 
9
10 This combination, which is rather frequent (if not systematic) in
11 classical piano music, requires a rather precise typesetting: first the
12 \acciaccatura, then the \afterGrace (which you have to define using
13 Scheme-like syntax), then the main note, the TrillSpan and the two
14 final notes (don't forget the curly braces here). You can also notice
15 here the \slurDown, which avoids slurs collision.
16 " }
17
18 rh = \relative {
19   b''8-3(\f g-1) d'2-5(\sf c16 b a g)
20 #(define afterGraceFraction (cons 31 32))
21  \acciaccatura b8-3 \slurDown \afterGrace a1  \startTrillSpan \( ( {g16[ a ] )
22 \stopTrillSpan}
23   g4 \) r2.
24 }
25
26 lh = \relative {
27   \clef treble 
28   d16_5 b'_1 g_2 b \repeat unfold 3 { d, b' g b } 
29   \repeat unfold 4 { d, c' fis, c' }
30   <g-2 b-1>4 r2. 
31 }
32
33
34 \score {
35   \new PianoStaff <<
36     \new Staff \rh
37     \new Staff \lh
38   >>
39 }