Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot hide empty staves #1

Open
Dx-Wang opened this issue Jul 4, 2019 · 1 comment
Open

Cannot hide empty staves #1

Dx-Wang opened this issue Jul 4, 2019 · 1 comment

Comments

@Dx-Wang
Copy link

Dx-Wang commented Jul 4, 2019

Hello,

I am trying to generate a score with both Jianpu staves and regular staves. I want to hide the all-rests lines of the staves with \RemoveEmptyStaves like

  \layout {
    \context {
      \Staff \RemoveEmptyStaves
      % To use the setting globally, uncomment the following line:
      \override VerticalAxisGroup.remove-first = ##t
    }
    \context {
      \JianpuStaff \RemoveEmptyStaves
      % To use the setting globally, uncomment the following line:
      \override VerticalAxisGroup.remove-first = ##t
    }
  }

It worked for the regular staves, but not for the Jianpu staves. Could anyone help me to find the problem?

Thanks,
Dexin

@Dx-Wang
Copy link
Author

Dx-Wang commented Jul 4, 2019

Here is an example of the problem.

\version "2.18.2"
\language "english"


\include "jianpu10a.ly"

\header {
  title = "Test"
  % Remove default LilyPond tagline
  tagline = ##f
}

\paper {
  #(set-paper-size "letter")
}

\layout {
  \context {
    \Voice
    \consists "Melody_engraver"
    \override Stem #'neutral-direction = #'()
  }
  
}

global = {
  \key bf \major
%  \numericTimeSignature
  \time 4/4
  \tempo 4=84
}


% \include "include_lyndon-specific.ly"

men =  \relative bf, {
  \clef bass
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |

  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
}

solo = \relative bf' {
  \compressFullBarRests {R1*16} |
  bf4 c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |
  bf c d ef|
  f g a bf |
  bf a g f|
  ef d c bf |

}



\score { 
  \new ChoirStaff <<
    \new JianpuStaff \jianpuMusic { \global \transpose bf bf' {\solo} }
    \new Staff  \new Voice = solo { \global \solo }
    
    \new JianpuStaff \jianpuMusic { \global \transpose bf bf'' {\men} }
    \new Staff  \new Voice = men { \global \men }
  >>
%  \new Staff { \global \melody }
  
  \layout {
    \context {
      \Staff \RemoveEmptyStaves
      % To use the setting globally, uncomment the following line:
      \override VerticalAxisGroup.remove-first = ##t
    }
    \context {
      \JianpuStaff \RemoveEmptyStaves
      % To use the setting globally, uncomment the following line:
      \override VerticalAxisGroup.remove-first = ##t
    }
  }

  \midi { }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant