Gianmaria Lari <gianmarial...@gmail.com> 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user