Thomas Morley <thomasmorle...@gmail.com> writes:

> 2015-09-23 17:50 GMT+02:00 Simon Albrecht <simon.albre...@mail.de>:
>> Hello,
>>
>> is it possible to have a Scheme function output a bookpart? In the attached
>> example and my real-world setup, I get ‘error: bad expression type’.
>>
>> TIA, Simon
>
> Hi Simon,
>
> this may give you a starting point:
>
> \version "2.19.27"
>
> test =
> #(define-scheme-function (mus) (ly:music?)
>   (ly:book-process
>     (ly:make-book-part (list (ly:make-score mus)))
>     $defaultpaper
>     $defaultlayout
>     (ly:parser-output-name)))
>
> m = { c'4 }
>
> \test \m

Turns out I have some half-finished branch "bookactive" in my
repository.  I just don't remember any more what the problem was.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to