[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make defining new contexts simpler with better \alias functionality
From: |
Paul Morris |
Subject: |
Re: Make defining new contexts simpler with better \alias functionality |
Date: |
Sun, 8 Mar 2015 08:05:47 -0700 (MST) |
David Kastrup wrote
> Actually, that kind of usage only works outside of \score.
>
> If you write
> \score {
> ...
> \layout { \context { \Voice \name myVoice } }
> \accept-like Voice myVoice \layout { }
> }
>
> Then you get _two_ typeset scores. One without the \accept properties
> in place, and one without the context definition.
>
> But your proposal would not really fare better: an \accept-like-layout
> command in that position would not really have a way of getting at the
> previous score-specific layout definition.
Ah, ok, good catch. So for score specific contexts the following usage is
needed.
\score {
\new myVoice { c' d' e' f' }
\accept-like Voice myVoice \layout {
\context {
\Voice
\name myVoice
\alias Voice
\override NoteHead.color = #blue
}
}
}
So it's probably best to just recommend that as the way to do it in all
cases.
-Paul
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Make-defining-new-contexts-simpler-with-better-alias-functionality-tp172723p172806.html
Sent from the Bugs mailing list archive at Nabble.com.
- Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/06
- Re: Make defining new contexts simpler with better \alias functionality, David Kastrup, 2015/03/06
- Re: Make defining new contexts simpler with better \alias functionality, David Kastrup, 2015/03/06
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/06
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/06
- Re: Make defining new contexts simpler with better \alias functionality, David Kastrup, 2015/03/07
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/07
- Re: Make defining new contexts simpler with better \alias functionality, David Kastrup, 2015/03/07
- Re: Make defining new contexts simpler with better \alias functionality,
Paul Morris <=
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/08
- Re: Make defining new contexts simpler with better \alias functionality, David Kastrup, 2015/03/08
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/08
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/16
- Re: Make defining new contexts simpler with better \alias functionality, Colin Campbell, 2015/03/16
- Re: Make defining new contexts simpler with better \alias functionality, Paul Morris, 2015/03/17