]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/grace.ly
patch::: 1.5.4.jcn1
[lilypond.git] / input / regression / grace.ly
1 \version "1.3.146"
2
3 \header{
4 texidoc="
5 Grace notes are typeset as an encapsulated piece of music. You can
6 have beams, notes, chords, stems etc. within a @code{\grace} section.
7 Slurs that start within a grace section, but aren't ended are attached
8 to the next normal note.  Grace notes have zero duration.  If there
9 are tuplets, the grace notes won't be under the brace.  Grace notes
10 can have accidentals, but they are (currently) spaced at a fixed
11 distance.  Grace notes (of course) come before the accidentals of the
12 main note.  Grace notes can also be positioned after the main note.
13
14 Grace notes without beams should have a slash, if @code{flagStyle} is
15 not set.  Main note scripts don't end up on the grace note.
16
17 "
18 }
19
20 \score {\notes \context Voice = VA \relative c'' {
21         \grace b8 c4-\fermata
22         \grace { [c32 cis32] } gis4
23         \grace { [cis32 dis32] } e4
24         \grace { [c32 d] }\times 2/3 { [c8 c c] }
25          \grace { [b32 ( c32] } ) c4
26         \grace  <c16 d16> [c8 c8]
27 %       \grace  c16 [c8 c8]
28         %% broken?
29         %%\grace  { \property Grace.graceAlignPosition = \right c16} c4
30         c4 \grace  { c16 } c4
31 }
32 \paper {linewidth = -1.}
33 \midi{ }
34 }