Re: Make context to not see forced slur positions?

Kieren MacMillan <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.general
Message-ID <[email protected]>
Hi Michael,

> I basically have two working templates, because they vary widely in settings.
> One for single instrument scores, one for the full score.

The easy — but rigid and cluttered and difficult-to-maintain — way is to use tags:

%%%  BEGIN SNIPPET
\version "2.27.1"

slurred = \fixed a'' {
  a4 \tag #'part { \once \slurDown } c( d e |
  f4 g) a f
}

\markup "1. Part (slur forced)"
\score {
  \keepWithTag #'part \slurred
}

\markup "2. Score (slur default)"
\score {
  \keepWithTag #'score \slurred
}
%%%  END SNIPPET

For more flexibility, ease of long-term maintenance, and clarity of code, I would personally use the edition-engraver.

Hope that helps!
Kieren
__________________________________________________

My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.