lilypond-devel
[Top][All Lists]
Advanced

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

Creating books with Scheme


From: Reinhold Kainhofer
Subject: Creating books with Scheme
Date: Fri, 14 Aug 2009 21:40:02 +0200
User-agent: KMail/1.11.4 (Linux/2.6.28-13-generic; KDE/4.2.4; i686; ; )

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Apparently Nicolas' commit da383997e929d8301424e9d320e3f5ada7cf6a58 two years 
ago (yeah, a long time ago, but I hadn't use that functionality until today, 
when I had to create dozens of examples for my girlfriend's thesis) removed 
the possibility to add scores to a book using scheme rather than the parser.

My orchestrallily package creates a score object using scheme rather than an 
explicit "\score" that is interpreted by the parser. Until that da38... patch, 
I could simply call the book-score-handler instead of toplevel-score-handler 
on the score object and the score was added to the current book.

Now, however, the call to the book handler needs the book, which I'm not able 
to obtain. Does anyone have any idea how I can insert a scheme score into the 
current book using only scheme without the parser?

E.g. what can I do in the following case:

\book {
  #(scheme-function to create  score and insert it into the current book)
  #(scheme-function to create another score and insert it into current book)
}

AFAICS, all I would need is a way to get the current book object in scheme... 
How can I do this?

Thanks a lot,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKhb2UTqjEwhXvPN0RAhZmAJ4yZNSzaSn/ZnA1mrhepLbA6uOdzgCgutlT
h/l7YCTFlqXC3iRIvO+hOzU=
=It44
-----END PGP SIGNATURE-----




reply via email to

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