lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 3518 in lilypond: Support temporary divisi sta


From: lilypond
Subject: Re: [Lilypond-auto] Issue 3518 in lilypond: Support temporary divisi staves
Date: Tue, 27 Aug 2013 22:03:09 +0000

Updates:
        Status: Started

Comment #7 on issue 3518 by address@hidden: Support temporary divisi staves
http://code.google.com/p/lilypond/issues/detail?id=3518

this can't work perfectly due to the rigid structure of our backend.

Speak for yourself; LilyPond's back end had no difficulty considering several hypothetical line-breaking possibilities, and figuring which staves would be removed in each hypothetical case. A minor re-arrangement of the patch for issue 3024 <http://codereview.appspot.com/13289044> allows the desired output from this input:

\paper { #(set-paper-size "a5") indent = 2.0\cm short-indent = 1.0\cm }
%% Would prefer if quoted events could be excluded from keepAliveInterfaces
%% so we would not need to put these commands in the music
letStaffVanish = \set Staff.keepAliveInterfaces = #'()
showStaff = \unset Staff.keepAliveInterfaces

violins = {
    \repeat unfold 128 <c' e'>4
    <<
      \context Staff = "one" { \showStaff
        \repeat unfold 16 <c' g'>4
        \letStaffVanish }
      \context Staff = "two" { \showStaff
        \repeat unfold 16 <g e'>4
        \letStaffVanish}
    >>
    \repeat unfold 112 <c' e'>4 }

\addQuote "violins" \violins

\new StaffGroup \with {
    \consists Keep_alive_together_engraver
    \override VerticalAxisGroup.remove-empty = ##t
  } <<
  \new Staff = "one" \with {
    keepAliveInterfaces = #'()
    \override VerticalAxisGroup.remove-first = ##t
    instrumentName = "Violin 1"
    shortInstrumentName = "V1"
  } \new Voice \quoteDuring "violins" #(skip-of-length violins)
  \new Staff = "two" \with {
    keepAliveInterfaces = #'()
    \override VerticalAxisGroup.remove-first = ##t
    instrumentName = "Violin 2"
    shortInstrumentName = "V2"
  } \new Voice \quoteDuring "violins" #(skip-of-length violins)
  \new Staff \with {
    instrumentName = "Violin 1 & 2"
    shortInstrumentName = "V1&2"
\override VerticalAxisGroup.keep-alive-alternate = ##t %%% requires the patch
  } \violins >>

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

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