My saviour! Thanks for your help. I now have my layout block looking like this (below), but I was wondering if there is a way to incorporate this code into the layout block as well:
\markLengthOn \compressFullBarRests % rehearsal letters \set Score.markFormatter = #format-mark-box-alphabet ------------------------------------------- \layout { \context { \Staff \consists "Page_turn_engraver" \consists "Melody_engraver" \override Stem.neutral-direction = #'() \override MultiMeasureRest.expand-limit = #1 \override MultiMeasureRest #'minimum-length = #15 \override Hairpin.minimum-length = #7 % if cresc spanners are too long % \override DynamicTextSpanner.style = #'none % if dynamics are hitting barline in score % \override DynamicText.extra-spacing-width = ##f } \context { \Score \override BarNumber #'font-shape = #'italic \override MetronomeMark.padding = #3 \override MetronomeMark.extra-spacing-width = #'(-0.5 . 3.0) \override RehearsalMark.padding = #2 \override RehearsalMark.extra-spacing-width = #'(-0.5 . 0.5) } } On Wed Jan 14 2015 at 10:39:17 AM Thomas Morley <thomasmorle...@gmail.com> wrote: > 2015-01-13 23:59 GMT+01:00 Craig Dabelstein <craig.dabelst...@gmail.com>: > > 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 ... >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user