I'd like to understand if I can use this layout-based approach on a per-score basis.
This example, based on the previous approach, has in-staff chords for the first score, but normal, above-the-staff chords for the second score.
How would one go about using the layout approach to do that?
Thanks,
\version "2.19.81"
melodyHead = \relative c'' { c1 d e f }
melodyFours = \relative c'' { g8 a r g r a r4 | b8 8 r4 r2 | g8 a r g r a r4 | bes8 8 r4 r2 }
headChords = \chordmode {
c1:maj7 | b2:m7.5- e:7 | a:m7 d:7 | g:m7 c:7 |
}
foursChords = \chordmode {
c1:maj7 | b2:m7.5- e:7 | a:m7 d:7 | g:m7 c:7 |
}
chordsOnStaff = \with {
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
#'((basic-distance . 0)
(minimum-distance . 0)
(padding . -inf.0)
(stretchability . 0))
\override ChordName.extra-offset = #'(0 . -1)
}
\book {
\score {
\new StaffGroup <<
\new Staff \melodyHead
\new ChordNames \with \chordsOnStaff { \headChords }
\new Staff s1*4
>>
}
\score {
<<
\new ChordNames { \foursChords }
\new Staff \melodyFours
>>
}
}
Elaine Alt
415 . 341 .4954 "Confusion is highly underrated"
elaine@flaminghakama.com Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-