bug-lilypond
[Top][All Lists]
Advanced

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

Bad expression error with scheme function returning bookpart


From: Gianmaria Lari
Subject: Bad expression error with scheme function returning bookpart
Date: Thu, 1 Mar 2018 08:39:37 +0100

 #In the following code each call to \myScore
# should returns a couple of scores (one midi
# score and one layout score) but
# it doesn't compile and return this error:
# document.ly:9:1: error: bad expression type
#
#\myScore {\repeat percent 2 {c' d' e' f'}}

\version "2.19.81"
myScore = #(define-scheme-function (music) (ly:music?) #{
  \bookpart {
    \score { $music \layout{} }
    \score { \unfoldRepeats $music \midi{}}
  } #} )

\myScore {\repeat percent 2 {c' d' e' f'}}
\myScore {\repeat percent 2 {g c' c' c'}}


reply via email to

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