[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Guitar chord formatting in Lout?
From: |
Paul A Blampied |
Subject: |
Guitar chord formatting in Lout? |
Date: |
Fri, 05 Mar 1999 16:17:50 +0100 |
I would like to write a Lout package for formatting songs with guitar chords.
Firstly, does such a package already exist?
It should take song lines such as:
@Chord{G}Knock, knock, @Chord{D}knocking on heaven's @Chord{C}door
and output the lyrics with the chord names above in the appropriate place:
G D C
Knock, knock, knocking on heaven's door
My question is - is there an easy way to define @Chord in Lout, or is it
necessary to do some external preprocessing to get into the form:
{{G} ^//0.2f {Knock, knock, }}{{D} ^//0.2f {knocking on heaven's }} etc...
I have tried defining @Chord as:
def @Chord
left chord
right arg
{chord ^//0.2f arg}
but it has several problems, such as:
i) if it has no left argument;
ii) if the chord should appear above the middle of a word.
Any comments or suggestions would be gratefully received,
Paul Blampied (address@hidden)
- Guitar chord formatting in Lout?,
Paul A Blampied <=