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

Reply via email to