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