Aaron Hill wrote
> Would using a function help?

Thanks Aaron for your answer. I tried your solution but it crashes in my
situation. I think I understood where the problem is, it seems to be because
of the use of a variable, for instance:

%%%% main.ly
\version "2.19.83"

fetch = #(define-scheme-function (pet) (string?)
   #{ \include #(string-join (list pet "ily") ".") #})

\fetch "kitten"
\fetch "puppy"
%%%%

%%%% kitten.ily
\version "2.19.83"
mytextI= "I like kittens."
\markup  \myTextI
%%%%

%%%% puppy.ily
\version "2.19.83"
myTextII = "I like puppies."
\markup \myTextII
%%%% 



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to