|
From: | David Kastrup |
Subject: | Re: \add-score and \bookOutputName |
Date: | Tue, 18 Dec 2018 16:22:23 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Gianmaria Lari <address@hidden> writes: > This is just an example. > I would like that my scheme function "test " generates a midi file with the > name I passed to it. > This is what I have been able to do. It compiles but it does not work: > > \version "2.19.82" > test = #(define-void-function (music filename) (ly:music? string?) > #(add-score > #{ > \book { > \bookOutputName $filename > \score $music > \midi{} > } #} ) ) > > \test {a b} "MyFile" > > Any mistakes? Sure. add-score wants a score and you feed it a book. Maybe you want print-book-with-defaults instead? -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |