On Mon, Sep 23, 2024 at 9:04 AM Colin Baguley <co...@baguley.net> wrote:

> Hi,
> When writing a simple song lead sheet i have the chord(name) above the
> normal melody line.
> Some guitarists like to use a capo and so I place a transposed chord(name)
> below the main one.
> To do this I used a function called "parenthesizeAllchords" which I freely
> admit I plagarized from somewhere and don't exactly understand how it works
> - but it did work at one time.
> Each Capo chord had a bracket around it eg  (C)  (D7)  (Em) etc
> However, I've not used it for a few years and tried recently and it no
> longer works ( or I've corrupted the code somewhere along the line)
> Please could somebody cast an eye over this and see where I am going wrong?
>

It may be that you got a control code or something in the offending line
because all I did was retype it.

%============================================================
guitarchords = \chordmode {
  \override ChordName.font-size = #3
  \override Parentheses.font-size = #2 % I retyped this line
\override ChordName.style = #'american
\basicchords  }
capochords = \chordmode {
  \override ChordName.font-size = #-3
\override Parentheses.font-size = #2
\override ChordName.style = #'american
\parenthesizeAllchords
\basicchords
}
%============================================================


--
Knute Snortum

Reply via email to