I created a simple scheme function with a single argument that works
similarly to the score command:

\version "2.19.80"
mySc = #(define-scheme-function (music) (ly:music?)
           #{
             \score {
               $music
               \layout{}
             }
           #})

\mySc {a b c'}

This works as expected. But when I modify it to generates two scores, one
layout and one midi, I have a compilation error.

\version "2.19.80"
mySc = #(define-scheme-function (music) (ly:music?)
           #{
             \score {
               $music
               \layout{}
             }
             \score {
               $music
               \midi{}
              }
           #})

\mySc {a b c'}

What's the problem and how can I fix it?
Thank you, g.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to