Am Mo., 1. Jan. 2024 um 21:59 Uhr schrieb <[email protected]>:
>
> On Mon, 1 Jan 2024, Kevin Cole wrote:
>
> > What I mean is, I often have a situation where there's only a wee bit
> > o' text occasionally, above the staff. But I frequently have
> > ChordNames. It seems to me that the ChordNames would be better placed
> > below the occasional text, and I was hoping that, rather than manually
>
> You can't really put the text in a Staff and have ChordNames appear
> between the text and the staff, because ChordNames is a context kind of
> like a staff in itself.  Trying to position it in the middle of a Staff
> context is a recipe for annoyance.  But if you're willing to define the
> text separately, you could create a Dynamics context and put your text
> there to get a similar visual effect.  The nonstaff-nonstaff padding
> override can be varied to taste; without it, the text collides with the
> top of the ChordNames in an unsightly way.
>
> global = {
>   \time 4/4
>   \key c \major
> }
>
> textMarkups = {
>   s1^\markup \bold "CHORUS" |
>   s1 |
>   s1 |
>   s1 |
> }
>
> chordNames = \chordmode {
>   \global
>   f2 d2:m | c4 s4 c8 g8:7 c4 | g4 c4 f4 c4 | g4 s4 g2:7    |
> }
>
> melody = \relative c'' {
>   \global
>   \clef treble
>   a2 f2 |
>   g4 g4 g8[ f8] e4 |
>   d4. e8 f4 e4 |
>   d4 b4 g2 |
> }
>
> \score {
>   <<
>     \new Dynamics \with {
>       \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #1
>     } { \textMarkups }
>     \new ChordNames \chordNames
>     \new Voice = "mel" { \melody }
>   >>
> }
>
> --
> Matthew Skala
> [email protected]                 People before tribes.
> https://ansuz.sooke.bc.ca/
>

A Dynamics may be a solution.
For things like "CHORUS" I'd always use \textMark. It will
automatically be placed on top.
In a ChordNames context TextScript is not supported by default,
additionally the usual direction-modifiers "-" and "^" are already
taken for different purpose. But you could do:

\new ChordNames
  \with { \consists Text_engraver }
  \chordmode {
    d2:m _\tweak direction #UP _\markup "put me above the chordname"
  }

Cheers,
  Harm

Reply via email to