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? Thank you, g.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to