lilypond-user
[Top][All Lists]
Advanced

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

Re: Detecting first and last pages of a score


From: Leah Velleman
Subject: Re: Detecting first and last pages of a score
Date: Fri, 6 Sep 2019 11:46:34 -0400

Well, although my knowledge of the internals is quite limited, it looks to me like there is precedent for this, involving page headers. As you say, a score can be placed multiple times. And each time it is placed, it can be interrupted at different points by page headers. I could see this being quite tricky -- but there is apparently a mechanism that lets it happen.

At the moment when Lilypond stops placing systems on the page in order to insert one of those page headers, could it not be given access to the information "this is partway through a score, and here is the title from the header block of that score"? 

(If the answer is "no, it can't do that and it never will be able to," then that's the answer. I'm not trying to argue with you, just clarifying what I was imagining.)


On Fri, Sep 6, 2019 at 10:48 AM David Kastrup <address@hidden> wrote:
Andrew Bernard <address@hidden> writes:

>> On 3/9/19 7:48 am, Leah Velleman wrote:
>>> In
>>> https://github.com/lilypond/lilypond/blob/master/ly/titling-init.ly there
>>> are predicates that detect if the current page is the first or last
>>> one of a /book/, or of a /bookpart/. But it's not clear to me how to
>>> generalize from there. How would I detect if the current page was
>>> the first or last page of a /score/?
>
> Hello Leah,
>
> I have been looking into this. Searching the archives I see you have
> been asking about this since at least 2015.
>
> I don't think it is possible. The control stops art bookparts where
> you can use the on the fly functions. Next level down at \score -
> either impossible or not documented.
>
> Lilypond internals gurus, can we do this? [Pretty please?]

Do _what_?  You can place a score multiple times with its distribution
across pages being different every time.  When do you plan to take
action for "detecting if the current page was the first or last page of
a score" when each copy of the score will have a different page
distribution?  This action can then not be part of the score proper
because it has to be different each time.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

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