Noeck <noeck.marb...@gmx.de> 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user