lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scheme score function


From: Gianmaria Lari
Subject: scheme score function
Date: Mon, 11 Dec 2017 08:57:04 +0100

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.
             
             

reply via email to

[Prev in Thread] Current Thread [Next in Thread]