lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Staff/chords spacing.


From: Simon Albrecht
Subject: Re: Staff/chords spacing.
Date: Tue, 18 Mar 2014 00:14:12 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0


Am 17.03.2014 20:42, schrieb David Kastrup:
Simon Albrecht <address@hidden> writes:

In more complex situations with \include and several scores in one
file it _is_ useful or even necessary, if you want to have one \layout
definition for all scores in common, but for example remove the
Mark_engraver (from Score) only for one of the scores. At least I did
not find an alternative for \with in this particular case.
\score {
   ...
   \layout {
     \context { \Score
                \remove "Mark_engraver"
     }
   }
}

This only changes \layout for the given score.
I didn’t make myself clear:
I have a separate .ly file containing a \layout block which is applied to all scores using
\score {
  ...
  \include "layout.ly"
}

(I tried using an identifier:
myLayout = { \context {...}
  \context {...}
}
\score {
  ...
  \layout {
    \context {...}
    \myLayout
  }
}
but multiple errors occurred and

warning: Music unsuitable for output-def

was issued, so I abandoned the try, thinking there would probably some principal restriction I don’t understand)

So as it is, I can’t include another layout block with modifications only for this particular score but for the score being printed twice.
The solution would have been \new Score \with {}, but as I said there were some errors also and I don’t know why. I’ll have another look at that one in order to find out and come up with a minimal example in case the issue doesn’t clear itself in the making.

Best regards,
Simon

reply via email to

[Prev in Thread] Current Thread [Next in Thread]