X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Ftest%2Fgrace.ly;h=dbc42a872c6ff592be80af046a58eab731319855;hb=9d57f53d36a3d7ea280355086a0df9a16dc50992;hp=5d625966ca6c95294de424c8e71cdfa7292b6d59;hpb=bb446de35e2d24c7f6f15425a76b433cb71a4a1d;p=lilypond.git diff --git a/input/test/grace.ly b/input/test/grace.ly index 5d625966ca..dbc42a872c 100644 --- a/input/test/grace.ly +++ b/input/test/grace.ly @@ -1,24 +1,30 @@ +\header{ +texidoc=" +Grace notes are typeset as an encapsulated piece of music. You can +have beams, notes, chords, stems etc. within a @code{\grace} section. +Slurs that start within a grace section, but aren't ended are attached +to the next normal note. Grace notes have zero duration. If there +are tuplets, the grace notes won't be under the brace. Grace notes +can have accidentals, but they are (currently) spaced at a fixed +distance. Grace notes (of course) come before the accidentals of the +main note. Grace notes can also be positioned after the main note. -\version "1.0.14"; +Grace notes without beams should have a slash, if @code{flagStyle} is +not set. Main note scripts don't end up on the grace note. -\score{ - < - \type Staff = a \notes\relative c < -% {\grace b''8 \graceat a4 \ecarg g fis2 | a2 a } - {\tiny b''8*1/16 \normalsize a4*31/32 g fis2 | a2 a } - > - \type Staff = b \notes\relative c < -% {\grace g''16 b16 \graceat a4 \ecarg g fis2 | } - {\tiny g''16*1/16 b16*1/16 \normalsize a4*31/32 g fis2 | a1 } - > - \type Staff = c \notes\relative c < -% {\grace \times 2/48 { [ g''16 b g] } \graceat a4 \ecarg g fis2 | a1 } - {\tiny \times 2/48 { [ g''16 b g] } \normalsize a4*31/32 g fis2 | a1 } - > - > - \paper { - linewidth = 120.0\mm; - \translator { \VoiceContext } - } +"; } +\score {\notes \context Voice = VA \relative c'' { + \grace b8 c4-\fermata + \grace { [c32 cis32] } gis4 + \grace { [cis32 dis32] } e4 + \grace { [c32 d] }\times 2/3 { [c8 c c] } + \grace { [b32 ( c32] } ) c4 + \grace [c8 c8] +% \grace c16 [c8 c8] + \grace { \property Grace.graceAlignPosition = \right c16} c4 +} +\paper {linewidth = -1.;} +\midi{ } +}