lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lyrics and aftergrace


From: Neil Puttock
Subject: Re: lyrics and aftergrace
Date: Tue, 7 Apr 2009 22:09:43 +0100

2009/4/7 Stefan Thomas <address@hidden>:
> Yes, this is exactly what I want

I think you'll have to fake the grace notes in this situation.  You
probably won't get them to look perfectly grace-like, due to spacing
constraints and the action of the lyrics, though you might be able to
tweak them slightly by override SpacingSpanner.

startGrace = {
  \override Stem #'direction = #UP
  \override Stem #'font-size = #-3
  \override NoteHead #'font-size = #-3
  \override Dots #'font-size = #-3
  \override Stem #'length-fraction = #0.8
  \override Stem #'no-stem-extend = ##t
  \override Beam #'thickness = #0.384
  \override Beam #'length-fraction = #0.8
  \override Accidental #'font-size = #-4
  \override Slur #'direction = #DOWN
}
stopGrace = {
  \revert Stem #'direction
  \revert Stem #'font-size
  \revert NoteHead #'font-size
  \revert Dots #'font-size
  \revert Stem #'length-fraction
  \revert Stem #'no-stem-extend
  \revert Beam #'thickness
  \revert Beam #'length-fraction
  \revert Accidental #'font-size
  \revert Slur #'direction
}

graceNotes =
#(define-music-function (parser location music) (ly:music?)
#{
  \startGrace
  $music
  \stopGrace
#})

melodie = \relative c'' {
  \global cis2.*47/48\trill \graceNotes { b16*1/8 [ cis] } | d4
}

Regards,
Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]