[Top][All Lists]

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


From: Jan-Peter Voigt
Subject: ly:book-set-header!
Date: Fri, 02 Mar 2012 13:29:12 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

Hello list,

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.

\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 }

Is this helpful for lily-devel?
And is there another (better) way of creating a module (for header generation) on the fly in scheme?


Attachment: 0001-add-ly-book-set-header.patch
Description: Text Data

reply via email to

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