[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: How to get \fromproperty to work with score headers?
From: Saul Tobin <saul.james.tobin () gmail ! com>
Date: 2017-10-29 18:25:16
Message-ID: CAPF+3FG2cr6rJNc6nCk-SYF_zXR3Oafkxw0ZQZ95k2LskLkOtA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
That's essentially what I've been doing, but it requires making each score
a bookpart unto itself. It's an okay solution, but it's nice to be able to
start a new movement mid-page.
Thanks anyway for the suggestion, though!
On Sun, Oct 29, 2017 at 9:21 AM, Graham King <graham.king@tremagi.org.uk>
wrote:
> On Sun, 2017-10-29 at 15:30 +0000, Graham King wrote:
>
> On Sun, 2017-10-29 at 03:21 -0700, Shevek wrote:
>
> Does anyone know if there's an updated version \
> ofhttp://lsr.di.unimi.it/LSR/Snippet?id=467 to work with score-level headers?It's \
> listed as "to do" in the snippet, but I believe that dates back toseveral years \
> ago. I'd like to use \fromproperty #'header:piece to putmovement titles at the top \
> of pages. If there isn't a newer version that supports this, I can mess around \
> withtrying to get it working, but I'd appreciated it if anyone can point me inthe \
> right direction to start; what would score-level headers be called? isthe existing \
> snippet structure adequate or is more complexity needed to copewith bookparts \
> consisting of multiple scores?
> How about approaching the problem from another direction? Would something
> like this be OK?
>
> \version "2.19.40"
>
> htitle="Trahe me post te"
> hcomposer="Victoria"
>
> \header {
> title=\htitle
> composer=\hcomposer
> }
>
> { c''1 \pageBreak 1 \pageBreak 1 }
>
> \paper{
> evenHeaderMarkup=\markup \fill-line {
> \fromproperty #'page:page-number-string
> \htitle \hcomposer
> }
> oddHeaderMarkup= \markup \fill-line {
> \on-the-fly #not-first-page \hcomposer
> \on-the-fly #not-first-page \htitle
> \on-the-fly #not-first-page \fromproperty #'page:page-number-string
> }
> }
>
> With acknowledgments to Nacho Alvarez for the idea.
>
> I don't think this will work for "bookparts with multiple scores." You
> need a proper expert...
> Apologies for the noise.
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
[Attachment #5 (text/html)]
<div dir="ltr">That's essentially what I've been doing, but it requires \
making each score a bookpart unto itself. It's an okay solution, but it's \
nice to be able to start a new movement mid-page.<div><br></div><div>Thanks anyway \
for the suggestion, though!<br><div class="gmail_extra"><br><div \
class="gmail_quote">On Sun, Oct 29, 2017 at 9:21 AM, Graham King <span \
dir="ltr"><<a href="mailto:graham.king@tremagi.org.uk" \
target="_blank">graham.king@tremagi.org.uk</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><u></u>
<div><div><div class="h5">
On Sun, 2017-10-29 at 15:30 +0000, Graham King wrote:<br>
<blockquote type="CITE">
<font color="#000000">On Sun, 2017-10-29 at 03:21 -0700, Shevek wrote: </font>
<blockquote type="CITE">
<pre><font color="#000000">Does anyone know if there's an updated version \
of</font> <font color="#000000"><a href="http://lsr.di.unimi.it/LSR/Snippet?id=467" \
target="_blank">http://lsr.di.unimi.it/LSR/<wbr>Snippet?id=467</a> to work with \
score-level headers?</font> <font color="#000000">It's listed as "to \
do" in the snippet, but I believe that dates back to</font> <font \
color="#000000">several years ago. I'd like to use \fromproperty \
#'header:piece to put</font> <font color="#000000">movement titles at the top of \
pages. </font>
<font color="#000000">If there isn't a newer version that supports this, I can \
mess around with</font> <font color="#000000">trying to get it working, but I'd \
appreciated it if anyone can point me in</font> <font color="#000000">the right \
direction to start; what would score-level headers be called? is</font> <font \
color="#000000">the existing snippet structure adequate or is more complexity needed \
to cope</font> <font color="#000000">with bookparts consisting of multiple \
scores?</font>
</pre>
</blockquote>
<font color="#000000">How about approaching the problem from another direction? \
Would something like this be OK?</font><br> <br>
<tt><font color="#000000">\version "2.19.40"</font></tt><br>
<br>
<tt><font color="#000000">htitle="Trahe me post te"</font></tt><br>
<tt><font color="#000000">hcomposer="Victoria"</font></tt><br>
<br>
<tt><font color="#000000">\header {</font></tt><br>
<tt><font color="#000000"> title=\htitle</font></tt><br>
<tt><font color="#000000"> composer=\hcomposer</font></tt><br>
<tt><font color="#000000">}</font></tt><br>
<br>
<tt><font color="#000000">{ c''1 \pageBreak 1 \pageBreak 1 \
}</font></tt><br> <br>
<tt><font color="#000000">\paper{</font></tt><br>
<tt><font color="#000000"> evenHeaderMarkup=\markup \fill-line \
{</font></tt><br> <tt><font color="#000000"> \fromproperty \
#'page:page-number-string</font></tt><br> <tt><font color="#000000"> \
\htitle \hcomposer</font></tt><br> <tt><font color="#000000"> }</font></tt><br>
<tt><font color="#000000"> oddHeaderMarkup= \markup \fill-line \
{</font></tt><br> <tt><font color="#000000"> \on-the-fly #not-first-page \
\hcomposer</font></tt><br> <tt><font color="#000000"> \on-the-fly \
#not-first-page \htitle </font></tt><br> <tt><font color="#000000"> \
\on-the-fly #not-first-page \fromproperty \
#'page:page-number-string</font></tt><br> <tt><font color="#000000"> \
}</font></tt><br> <tt><font color="#000000">}</font></tt><br>
<br>
<font color="#000000">With acknowledgments to Nacho Alvarez for the idea. \
</font><br> </blockquote></div></div>
I don't think this will work for "bookparts with multiple scores." \
You need a proper expert...<br> Apologies for the noise.
</div>
<br>______________________________<wbr>_________________<br>
lilypond-user mailing list<br>
<a href="mailto:lilypond-user@gnu.org">lilypond-user@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/lilypond-user" rel="noreferrer" \
target="_blank">https://lists.gnu.org/mailman/<wbr>listinfo/lilypond-user</a><br> \
<br></blockquote></div><br></div></div></div>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic