On 15-01-2016 15:06, Chris Yate wrote:
What I'm trying to do instead looks like:
```
printTheScore =
#(define-music-function
(parser location number )
(string? )
#{
\score {
\music#number
}
#})
\printTheScore "One"
\printTheScore "Two"
```
Maybe something like this... but If I uncomment the \score block it
doesn't work
musicOne = { c' d' e' }
musicTwo = { e' f' g' }
printTheScore = #(define-music-function (parser location number) (string?)
(let* ((number number) (function (string->symbol (string-append "music"
number))))
#{
%\score {
#(eval function (interaction-environment))
%
#}))
\printTheScore "One"
\printTheScore "Two"
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user