[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guitar chord formatting in Lout?
From: |
Valeriy E. Ushakov |
Subject: |
Re: Guitar chord formatting in Lout? |
Date: |
Fri, 5 Mar 1999 20:49:02 +0300 |
On Fri, Mar 05, 1999 at 04:17:50PM +0100, Paul A Blampied wrote:
> 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;
This is not a problem of this definition. If symbol expects argument
user must supply it.
> ii) if the chord should appear above the middle of a word.
Use `/' instead of `//' and mark the postion with `^'.
E.g.
def "%"
left chord
right word
{ { Helvetica Base -1p } @Font chord ^/1fo word }
And in the document:
@LP { lines 0.7fe } @Break {
{e-}% S^un streaking {D}% c^old an old man wandring {A}% l^onely,
{a-}% t^aking time the {e-}% only way he {D}% kn^ows.
{e-}% L^egs hurting {D}% b^ad as he bends to pick a {A}% d^og end.
He {a-}% g^oes down to the {e-}% b^og and warms his {D}% f^eet.
}
I used `%' and explicitely braced its left argument since the source
is more readble this way (@Chord looks too intrusive). Change/package
to suit your needs. Tweak spacing to suit your aesthetic feelings.
HTH
SY, Uwe
--
address@hidden | Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen