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