On Sat, 19 Sep 2015 01:05:12 +0200
70147pers...@telia.com wrote:

> This should, by means of a translation table, take my input and 
> translate it into LP code. So when I write c:sus this will be changed to 
> e.g. c:sus4 (or perhaps c:1.4.5) before it is dealt with by LP, and when 
> I write c:5 it is translated into c:1.5.

This can easily be done with small Perl script. Even a one-liner like

  perl -pe 's/:sus(?!4)/:sus4/g;' -e 's/:5(?![.\/])/:5.1/g;' myfile.ly | 
lilypond -o myout -

A table-driven solution would require a couple of more lines.

If you give me the exact transformations I'll write it for you.

-- Johan




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

Reply via email to