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: Knute Snortum
Subject: Re: Ossia at the first line of a PianoStaff
Date: Thu, 17 Feb 2022 15:43:45 -0800

On Thu, Feb 17, 2022 at 11:32 AM Jean Abou Samra <jean@abou-samra.fr> wrote:
>
> Le 17/02/2022 à 19:01, Knute Snortum a écrit :
> > I have another problem that I'd love help with.  (Sorry for all the
> > questions lately.)
> >
> > The piece of music I'm working on is a piano piece with several ossia
> > bars.  I've been researching how to do this and I've come across a
> > problem I can't fix.  If the ossia bar is the first bar of a new line,
> > the PianoStaff brace and bar span are attached.  In the middle of the
> > staff all is fine.
> >
> > I've attached the code to produce the problem and an image of what it
> > produces.  Any help would be greatly appreciated.
>
>
>
> The most low-tech fix would be to move the ossia context
> out of the PianoStaff:
>
> \version "2.22.1"
>
> ossia = \markup \small \italic "ossia"
>
>
> <<
>    \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
>      s1*2
>      \startStaff g4 ees8 f g2*1/2 \stopStaff
>    }
>    \new PianoStaff <<
>      \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 }
>      }
>    >>
>  >>

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?

--
Knute Snortum

Attachment: piano-staff-ossia-bar-span.png
Description: PNG image


reply via email to

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