> Whenever you have variables pointing to indexed parts or to > consecutive snippets you may want to use variables like > > violin1 = > violin2 = > > or > > flute_phrase01 = > flute_phrase02 = > > or similar. This is expressive as LilyPond code per se, and would > be accessible for scripting, e.g. to generate stub files with empty > varialbes. > > The workaround using roman numbers is pretty cumbersome, and I think > > violin_02_34 would be much more comprehensible to most users than > violinIIxxxiv
I suggest to use the m4 preprocessor [https://en.wikipedia.org/wiki/M4_(computer_language)] to convert, say, `violin1' to `violinI'. Add the line define(`violin1', `violinI') at the very beginning of your input file, then run m4 < infile > outfile Werner _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user