Thanks for your help!

This works fine:
\version "2.24.2"

\score {
    \new StaffGroup << 
    \new Staff  = "soprano"
      \new Voice = "S" { 
        \relative {  c'4 d e f }
      }
    \new Lyrics {
      \lyricsto "S" {
        "1" "2" "3" "4"
      }
    }
    \new Lyrics \with { alignAboveContext = "soprano" } {
      \lyricsto "S" {
        "1" "2" "3" "4"
      }
    }
  >>
}

But when I try to place the instrument name, I get an error:

\version "2.24.2"

\score {
    \new StaffGroup << 
    \new Staff  = "soprano" { \with { \override InstrumentName.self-alignment-X 
= #RIGHT instrumentName = #"S. " } }
      \new Voice = "S" { 
        \relative {  c'4 d e f }
      }
    \new Lyrics {
      \lyricsto "S" {
        "1" "2" "3" "4"
      }
    }
    \new Lyrics \with { alignAboveContext = "soprano" } {
      \lyricsto "S" {
        "1" "2" "3" "4"
      }
    }
  >>
}

> On 6 Oct 2023, at 4:45 PM, David Kastrup <d...@gnu.org> wrote:
> 
> Dimitrios Sykias <dimitriossyk...@gmail.com> writes:
> 
>> Is it possible to place lyrics above staff using \addlyrics? I tried
>> “\addlyrics { \with { alignAboveContext = "staff" }” but it didn’t
>> work. Thanks!
> 
> It does here.
> 
> \new Staff = "staff" {
>  c'1
> } \addlyrics \with { alignAboveContext = "staff"} { Om }
> 
> Maybe you are not clear about what the name behind alignAboveContext
> signifies?  You need to have a VerticalAxis carrying context at the same
> level with the given _name_, not with a particular _type_.
> 
> -- 
> David Kastrup
> 


Reply via email to