Dear Aaron and Valentin,
thanks for your efforts and tips.
I'm still looking for an solution to switch the ChordsOnStaff
on and off, because I need it casually..
The second Solution from Valentin looks like what I would prefer but
it prints the chord notes too, which is not was I'm looking for (only
Chord Names).
The first example lacks the possibility to make musical annotations
like \f,\p and so one because I swich to chordmode:
\version "2.19.82"
\layout {
\context {
\name ChordsOnStaff
\type "Engraver_group"
\consists "Chord_name_engraver"
\override ChordName.extra-offset = #'(0 . -1)
\alias ChordNames
}
\context {
\Staff
\accepts "ChordsOnStaff"
}
}
<<
\new ChordNames \chordmode {
c1 s1 s1 c1
}
\relative c' {
c2 e2
\context ChordsOnStaff \chordmode {
c1 \mark "Text" c1
}
g2 c2
}
>>
--------------
the second example is how I could imagine the switch could be done,
but it does not has the right effect, the VerticalAxisGroup setting
does not apply, the Chord name is printed twice...
\version "2.19.82"
\layout {
\context {
\name ChordsOnStaff
\type "Engraver_group"
\consists "Chord_name_engraver"
%\override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
% #'((basic-distance . 0)(minimum-distance . 0)(padding . -10))
\override ChordName.extra-offset = #'(0 . -1)
\alias ChordNames
}
\context {
\ChordNames
\accepts "ChordsOnStaff"
}
}
<<
\new ChordNames \chordmode {
c1 \context ChordsOnStaff {
c1 c1
}
c1
}
\new Voice \relative c' {
c2 e2
s1\p^"Text"
s1\f
g2 c2
}
>>
Greetings,
Robert
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user