lilypond-user
[Top][All Lists]
Advanced

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

Re: Scheme function to output \bookpart {} ?


From: Thomas Morley
Subject: Re: Scheme function to output \bookpart {} ?
Date: Wed, 23 Sep 2015 22:45:48 +0200

2015-09-23 17:50 GMT+02:00 Simon Albrecht <address@hidden>:
> 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


HTH,
  Harm



reply via email to

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