[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more succinct code
From: |
Thomas Morley |
Subject: |
Re: more succinct code |
Date: |
Wed, 14 Jan 2015 01:39:16 +0100 |
2015-01-13 23:59 GMT+01:00 Craig Dabelstein <address@hidden>:
> Good morning List,
>
> Sorry if this is a simple question, but I was wondering if the following
> code cand be made shorter by putting these elements of code somewhere that
> can be shared by all staves.
>
> \consists "Page_turn_engraver"
> \consists "Melody_engraver"
> \override Stem.neutral-direction = #'()
> \override MultiMeasureRest #'minimum-length = #10
>
>
> Here is my file:
[...]
a) put a \with in a variable and apply it to certain Staff.
b) put a \layout in score to apply it to all affected contexts of this score.
c) put a \layout at toplevel to apply it to all scores of the file
Below example for a) and b)
For c) c/p the layout from score ate toplevel
clr =
\with { \override BarLine.color = #red }
<<
\new Staff \clr
{ r1 r1 }
\new Staff
{ r1 r1 }
>>
\score {
<<
\new Staff
{ r1 r1 }
\new Staff
{ r1 r1 }
>>
\layout {
\override Staff.BarLine.color = #green
}
}
HTH,
Harm
There should be examples in LM and/or NR ...