[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Move chord name down onto staff?
From: |
Aaron Hill |
Subject: |
Re: Move chord name down onto staff? |
Date: |
Sat, 10 Jul 2021 18:48:03 -0700 |
User-agent: |
Roundcube Webmail/1.4.9 |
On 2021-07-10 6:06 pm, Mark Probert wrote:
I'm not sure how to move the chord names down so they are centered on
the staff. Essentially I want the changes on an empty stave but I'm
unclear on how to do that.
[...]
Here's one way to do this:
%%%%
\version "2.20"
harmony = \chordmode { a1:m s1 f1:m7 s1 }
tune = { s1 s1 s1 s1 }
chordsOnStaff = \with {
% Force the baselines to match.
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 0) (minimum-distance . 0)
(padding . -inf.0) (stretchability . 0))
% Adjust to one staff space lower.
\override ChordName.extra-offset = #'(0 . -1)
}
\score {
<<
\new ChordNames \with \chordsOnStaff \harmony
\new Staff \tune
>>
}
%%%%
-- Aaron Hill
chord-staff.cropped.png
Description: PNG image