Am 15.07.2018 um 09:24 schrieb Malte Meyn:
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
Indeed that would be a nice tool.
I was once directed to a solution that basically has that effect. You
can find it at
https://git.openlilylib.org/bfsc/kayser/blob/master/includes/lib/engrave.ily#L126
(up to line 146).
Maybe it would be possible to generalize that, but I haven't thought
about that (and it would probably be over my head anyway).
HTH
Urs
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond