lilypond-user
[Top][All Lists]
Advanced

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

Re: ly:parser-parse-string again


From: Urs Liska
Subject: Re: ly:parser-parse-string again
Date: Tue, 5 Jul 2016 17:51:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1


Am 05.07.2016 um 16:00 schrieb David Kastrup:
> Urs Liska <address@hidden> 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.



reply via email to

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