lilypond-user
[Top][All Lists]
Advanced

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

Re: Printing movement titles in page header


From: Mark Knoop
Subject: Re: Printing movement titles in page header
Date: Thu, 9 Jul 2015 09:05:39 +0100

Thanks Jan-Peter,

I'll take a look at this and post back if I make any progress.

Cheers,

Mark

At 09:21 on 09 Jul 2015, Jan-Peter Voigt wrote:
>Hi Mark,
>
>I know this issue and wrote and use some code which tracks the current 
>toc entry.
>The bad thing - of course this is a good thing ;) - I am employed in a 
>full time job with absolutely no relation to lilypond, so I can't say, 
>when I am able to discover the magic ...
>
>Just for completenes - I don't think this uncommented chaos is
>readable ;) In line 217 in the default paper-definition, I call the
>property #'toc:current :
>https://github.com/jpvoigt/lalily/blob/master/lalily/paper.lalily-default.ly#L196
>
>this property is set in markup-init.scm line 153:
>https://github.com/jpvoigt/lalily/blob/master/lalily/lalily/markup-init.scm#L131
>
>So, I don't expect anybody to extract this from lalily, as this might
>be quite frustrating. But if you like, you can see, if the use of
>lalily conceptually does, what you want. And perhaps there will be
>times, when I am able extract this to openlilylib.
>
>Cheers,
>Jan-Peter
>
>Am 08.07.2015 um 13:41 schrieb Mark Knoop:
>> I'm trying to include the title of the current movement in the page
>> header. This works if I use bookparts to seperate the movements, but
>> not by setting header:piece in a score block. I don't want to use
>> bookparts as I don't want pagebreaks between movements.
>>
>> Any ideas on how to achieve this?
>>
>> \version "2.19.22"
>>
>> \header {
>>    title = "My Piece"
>>    composer = "Me"
>>    tagline = ##f
>>    % piece only prints in header if set here or in bookpart header
>>    piece = "Global Piece"
>> }
>>
>> \paper {
>>    oddHeaderMarkup = \markup
>>    \fill-line {
>>      \on-the-fly #not-part-first-page \fromproperty #'header:piece
>>      \on-the-fly #not-part-first-page \fromproperty #'header:title
>>      \on-the-fly #print-page-number-check-first
>>        \fromproperty #'page:page-number-string
>>    }
>>    evenHeaderMarkup = \oddHeaderMarkup
>> }
>>
>> \book {
>>    \bookpart {
>>      % piece only prints in header if set here or in top-level header
>>      \header { piece = "Part 1" }
>>      \score {
>>        % setting piece here has no effect
>>        \header { piece = "Movement 1" }
>>        \repeat unfold 400 c'1
>>      }
>>      \score {
>>        % setting piece here has no effect
>>        \header { piece = "Movement 2" }
>>        \repeat unfold 400 d'1
>>      }
>>    }
>>    \bookpart {
>>      \score {
>>        % setting piece here has no effect,
>>        % even without a bookpart level header
>>        \header { piece = "Movement 3" }
>>        \repeat unfold 400 e'1
>>      }
>>    }
>> }
>>
>
>
>_______________________________________________
>lilypond-user mailing list
>address@hidden
>https://lists.gnu.org/mailman/listinfo/lilypond-user




-- 
Mark Knoop



reply via email to

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