Paul Morris <[email protected]> writes:
> I thought of another limit case: trying to create more than one custom
> context inside a single score block, as follows, will result in more than
> one typeset score:
>
> \score {
> <<
> \new myVoice { c' d' e' f' }
> \new myOtherVoice { e' f' g' a' }
> >>
>
> \accept-like Voice myVoice \layout {
> \context {
> \Voice
> \name myVoice
> \alias Voice
> \override NoteHead.color = #blue
> }
> }
> \accept-like Voice myOtherVoice \layout {
> \context {
> \Voice
> \name myOtherVoice
> \alias Voice
> \override NoteHead.color = #green
> }
> }
> }
>
>
> One way around this would be to edit the function to work as follows,
> accepting an alist as the first argument.
You are thinking too complicated.
\score {
<<
\new myVoice { c' d' e' f' }
\new myOtherVoice { e' f' g' a' }
>>
\accept-like Voice myVoice
\accept-like Voice myOtherVoice
\layout {
\context {
\Voice
\name myVoice
\alias Voice
\override NoteHead.color = #blue
\context {
\Voice
\name myOtherVoice
\alias Voice
\override NoteHead.color = #green
}
}
}
--
David Kastrup
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond