lilypond-user
[Top][All Lists]
Advanced

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

Scheme function returning \book


From: Lukas-Fabian Moser
Subject: Scheme function returning \book
Date: Tue, 15 Jan 2019 22:30:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Folks,

is it possible for a scheme function to return a whole \book ?

test = #(define-scheme-function (suffix) (string?)  #{
  \book {
    \bookOutputSuffix #suffix
    \score {
      d4
    }
  }
#} )

\test

causes a "Bad expression type" error.

In http://lilypond.1069038.n5.nabble.com/Dynamically-outputting-books-td196463.html David K. seems to imply it should work (but isn't sure which Lilypond version is needed) - I tried 2.19.82 and current Master.

Best
Lukas




reply via email to

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