[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: access font-size of clef G_8
From: |
David Kastrup |
Subject: |
Re: access font-size of clef G_8 |
Date: |
Wed, 03 Feb 2016 22:46:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Noeck <address@hidden> writes:
> Hi,
>
> is there any difference between a) and b)?
>
> \layout {
> % a)
> \context {
> \Score
> \override ClefModifier.font-size = #2
> }
> % b)
> \override Score.ClefModifier.font-size = #2
> }
Version a) becomes quite more efficient once you change more than a
single setting in the same context definition since it only copies the
Score definition once per context definition while b) copies it once per
music expression.
Also a) changes a single context definition while b) changes all context
definitions that have an alias of "Score" as well (for "Score" that's
rather unlikely, but for "Staff" there are a lot more candidates).
> And does this difference change anything if it is put in a global
> (i.e. score-wide) \layout block?
No.
> 1) \override Score.ClefModifier.font-size = #2
> 2) \override Staff.ClefModifier.font-size = #2
>
> 1) Changes all clef modifiers in the whole score and 2) in every staff
> in the score. As the clef modifier occurs in a staff, this sounds
> identical to me. Are there situation where the effect differs?
Depends on the context definitions in ly/engraver-init.ly. Does not
appear like ClefModifier is touched there (after initializing it in
Global from all-grob-descriptions).
So any such situation will be created by yourself.
--
David Kastrup
- access font-size of clef G_8, Jonathan Scholbach, 2016/02/03
- Re: access font-size of clef G_8, Kieren MacMillan, 2016/02/03
- Re: access font-size of clef G_8, Federico Bruni, 2016/02/03
- Re: access font-size of clef G_8, Kieren MacMillan, 2016/02/03
- Re: access font-size of clef G_8, Federico Bruni, 2016/02/03
- Re: access font-size of clef G_8, Jonathan Scholbach, 2016/02/03
- Re: access font-size of clef G_8, David Kastrup, 2016/02/03
- Re: access font-size of clef G_8, Noeck, 2016/02/03
- Re: access font-size of clef G_8,
David Kastrup <=
- Re: access font-size of clef G_8, Noeck, 2016/02/04
- Re: access font-size of clef G_8, David Kastrup, 2016/02/04
- Re: access font-size of clef G_8, Noeck, 2016/02/04