lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ossia at the first line of a PianoStaff


From: Jean Abou Samra
Subject: Re: Ossia at the first line of a PianoStaff
Date: Fri, 18 Feb 2022 01:01:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 18/02/2022 à 00:43, Knute Snortum a écrit :
On Thu, Feb 17, 2022 at 11:32 AM Jean Abou Samra <jean@abou-samra.fr> wrote:
Thanks, that gets rid of the brace.  Is there any way to get rid of
the bar span that connects the ossia staff to the piano staff?



Alright, I was too focused on the bracket. I'm tired, so I may
be missing a simpler solution, but this should do:

\version "2.22.1"


ossia = \markup \small \italic "ossia"

\layout {
  \context {
    \Score
    \remove System_start_delimiter_engraver
  }
  \context {
    \PianoStaff
    \name InnerPianoStaff
  }
  \context {
    \PianoStaff
    \accepts InnerPianoStaff
    systemStartDelimiter = #'SystemStartBar
  }
}


<<
  \new Staff = "ossia" \with {
    \remove "Time_signature_engraver"
    \hide Clef
    \hide BarLine
    \override BarLine.allow-span-bar = ##f
    \override KeySignature.stencil = ##f
    \magnifyStaff #2/3
  }
  \relative {
    \stopStaff
    s1
    \key c \minor
    \startStaff ees'4^\ossia g8 f ees2*1/2 \stopStaff
    s4 s1*2
    \startStaff g4 ees8 f g2*1/2 \stopStaff
  }
  \new PianoStaff \new InnerPianoStaff <<
    \new Staff = "upper" \relative {
      \key c \minor
      c'4 b c2
      ees4 f ees2
      g4 aes g2 % \break
      c4 b c2 \break
      g4 aes g2
      ees4 d c2
    }
    \new Staff = "lower" \relative {
      \key c \minor
      \repeat unfold 24 { \clef bass c4 }
    }
  >>
>>


Best,
Jean




reply via email to

[Prev in Thread] Current Thread [Next in Thread]