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


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

Reply via email to