Orm Finnendahl <[email protected]> writes:

> Hi,
>
>  in the following example, adding a new staff on the fly within the
> uppermost staff of a staff group adds the staff below the last staff
> of the staff group. Is there an easy workaround to create the new
> staff directly below the uppermost staff?
>
> --
> Orm
>
> \version "2.19.5"
> \score 
> { 
>   <<
>     \new StaffGroup
>     { 
>       << 
>         \new Staff { c'1 << c'1 \new Staff {f' 1} >> }
>         \new Staff { d'1 }
>         \new Staff { e'1 }
>       >>
>     }
>   >>
>   \layout {}
>   \midi {}
> }

Pretty sure that question was somewhere in the last few days, but
anyhow:

\version "2.19.5"
\score 
{ 
  <<
    \new StaffGroup
    { 
      << 
        \new Staff = "top" {
	  c'1
	  <<
	    c'1
	    \new Staff \with { alignAboveContext = "top" } {f' 1}
	  >> }
        \new Staff { d'1 }
        \new Staff { e'1 }
      >>
    }
  >>
  \layout {}
  \midi {}
}

-- 
David Kastrup
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to