Re: font size override and grace notes
better use \once to override the size of the g, or revert the note heads size after the slashed grace is done: \override NoteHead #'font-size = #4g \slashedGrace a16( \revert NoteHead #'font-size b8) In this particular case, it would likely be safer to use a \tweak. tweaks are not timing-related and thus are impervious to the quirks of grace note timing. Thanks for the advice. I guess I'm surprised the revert doesn't happen immediately. This arose in a more complicated context where I don't think doing tweaks is relevant; the initial override is from a function where I'm notating a strum. strumFn = #(define-music-function (parser location strums) (ly:music?) #{ \set squashedPosition = #-2 \override NoteHead #'style = #'slash \override NoteHead #'font-size = #1 \override Beam #'positions = #'(4 . 4) \override Stem #'length = #8 \override Accidental #'stencil = ##f \override AccidentalCautionary #'stencil = ##f \stemUp #strums \stemNeutral \unset squashedPosition \revert NoteHead #'style \revert NoteHead #'font-size \revert Beam #'positions \revert Stem #'length \revert Accidental #'stencil \revert AccidentalCautionary #'stencil #}) \new Voice = melody \with { \consists Pitch_squash_engraver } { \strumFn { c8[ c] } \acciaccatura a'16 b'8 } \version 2.16.0 ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: font size override and grace notes
David Kastrup dak at gnu.org writes: What about strumFn = #(define-music-function (parser location strums) (ly:music?) #{ \new Voice \with { \consists Pitch_squash_engraver squashedPosition = #-2 \override NoteHead #'style = #'slash \override NoteHead #'font-size = #1 \override Beam #'positions = #'(4 . 4) \override Stem #'length = #8 \override Accidental #'stencil = ##f \override AccidentalCautionary #'stencil = ##f \stemUp } { #strums } #}) \new Voice = melody { \strumFn { c8[ c] } \acciaccatura a'16 b'8 } Adding an extra voice makes it hard to put in lyrics that are sung to both the strumming as well as the plucked notes: \new Voice = melody { \strumFn { c8[ c] } \acciaccatura a'16 b'8 } \new Lyrics \lyricsto melody { when I sing } I'm still not clear why this is happening in the first place. Why should the revert affect an override that occurs in the following expression? ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
Re: font size override and grace notes
I'm still not clear why this is happening in the first place. Why should the revert affect an override that occurs in the following expression? It is not following. Grace notes go back in time. Ah, thank you. I didn't know that. I see why it's a tricky situation. I guess that means my current workaround isn't so bad after all: g8 \strumE d,8 \strumE | % Something weird with the strum to the grace note. \once \override NoteHead #'font-size = #-2 \slashedGrace a'16( b8) URL:http://code.google.com/p/lilypond/issues/detail?id=34 ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond
font size override and grace notes
I'm not top posting. Sorry if this is a dup. I did a quick web search, and code.google.com search, and didn't see anything close. The following doesn't do what I'd expect. The grace note has the large font size; I'd expect it to be its regular size (ie, small). Let me know if you need any more information or context. \relative c' { \override NoteHead #'font-size = #1 g \revert NoteHead #'font-size \slashedGrace a16( b8) } \version 2.16.0 ___ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond