lilypond-user
[Top][All Lists]
Advanced

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

Re: Chords and what they mean


From: Johan Vromans
Subject: Re: Chords and what they mean
Date: Sat, 19 Sep 2015 13:52:43 +0200

On Sat, 19 Sep 2015 01:05:12 +0200
address@hidden 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






reply via email to

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