Am 05.07.2016 um 16:00 schrieb David Kastrup: > Urs Liska <[email protected]> writes: > >> Well, first of all I wouldn't have thought of it, so I felt very >> embarrassed at first. But actually the problem is that my function is >> kind of an adaptor. It includes a number of files (i.e. all from a >> directory that match a pattern), and each file defines the same >> variables (e.g. \music, \lyricText and \bcFigures). The function wants >> then to either rename them so they can independently be used in a score >> or rather store them in a tree where the function building the score >> will later fetch them from. >> >> So, within my function I have to iterate over the list of files, include >> them and process the variables that are defined within the files. > So build a string that includes the list of files and processes the > variables. >
Argh. Yes, it's tedious to build that string, even within a loop. But it works, and the include works as well. Thanks for the pointers - I wouldn't have thought in that direction because it would have felt like just another level of indirction although it is actually the opposite. _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
