lilypond-user
[Top][All Lists]
Advanced

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

Chord names - size and bass note offset (again, full post)


From: Ken Ellinwood
Subject: Chord names - size and bass note offset (again, full post)
Date: Thu, 20 Mar 2003 13:57:42 -0800 (PST)

My first post with the same subject was accidental, having only typed about
half of what I had to say.  Anyway, here's all of it...

After much thrashing about using version 1.6.6, I was finally able to figure
out how to get chord names the way I like them.

There were two things that bugged me -- 1) the chord name size, 2) offset which
raises the location of the bass note in the chord name (when present).

The solution to the chord name size is to set the font-magnification property
for chord names (as mentioned in other posts, font-size-relative doesn't work).

    \context ChordNames = c {
       % Scale down the size of the chord names by .75
       \property ChordNames.ChordName \set #'font-magnification = #0.75

       % Prevent chord names from getting too close together, 
       % even when reduced in size.
       \property ChordNames.ChordName \override #'word-space = #2
              
       \property ChordNames.ChordName \override #'style = #'american

       \chords { 
            e2 e4/+cis b4/+dis
            e2 e4/+cis b4/+dis
        }

    }

My solution to the bass note offset "problem" was to modify chord-names.scm in
the /usr/share/lilypond/1.6.6/scm.  Here's the patch...

--- chord-name.scm      2003/03/17 22:07:32     1.1
+++ chord-name.scm      2003/03/19 01:25:12
@@ -325,7 +325,7 @@
     (text-append
      tonic-text except-text  sep-text
      ;;(list (list simple-super) adds-text subs-text)
-     (list (list '((raise . 1) (font-relative-size . -1))) adds-text
subs-text)
+     (list (list '((raise . 0) (font-relative-size . -1))) adds-text
subs-text)
      b+i-text)))
 
 (define (c++-pitch->scm p)



__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com




reply via email to

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