bug-lilypond
[Top][All Lists]
Advanced

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

Feature request: let \layout accept several \layouts stored in variables


From: Malte Meyn
Subject: Feature request: let \layout accept several \layouts stored in variables
Date: Sun, 15 Jul 2018 09:24:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi list,

it’s possible to write something like

%%%%%%%%%%%%%%%%%%%%%%%%%
ambitus = \layout {
  \context {
    \Voice
    \consists Ambitus_engraver
  }
}

\score {
  \relative { c' d e f g a b c }
  \ambitus
}
%%%%%%%%%%%%%%%%%%%%%%%%%

or put the \layout variable in a \layout block:

%%%%%%%%%%%%%%%%%%%%%%%%%
\score {
  \relative { c' d e f g a b c }
  \layout { \ambitus }
}
%%%%%%%%%%%%%%%%%%%%%%%%%

Now it would be nice if \layout could accept several such \layout variables:

%%%%%%%%%%%%%%%%%%%%%%%%%
musicaFicta = \layout {
  \context {
    \Voice
    suggestAccidentals = ##t
  }
}

\score {
  \relative { c' d e f g a b c }
  \layout {
    \ambitus
    \musicaFicta
  }
}
%%%%%%%%%%%%%%%%%%%%%%%%%

Currently, that gives an “error: bad expression type” for \musicaFicta. If not putting \ambitus and \musicaFicta in another \layout layer, that will give two scores, one with Ambitus_engraver and one with suggestAccidentals.

Would it be possible to implement this?

Cheers,
Malte



reply via email to

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