Chord names - solution to size and bass note offset

2003-03-20 Thread Ken Ellinwood
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 base 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

\property ChordNames.ChordName \override #'word-space = #2

% Try to make chord names bold
\property ChordNames.ChordName \set #'font-series = #'bold

% employ 
\property ChordNames.ChordName \override #'style = #'american

\property ChordNames.minimumVerticalExtent = #'(0 . 5)  
\chords { 
e2 e4/+cis b4/+dis
e2 e4/+cis b4/+dis
}

}


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


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user


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

2003-03-20 Thread Ken Ellinwood
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


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user