Because lilypond "doesn't expect" to return more than one score I tried to
put the call to my function returning the score inside a \book. But this
also does not work and I get this error:

Starting lilypond-windows.exe 2.19.81 [Untitled (2)]...

Processing
`C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-wrdtmre8/tmppoxiemgd/
document.ly'

Parsing...

C:/Users/GIANMA~1/AppData/Local/Temp/frescobaldi-wrdtmre8/tmppoxiemgd/document.ly:15:2
<0>: error: bad expression type

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


[...]


I don't understand why the previous error.

This is my code:

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


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


Thank you, g.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to