The development version 2.19.13 with the expanded remove-staves capability is 
now available.

On Sat, 30 Aug 2014 04:41:15 -0700, Janek Warchoł <[email protected]> 
wrote:
2014-08-29 8:53 GMT+02:00 Keith OHara <[email protected]>:

But if someone uses these definitions with music that uses tags for
some other purpose, the tagged music will be left out.

Hmm.  That's a problem, but i don't see a good solution yet.

Simon's suggestion to use the more-selective \removeWithTag is a good solution.
Just in case anyone uses the \divisibleStaff with his own tags, and might not 
think to include 'together in \keepWithTag score \divisibleStaff ... , I added 
a function to clean up the divI/divII/together tags when we are done with them. 
 These two changes are attached.

I see now that the clean-up function I had to add was already available among several 
useful tag filters from  <http://lsr.di.unimi.it/LSR/Item?id=871>

Users of these definitions, with music that uses \tag#'part for example, need 
to adapt their \keepWithTag if they want to separate out the 'divI part, and 
also keep whatever they have tagged with 'part:     \keepWithTag divI.part 
\music
\version "2.19.13"

\include "definitions.ily"

\layout {
  short-indent = 2\cm
  indent = 2\cm
  line-width = 10\cm
}

music = {
  \together
  c'4 d' e' f'
  <<
    \tag#'score { s_\markup\italic "balance with winds" }
    \sharedStems
      { a'4 f' a' g' }
      { f' d' f' e' }
  >>
  \voiceDivisi {
    g' b' d' b'
    d'' b' g' b'-\tag#'part \upbow
  }
  {
    g'4 e' g' e'
    b' g' b' g'-\tag#'part \upbow
  }
  <<
    \tag#'editorial {s4\< s s s\f }
    \tag#'score { s_\markup\italic "balance " }
    \staffDivisi
      { <a' f''> g' q b' }
      { a' <e' b' e''> a' q }
  >>
  \together
  c' d' e' f'
  \soloI { g' b' d' b' }
  \together
  <f' a'> <d' f'> <f' a'> <e' g'>
  f' e' d' c'
}

\markup \bold { Violin I part: }
\new Staff \with {
  instrumentName = "Violin I"
  shortInstrumentName = "V I"
} \keepWithTag divI.editorial.part \music

\markup \bold { Violin II part: }
\new Staff \with {
  instrumentName = "Violin II"
  shortInstrumentName = "V II"
} \keepWithTag divII.editorial.part \music

\markup \bold { Combined: }
\keepWithTag editorial.score \divisibleStaff "Violin" \music

Attachment: definitions.ily
Description: Binary data

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

Reply via email to