Gianmaria Lari <gianmarial...@gmail.com> writes:

> Ok, tried to substitute "add-score" with "print-book-with-defaults" but I
> didn't see any midi file in the default folder. But
> print-book-with-defaults works for midi output?
> This is the code I tried:
>
> \version "2.19.82"
> test = #(define-void-function (music filename) (ly:music? string?)
>    #(print-book-with-defaults
>      #{
>        \book {
>          \bookOutputName $filename
>          \score $music
>          \midi{}
>        } #} ) )
>
> \test {a b} "MyFile"

Well, your score has no \midi block.  \book has a \midi block, but that
just is used for redefining \midi defaults (and since your \midi block
is empty, it ends up doing nothing).

How about putting that empty \midi block in the \score to let it
actually do something?

-- 
David Kastrup

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

Reply via email to