On 3 February 2010 17:36, Reinhold Kainhofer <reinh...@kainhofer.com> wrote:
> Isn't it possible to generate the ambitus score object in the 'finalize > method > of the engraver and assign it to a header field? One could then use > subtitle=\fromproperty #'header:ambitus > to get the ambitus printed. Yes (see attached file). I had to move the markup outside the 'finalize method though, since it wouldn't evaluate it directly. > However, I'm currently stuck at how to obtain the score the engraver is > assigned to (of course, one could always simply insert into > $defaultlayout...). > So, given the engraver object (or the associated context), how can I obtain > the score object or its header layout? It's probably a horrible kludge, but simply changing the current module to the header inside 'finalize allows you to set any properties directly (since it isn't an output-def, you can't use the usual functions here). I cached the old module just in case, though it didn't have any effect if it wasn't restored. Regards, Neil
ambitus-markup-engraver.ly
Description: Binary data
<<attachment: ambitus-markup-engraver.png>>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user