[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ambitus
From: |
Neil Puttock |
Subject: |
Re: Ambitus |
Date: |
Fri, 5 Feb 2010 00:18:42 +0000 |
On 3 February 2010 17:36, Reinhold Kainhofer <address@hidden> 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
ambitus-markup-engraver.png
Description: PNG image
- Re: Ambitus, Neil Puttock, 2010/02/01
- Re: Ambitus, Reinhold Kainhofer, 2010/02/03
- Re: Ambitus,
Neil Puttock <=