[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ly:book-set-header!
From: |
Janek Warchoł |
Subject: |
Re: ly:book-set-header! |
Date: |
Sat, 3 Mar 2012 01:48:40 +0100 |
Hi,
On Fri, Mar 2, 2012 at 1:29 PM, Jan-Peter Voigt <address@hidden> wrote:
> sorry for resending this, it might get lost, because I simply answered to
> another thread with another subject.
>
> now, we have a book-predicate and we are dealing with books in scheme. Then
> we might want to set a header after creating a book.
> There is a function ly:score-set-header!, which I copied and adapted for the
> Book-class.
> This patch compiled and works with the following snippet.
>
> --snip--
> \version "2.15.32"
>
> bk = \book {
> \score {
> \relative c' {
> c4 e g b
> }
> }
> }
>
> #(let ((bh (eval-string "(define-module (a b))")))
> (eval '(define title "Hallo") bh)
> (ly:book-set-header! bk bh))
>
> \book { \bk }
> --snip--
Thanks, it's great to see you making patches for Lily! I've added
your patch to our tracker
(http://code.google.com/p/lilypond/issues/detail?id=2375) and put it
up for review on Rietveld (http://codereview.appspot.com/5720062/) -
be sure to check these issues for comments.
cheers,
Janek