|
From: | Paolo Prete |
Subject: | Re: Override a StaffSymbol property outside \new Staff { ... } context |
Date: | Thu, 16 Jan 2020 03:41:15 +0100 |
On 2020-01-15 5:15 pm, Paolo Prete wrote:
> Hello,
>
> is it possible to override a property of StaffSymbol outside a
> \new Staff \with { ... }
> context?
>
> I would like to obtain something like:
>
> %%%%%%%%%%%%%%%%%%%
>
> #scheme-code-for-overriding-staffsymbol-for-all-the-staves-in-the-score
> {
> c' c' c' c'
> }
>
> %%%%%%%%%%%%%%%%%%%
Without needing to mess with Scheme, you can do this using the \layout
block providing you want to change all staves:
%%%%
\version "2.19.83"
\layout {
\context {
\Staff
\override StaffSymbol.color = #red
}
}
\new Staff { b'4 }
\new Staff { b'4 }
\new Staff { b'4 }
%%%%
(That is a top-level \layout block, but the same can be done within a
\score to scope the effect.)
\name RedStaff
\alias Staff
\override StaffSymbol.color = #red
}
\inherit-acceptability RedStaff Staff
}
[Prev in Thread] | Current Thread | [Next in Thread] |