lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme score function


From: Gianmaria Lari
Subject: Re: scheme score function
Date: Tue, 12 Dec 2017 07:05:41 +0100

Any suggestion?

On 11 December 2017 at 08:57, Gianmaria Lari <address@hidden> wrote:
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]