Thursday, May 22, 2008

After grace positioning in LilyPond

LilyPond renders after grace notes well in a variety of metric positions.



\layout { indent = #0
ragged-right = ##t
}

\new Staff \with {
\remove Time_signature_engraver
} {
\set Score.proportionalNotationDuration = #(ly:make-moment 1 32)
\override Score.SpacingSpanner #'uniform-stretching = ##t
\override Score.SpacingSpanner #'strict-note-spacing = ##t
\override Score.SpacingSpanner #'strict-grace-spacing = ##t
\override Stem #'direction = #down
\afterGrace c'8 [ { c'32 [ c'32 c'32 c'32 ] } c'8 c'8 c'8 ]
c'8 [ \afterGrace c'8 { c'32 [ c'32 c'32 c'32 ] } c'8 c'8 ]
c'8 [ c'8 \afterGrace c'8 { c'32 [ c'32 c'32 c'32 ] } c'8 ]
c'8 [ c'8 c'8 \afterGrace c'8 ] { c'32 [ c'32 c'32 c'32 ] }
}

No comments: