Re: RemoveEmptyStaves doesnt remove percussion staff

2020-04-19 Thread neuro黃學仁
> \layout {
>   \context {
> \Staff
> \RemoveEmptyStaves
>   }
> %% You need to add this:
>\context {
> \DrumStaff
> \RemoveEmptyStaves
>   }
> }

Yes~ That works~
Thank you very much~

Valentin Villenave  於 2020年4月19日 週日 下午11:17寫道:
>
> On 4/16/20, neuro黃學仁  wrote:
> > How can one remove the empty percussion staff in Grandscore?
> > The \RemoveEmptyStaves seems not working on percussion staff.
>
> Greetings,
> here is a solution:
>
> 
>
> \layout {
>   indent = 2.6\cm
>   short-indent = 1.6\cm
>   \context {
> \Staff
> \RemoveEmptyStaves
>   }
> %% You need to add this:
>   \context {
> \DrumStaff
> \RemoveEmptyStaves
>   }
> }
>
> 
>
> Cheers,
> V.



Re: RemoveEmptyStaves doesnt remove percussion staff

2020-04-19 Thread Valentin Villenave
On 4/16/20, neuro黃學仁  wrote:
> How can one remove the empty percussion staff in Grandscore?
> The \RemoveEmptyStaves seems not working on percussion staff.

Greetings,
here is a solution:



\layout {
  indent = 2.6\cm
  short-indent = 1.6\cm
  \context {
\Staff
\RemoveEmptyStaves
  }
%% You need to add this:
  \context {
\DrumStaff
\RemoveEmptyStaves
  }
}



Cheers,
V.



RE: \RemoveEmptyStaves

2019-03-04 Thread Richard Gress
Thank you!

This should definitely be in the Lilypond Docs for keyboard-specific notation.

-Original Message-
From: lilypond-user  
On Behalf Of Malte Meyn
Sent: Monday, March 4, 2019 2:39 AM
To: lilypond-user@gnu.org
Subject: Re: \RemoveEmptyStaves



Am 04.03.19 um 03:17 schrieb Richard Gress:
> Hi all,
> 
> Why is \RemoveEmptyStaves not working the way I'm using it? The output 
> still shows blank staves in a ten-page document. Uncommenting the 
> global command doesn't work, either.

PianoStaff contains the Keep_alive_together_engraver. This means that 
individual staves aren't hidden, only the PianoStaff as a whole when all staves 
are empty. This makes sense in orchestra music but not for piano solo. You can 
use a GradStaff instead or remove the
Keep_alive_together_engraver:

\new GrandStaff <<
\new Staff ...
\new Staff ...
\new Staff ...
\new Staff ...
 >>

\new PianoStaff \with {
\remove Keep_alive_together_engraver
} <<
\new Staff ...
\new Staff ...
\new Staff ...
\new Staff ...
 >>

In fact, the Keep_align_together_engraver is the only difference between the 
two contexts, so both solutions are equivalent.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2019-03-04 Thread ajb
G'day.


On Mon, Mar 4, 2019 at 1:40 PM Richard Gress  wrote:

> Why is \RemoveEmptyStaves not working the way I’m using it? The output still 
> shows blank staves in a ten-page document. Uncommenting the global command 
> doesn’t work, either.

Because it's not a Staff, it's a PianoStaff.  It took me a while to
work this out, too.

It's a similar story for ChoirStaff. I use this:

\layout {
   \context {
\Staff \RemoveEmptyStaves
   }
   \context {
\ChoirStaff \RemoveEmptyStaves
   }
   \context {
\PianoStaff \RemoveEmptyStaves
   }
}

Andrew Bromage

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2019-03-03 Thread Andrew Bernard
Hi All,

This is an FAQ (and indeed I have asked it). I wonder where we should put
this sort of thing, some sort of FAQ repository?

Andrew
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2019-03-03 Thread Malte Meyn




Am 04.03.19 um 03:17 schrieb Richard Gress:

Hi all,

Why is \RemoveEmptyStaves not working the way I’m using it? The output 
still shows blank staves in a ten-page document. Uncommenting the global 
command doesn’t work, either.


PianoStaff contains the Keep_alive_together_engraver. This means that 
individual staves aren’t hidden, only the PianoStaff as a whole when all 
staves are empty. This makes sense in orchestra music but not for piano 
solo. You can use a GradStaff instead or remove the 
Keep_alive_together_engraver:


\new GrandStaff <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>

\new PianoStaff \with {
\remove Keep_alive_together_engraver
} <<
\new Staff …
\new Staff …
\new Staff …
\new Staff …
>>

In fact, the Keep_align_together_engraver is the only difference between 
the two contexts, so both solutions are equivalent.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Lukas-Fabian Moser

+1.  I've *never* seen an ambitus except at the very beginning of a piece.

I often use an ambitus in front- or end-matter, to give vocal ranges separate from the score itself. Of 
course, "front-matter" can be interpreted as "the very beginning of a piece", but I think 
of it as entirely separate from the piece — and end-matter is definitely not "the very beginning of a 
piece".

Not trying to battle semantics — just giving a use case, and putting forward my concern 
that any changes to the Ambitus engraver shouldn’t eliminate the possibility of using it 
somewhere other than the "traditional place" (i.e., immediately to the left of 
the first measure of a vocal staff).


... the least common denominator probably being that an Ambitus 
indication should be put at some *distinguished* place - front matter, 
end matter, first system, and so on, where it may be found easily. But 
to bury it at some more-or-less arbitrary place within the music doesn't 
seem a good idea to me.


Anyway: _How_ do you place the Ambitus in, e.g., the front matter?

Best
Lukas



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Thomas Morley
Am Do., 1. Nov. 2018 um 16:24 Uhr schrieb Kieren MacMillan
:
>
> Hi Werner,
>
> > +1.  I've *never* seen an ambitus except at the very beginning of a piece.
>
> I often use an ambitus in front- or end-matter, to give vocal ranges separate 
> from the score itself. Of course, "front-matter" can be interpreted as "the 
> very beginning of a piece", but I think of it as entirely separate from the 
> piece — and end-matter is definitely not "the very beginning of a piece".
>
> Not trying to battle semantics — just giving a use case, and putting forward 
> my concern that any changes to the Ambitus engraver shouldn’t eliminate the 
> possibility of using it somewhere other than the "traditional place" (i.e., 
> immediately to the left of the first measure of a vocal staff).

I'd second Werner.
Though, it's already possible to do:

{
  \new Voice = "intro"
{ R1*4 \break }

  \new Voice
\with { \consists "Ambitus_engraver" }
 \relative c' {
   \override AmbitusNoteHead.break-visibility = ##(#f #f #t)
   \override AmbitusLine.break-visibility = ##(#f #f #t)
   c4 d e f g a b c |
   \break
   b2 c |
   d1
}
}

alas not very convenient.


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Kieren MacMillan
Hi Werner,

> +1.  I've *never* seen an ambitus except at the very beginning of a piece.

I often use an ambitus in front- or end-matter, to give vocal ranges separate 
from the score itself. Of course, "front-matter" can be interpreted as "the 
very beginning of a piece", but I think of it as entirely separate from the 
piece — and end-matter is definitely not "the very beginning of a piece".

Not trying to battle semantics — just giving a use case, and putting forward my 
concern that any changes to the Ambitus engraver shouldn’t eliminate the 
possibility of using it somewhere other than the "traditional place" (i.e., 
immediately to the left of the first measure of a vocal staff).

Best,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Werner LEMBERG


> So, to be honest, I'm not sure whether trying to make the
> Ambitus_engraver compatible with hiding empty staves would be worth
> the effort, especially if (as you say) that effort would be large.

+1.  I've *never* seen an ambitus except at the very beginning of a
piece.


Werner

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line [OT-ish]

2018-11-01 Thread Kieren MacMillan
Hi Lukas,

> It seems to me that the whole point (or, at least, the most important 
> application) of the Ambitus indication is to enable users of the score to 
> judge the tessitura "at first glance" (even though, of course, for a reliable 
> judgement one would have to look at the actual music in more detail).

I’ve often wondered [only to myself] whether the Ambitus engraver could be 
tweaked to output a graphical cluster, the thickness of which would depend on 
the number of times that note appears in the piece (or total duration of each 
note, etc.) — that way, a pretty reliable judgement could be made just by 
looking at the ambitus, and seeing where the "bulges" were (if any).

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Lukas-Fabian Moser




Where would you expect the Ambitus marker to show up if you do not
want the staff to appear in the first system?

First entry?  I am not sure that the interfaces the Ambitus_engraver
exercises would allow to make that difference, but if they did, this
would be a reasonable expectation.  Though probably rather hard to
implement, given how late in the typesetting stage "empty" staves get
pruned.


Yes, that's probably the only sufficiently reasonable place to expect it.

But: It seems to me that the whole point (or, at least, the most 
important application) of the Ambitus indication is to enable users of 
the score to judge the tessitura "at first glance" (even though, of 
course, for a reliable judgement one would have to look at the actual 
music in more detail). This application is somewhat hindered if one has 
to look for the right system containing the first entry of a voice first.


So, to be honest, I'm not sure whether trying to make the 
Ambitus_engraver compatible with hiding empty staves would be worth the 
effort, especially if (as you say) that effort would be large.


Best
Lukas



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread David Kastrup
Lukas-Fabian Moser  writes:

> Am 01.11.18 um 01:34 schrieb Rohan Srinivasan:
>> Thank you - I meant to reply to the list. I have the following:
>
> The problem is the Ambitus_engraver. The ambitus is given at the
> beginning of the piece, and if you do this, the first staff of the
> singing voice is not empty (but contains the Ambitus designation).
>
> Where would you expect the Ambitus marker to show up if you do not
> want the staff to appear in the first system?

First entry?  I am not sure that the interfaces the Ambitus_engraver
exercises would allow to make that difference, but if they did, this
would be a reasonable expectation.  Though probably rather hard to
implement, given how late in the typesetting stage "empty" staves get
pruned.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-11-01 Thread Lukas-Fabian Moser



Am 01.11.18 um 01:34 schrieb Rohan Srinivasan:

Thank you - I meant to reply to the list. I have the following:


The problem is the Ambitus_engraver. The ambitus is given at the 
beginning of the piece, and if you do this, the first staff of the 
singing voice is not empty (but contains the Ambitus designation).


Where would you expect the Ambitus marker to show up if you do not want 
the staff to appear in the first system?


Best
Lukas


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-10-31 Thread Rohan Srinivasan
Thank you - I meant to reply to the list. I have the following:

\version "2.19.82"

\header {
  title = "CLOUDS AND SUNSHINE"
  subtitle = "or, I'VE JUST ARRIVED FROM DIXIE"
  composer = "George H. Coes (1828?-1897)"
}

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

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

\layout {
  \context {
\Staff
\RemoveAllEmptyStaves
  }
}

paren =
#(define-event-function (parser location dyn) (ly:event?)
   (make-dynamic-script
#{ \markup \concat {
 \normal-text \italic \fontsize #2 (
\pad-x #0.2 #(ly:music-property dyn 'text)
\normal-text \italic \fontsize #2 )
   }
#}))

global = {
  \key f \major
  \numericTimeSignature
  \time 2/4
  \partial 8
}

sopranoVoice = \relative c'' {
  \global
  \dynamicUp
  r8 |
  R2*20

}

right = \relative c'' {
  \global
  \partial 8 c,8 |
  c c d8. e16 |
  f8 a r a |
  c[ b bes8. g16] |
  g4. c8 |
  \override DynamicLineSpanner.staff-padding = #3
  d16\f d c d a' g f d |
  c\paren\f c b c g' f c a |
  c\p c b c e d b g


}

left = \relative c' {
  \global
  \partial 8 r8 |
  \override Beam.damping = #1 f,,[  ] r |
  f,[  ] r |
  c,[  ] r |
  f,[  ] r |
  \undo \override Beam.damping = #1
  bes[  ] r | \break
  c,[  ] r |
  c,[  ] r |


}

sopranoVoicePart = \new Staff \with {
  instrumentName = ""
  \consists "Ambitus_engraver"
} { \sopranoVoice }

pianoPart = \new PianoStaff \with {
  instrumentName = ""
} <<
  \new Staff = "right" \right
  \new Staff = "left" { \clef bass \left }
>>

\score {
  <<
\sopranoVoicePart
\pianoPart
  >>
  \layout { }
}


On Wed, Oct 31, 2018 at 12:54 AM Lukas-Fabian Moser  wrote:

> (Replying to list, assuming you wrote to me personally only by accident,
> as implied by your wording):
> Am 31.10.18 um 00:42 schrieb Rohan Srinivasan:
>
> Could any of you give me an example of how \RemoveAllEmptyStaves is used?
> I have:
>
> \layout {
>   \context {
> \Staff
> \RemoveAllEmptyStaves
>   }
> }
>
> This still doesn't seem to clear the empty staves in the first system.
>
> Please always try to provide a compilable minimal example showing your
> problem.
>
> \version "2.19.80"
>
> \layout {
>   \context {
> \Staff
> \RemoveAllEmptyStaves
>   }
> }
>
> <<
>   \new Staff \with { instrumentName = "Voice" shortInstrumentName = "Voc"
> } { R1*30 \repeat unfold 80 c'4 }
>   \new PianoStaff \with { instrumentName = "Piano" shortInstrumentName =
> "Pn" } <<
> \new Staff { \repeat unfold 200 c'4 }
> \new Staff { \clef bass \repeat unfold 400 c8 }
>   >>
> >>
>
> works here:
>
> Best
> Lukas
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-10-31 Thread Susan Buckingham
Have also used the \override VerticalAxisGroup.remove-first = ##t and can
confirm this works with 2.18.2 when added to score block.

\score {
  <<
\flutePart
\pianoPart
  >>
  \layout { #(layout-set-staff-size 22)
 \context { \Staff \RemoveEmptyStaves
  \override VerticalAxisGroup.remove-first
= ##t }
   }
  \midi { }
}

On Mon, 29 Oct 2018 at 03:41, Malte Meyn  wrote:

>
>
> Am 29.10.18 um 05:52 schrieb Lukas-Fabian Moser:
> >
> >> I am currently engraving a song for soprano and piano which begins
> >> with 15 measures of piano solo. I would like the soprano's staff not
> >> to show since it is not playing. \RemoveEmptyStaves does not seem to
> >> hide the first line of the piece.
> >>
> > In current versions (there's no reason not to use the 2.19.xx
> > development versions which are stable enough for professional everyday
> > use), there's |\RemoveAllEmptyStaves| which does just that (like
> > \RemoveEmptyStaves but also remove the respective staves in the first
> > system).
>
> In 2.18.2 there is \override VerticalAxisGroup.remove-first = ##t for that.
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-10-31 Thread Lukas-Fabian Moser
(Replying to list, assuming you wrote to me personally only by accident, 
as implied by your wording):


Am 31.10.18 um 00:42 schrieb Rohan Srinivasan:
Could any of you give me an example of how \RemoveAllEmptyStaves is 
used? I have:


\layout {
  \context {
    \Staff
    \RemoveAllEmptyStaves
  }
}

This still doesn't seem to clear the empty staves in the first system.


Please always try to provide a compilable minimal example showing your 
problem.


\version "2.19.80"

\layout {
  \context {
    \Staff
    \RemoveAllEmptyStaves
  }
}

<<
  \new Staff \with { instrumentName = "Voice" shortInstrumentName = 
"Voc" } { R1*30 \repeat unfold 80 c'4 }
  \new PianoStaff \with { instrumentName = "Piano" shortInstrumentName 
= "Pn" } <<

    \new Staff { \repeat unfold 200 c'4 }
    \new Staff { \clef bass \repeat unfold 400 c8 }
  >>
>>

works here:

Best
Lukas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-10-29 Thread Malte Meyn




Am 29.10.18 um 05:52 schrieb Lukas-Fabian Moser:


I am currently engraving a song for soprano and piano which begins 
with 15 measures of piano solo. I would like the soprano's staff not 
to show since it is not playing. \RemoveEmptyStaves does not seem to 
hide the first line of the piece.


In current versions (there's no reason not to use the 2.19.xx 
development versions which are stable enough for professional everyday 
use), there's |\RemoveAllEmptyStaves| which does just that (like 
\RemoveEmptyStaves but also remove the respective staves in the first 
system).


In 2.18.2 there is \override VerticalAxisGroup.remove-first = ##t for that.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves not removing first line

2018-10-28 Thread Lukas-Fabian Moser


I am currently engraving a song for soprano and piano which begins 
with 15 measures of piano solo. I would like the soprano's staff not 
to show since it is not playing. \RemoveEmptyStaves does not seem to 
hide the first line of the piece.


In current versions (there's no reason not to use the 2.19.xx 
development versions which are stable enough for professional everyday 
use), there's |\RemoveAllEmptyStaves| which does just that (like 
\RemoveEmptyStaves but also remove the respective staves in the first 
system).


Best
Lukas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves removes Dynamics context

2018-05-08 Thread Thomas Weber
Malte and Simon - I didn't have the opportunity to try your suggestions yet, 
but just wanted to say thanks for helping!


Am 07.05.2018 um 01:21 schrieb Simon Albrecht:
> On 06.05.2018 23:03, Malte Meyn wrote:
>> Am 06.05.2018 um 22:35 schrieb Thomas Weber:
>>> Can anybody help me with keeping the dynamics alive?  Many thanks!
>>>
>>> […]
>>>
>>> \layout {
>>>    \context {
>>>  \Score
>> Replace \Score by \Staff here.
>>>  \RemoveEmptyStaves
>>>  \override VerticalAxisGroup.remove-first = ##t
> In case you’re using any version starting from 2.19.36, you can replace the 
> above two lines by
> \RemoveAllEmptyStaves
>
> Best, Simon
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves removes Dynamics context

2018-05-06 Thread Simon Albrecht

On 06.05.2018 23:03, Malte Meyn wrote:

Am 06.05.2018 um 22:35 schrieb Thomas Weber:

Can anybody help me with keeping the dynamics alive?  Many thanks!

[…]

\layout {
   \context {
 \Score

Replace \Score by \Staff here.

 \RemoveEmptyStaves
 \override VerticalAxisGroup.remove-first = ##t
In case you’re using any version starting from 2.19.36, you can replace 
the above two lines by

\RemoveAllEmptyStaves

Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves removes Dynamics context

2018-05-06 Thread Malte Meyn



Am 06.05.2018 um 22:35 schrieb Thomas Weber:

Can anybody help me with keeping the dynamics alive?  Many thanks!

[…]

\layout {
   \context {
     \Score


Replace \Score by \Staff here.


     \RemoveEmptyStaves
     \override VerticalAxisGroup.remove-first = ##t
   }
}


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves for drums?

2017-08-06 Thread Abraham Lee
Hi, Molly!

On Sat, Aug 5, 2017 at 7:34 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

>
> > However I can't seem to get it to \RemoveEmptyStaves for the \DrumStaff.
> This is what I tried.
> >
> > \layout {
> > \context {
> > \Staff
> > \RemoveEmptyStaves
> > \DrumStaff
> > \RemoveEmptyStaves
> >   }
>
> To be honest, I'm not even sure *what* that would do…   =\
>
> Here's what I just tried, and it seems to work:
>
>   SNIPPET BEGINS
> \version "2.19"
>
> \layout {
>   \context {
> \DrumStaff
> \RemoveAllEmptyStaves
>   }
> }
>

The problem you ran into is that you were combining things that shouldn't
have been. In other words, \Staff and \DrumStaff need to be in their own
\context block, as Kieren hinted at. More fully, this should work for you:

\layout {
  \context {
\Staff
\RemoveEmptyStaves
  }
  \context {
\DrumStaff
\RemoveEmptyStaves
  }
}

HTH,
Abraham
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves for drums?

2017-08-05 Thread Kieren MacMillan
Hi Molly,

> However I can't seem to get it to \RemoveEmptyStaves for the \DrumStaff. This 
> is what I tried.
> 
> \layout {
> \context {
> \Staff 
> \RemoveEmptyStaves
> \DrumStaff
> \RemoveEmptyStaves
>   }

To be honest, I'm not even sure *what* that would do…   =\

Here's what I just tried, and it seems to work:

  SNIPPET BEGINS
\version "2.19"

\layout {
  \context {
\DrumStaff
\RemoveAllEmptyStaves
  }
}

<<
  \new DrumStaff << R1 >>
  \new Staff << c''1 >>
>>
  SNIPPET ENDS

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Son_V
Instead that has worked. Thanks (my fault).



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/RemoveEmptyStaves-don-t-work-as-I-would-to-tp201683p201691.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Kieren MacMillan
Hi,

> Thanks for the lesson (maybe I'll be able to understand it), but still it 
> doesn't work…

Below is your original snippet, with the suggested fix.
It doesn’t work for you as you expect? (It certainly does for me.)

Kieren.

\version "2.19.26"
\layout {
 \context {
   \Score
   skipBars = ##t
 }
 \context {
   \Staff
   \RemoveAllEmptyStaves
 }
}
PartPOneVoiceOne =  \relative g' {
 \clef "treble" \key c \major \numericTimeSignature\time 4/4 g1 | % 2
 g1 \break | % 3
 R1*2 \bar "|."
}

PartPTwoVoiceOne =  \relative b' {
 \clef "treble" \key c \major \numericTimeSignature\time 4/4 R1*2
 \break | % 3
 b1 | % 4
 b1 \bar "|.”
}

% The score definition
\score {
 <<
   \new Staff <<
 \set Staff.instrumentName = "Voce"
 \set Staff.shortInstrumentName = "Vo."
 \context Staff <<
   \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
>>
>>

   \new Staff <<
 \set Staff.instrumentName = "Soprano"
 \set Staff.shortInstrumentName = "S."
 \context Staff <<
   \context Voice = "PartPTwoVoiceOne" { \PartPTwoVoiceOne }
>> >> >>
 }



Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Son_V
Thanks for the lesson (maybe I'll be able to understand it), but still it
doesn't work...



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/RemoveEmptyStaves-don-t-work-as-I-would-to-tp201683p201689.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Son_V
I've installed the latest version, but no changes :-(



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/RemoveEmptyStaves-don-t-work-as-I-would-to-tp201683p201687.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Thomas Morley
Hi Son,

about minimal examples, see my comments below. ;)


2017-03-28 21:48 GMT+02:00 Son_V :
> neither \\RemoveAllEmptyStaves ..
>
> This is my try for a Minimum example, sorry if I failed to make it smaller:
>
> \version "2.19.26"
> \layout {
>   \context {
> \Score

no need for skipBars

> skipBars = ##t
> %\RemoveEmptyStaves
>   }
> }
> PartPOneVoiceOne =  \relative g' {

no need for
clef "treble" \key c \major \numericTimeSignature\time 4/4
it's mostly the default, or suoerfluous for a minimal
Also too many notes/rests.

>   \clef "treble" \key c \major \numericTimeSignature\time 4/4 g1 | % 2
>   g1 \break | % 3
>   R1*2 \bar "|."
> }
>
> PartPTwoVoiceOne =  \relative b' {

same here

>   \clef "treble" \key c \major \numericTimeSignature\time 4/4 R1*2
>   \break | % 3
>   b1 | % 4
>   b1 \bar "|."
> }
>
>

For a minimal no complete score-definition, (unless the problem would
be in there)

> % The score definition
> \score {
>   <<
> \new Staff <<
>   \set Staff.instrumentName = "Voce"
>   \set Staff.shortInstrumentName = "Vo."
>   \context Staff <<
> \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
>   >>
> >>
> \new Staff <<
>   \set Staff.instrumentName = "Soprano"
>   \set Staff.shortInstrumentName = "S."
>   \context Staff <<
> \context Voice = "PartPTwoVoiceOne" { \PartPTwoVoiceOne }
>   >>
> >>
>   >>
>   }

Remaining minimal with solution,

\layout {
  \context {
\Staff
\RemoveEmptyStaves
  }
}

<<
  \new Staff { g'1 \break R1 }
  \new Staff { R1 \break b'1 }
>>

RemoveEmptyStaves needs to be applied in a Staff-context, examples in the NR

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread David Kastrup
Son_V  writes:

> neither \\RemoveAllEmptyStaves ..
>
> This is my try for a Minimum example, sorry if I failed to make it smaller:
>
> \version "2.19.26"
> \layout {
>   \context {
> \Score
> skipBars = ##t
> %\RemoveEmptyStaves
>   }
> }

\RemoveEmptyStaves and \RemoveAllEmptyStaves apply to the context
containing them.

Removing the Score context could be ... interesting.

You probably want to use this invocation on Staff instead of Score.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves don't work as I would to

2017-03-28 Thread Kieren MacMillan
Hi,

> neither \\RemoveAllEmptyStaves ..

In 2.19.56, that (with a single \ of course) works as expected for me.
Maybe upgrade?

Hope this helps,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves + 8 part polyphony

2016-05-10 Thread Dirk Koopman

On 11/05/16 01:07, Dirk Koopman wrote:

On 11/05/16 00:38, Kieren MacMillan wrote:

Hi Dirk,

Is there any way of controlling which part of a score has 
\RemoveEmptyStaves active and which not?

showMMRs = {
   \set Staff.keepAliveInterfaces =
 #'( rhythmic-grob-interface
 multi-measure-rest-interface
 lyric-interface
 stanza-number-interface
 percent-repeat-interface) }

hideMMRs = \unset Staff.keepAliveInterfaces

Hope this helps!


Hmm...

Close but no cigar. Each of my stave in 2nd choir look like this:

\new Staff <<

\new Voice="v8" {

\set Staff.instrumentName = "Bass 2"

\set Staff.shortInstrumentName = "B2"

\clef "bass"

\key f \major

\numericTimeSignature\time 4/2

\BtwoKone \break  % 1st kyrie notes

\BtwoC \break % christe notes

\showMMRs \BtwoKtwo   % 2nd Kyrie notes

}

\new Lyrics \lyricsto "v8" {

\TextBtwo

}

>>


The Christe is just a lot of R1*n followed by a \bar "||" |. What 
happens is that the 2nd Kyrie is now set correctly, but the empty 2nd 
choir part of the Christe now also appears. I am guessing that I have 
to put the \showMMRs somewhere else?


Dirk



And as if by magic removing all four \showMMRs makes it format as I want 
it. So it appears that just defining those functions makes it work. 
Which is a worry.


Dirk

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves + 8 part polyphony

2016-05-10 Thread Dirk Koopman

On 11/05/16 00:38, Kieren MacMillan wrote:

Hi Dirk,


Is there any way of controlling which part of a score has \RemoveEmptyStaves 
active and which not?

showMMRs = {
   \set Staff.keepAliveInterfaces =
 #'( rhythmic-grob-interface
 multi-measure-rest-interface
 lyric-interface
 stanza-number-interface
 percent-repeat-interface) }

hideMMRs = \unset Staff.keepAliveInterfaces

Hope this helps!


Hmm...

Close but no cigar. Each of my stave in 2nd choir look like this:

\new Staff <<

\new Voice="v8" {

\set Staff.instrumentName = "Bass 2"

\set Staff.shortInstrumentName = "B2"

\clef "bass"

\key f \major

\numericTimeSignature\time 4/2

\BtwoKone \break  % 1st kyrie notes

\BtwoC \break % christe notes

\showMMRs \BtwoKtwo   % 2nd Kyrie notes

}

\new Lyrics \lyricsto "v8" {

\TextBtwo

}

>>


The Christe is just a lot of R1*n followed by a \bar "||" |. What 
happens is that the 2nd Kyrie is now set correctly, but the empty 2nd 
choir part of the Christe now also appears. I am guessing that I have to 
put the \showMMRs somewhere else?


Dirk


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves + 8 part polyphony

2016-05-10 Thread Kieren MacMillan
Hi Dirk,

> Is there any way of controlling which part of a score has \RemoveEmptyStaves 
> active and which not?

showMMRs = {
  \set Staff.keepAliveInterfaces =
#'( rhythmic-grob-interface
multi-measure-rest-interface
lyric-interface
stanza-number-interface
percent-repeat-interface) }

hideMMRs = \unset Staff.keepAliveInterfaces

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: RemoveEmptyStaves and the ambitus_engraver

2013-04-14 Thread Roman Stawski
Janek Warchoł janek.lilypond at gmail.com writes:

 
 On Mon, Apr 1, 2013 at 3:41 PM, Roman Stawski roman at stawski.fr wrote:
 
 Interesting.  If i were you, i'd place the skips inside MainSequence
 and have the ambitus appear at the very beginning, and keep that first
 system alive (which makes
 some sense in my opinion):
 
   \new Staff \relative c' {
 \clef treble
 \new MainSequence {
   \skip 1*8
   \repeat unfold 2 { e1 e'1 }
 }
   }

Unfortunately, in the real piece that doesn't work so well. Ah well, I'll
try and find a work around...

Cześć

Roman


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: RemoveEmptyStaves and the ambitus_engraver

2013-04-03 Thread Janek Warchoł
On Mon, Apr 1, 2013 at 3:41 PM, Roman Stawski ro...@stawski.fr wrote:
 I'm not top posting.

 It seems that \RemoveEmptyStaves doesn't play very well with the
 ambitus_engraver.

 In this example, I'm trying to get the treble staff removed in the
 first two systems, and appear with an ambitus on the third.

 It is removed correctly in the first system. But reappears in the
 second. If I comment out the line (*), then the staves are removed as
 needed, but the ambitus is too of course.

Interesting.  If i were you, i'd place the skips inside MainSequence
and have the ambitus appear at the very beginning, and keep that first
system alive (which makes
some sense in my opinion):

  \new Staff \relative c' {
\clef treble
\new MainSequence {
  \skip 1*8
  \repeat unfold 2 { e1 e'1 }
}
  }

hth,
Janek Warchoł

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-12-20 Thread Peter O'Doherty

On 11/14/2012 07:51 PM, Thomas Morley wrote:

2012/11/14 Peter O'Doherty m...@peterodoherty.net:

Yes, great. It works perfectly.
Thanks,
Peter

Hi Peter,

would be nice, if you could tell us which kind of solution worked for
you and how.

Adapting the LSR-snippet? Then I would be highly interested. I didn't manage.

Cheers,
   Harm


Harm, I'm very sorry for not replying sooner - I must have missed your 
email, am just seeing it now.

This is what I used:

showMultiRests = {

\set Staff.keepAliveInterfaces = #'(

rhythmic-grob-interface

multi-measure-rest-interface

lyric-interface

stanza-number-interface

percent-repeat-interface)

}

hideMultiRests = \unset Staff.keepAliveInterfaces


And then simply:

\hideMultiRests

s8 s8 s8


Hope this helps.
Best,
Peter

--
//=
- Peter O'Doherty
- http://www.peterodoherty.net
- m...@peterodoherty.net
- https://joindiaspora.com/people/70716
//=

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-12-20 Thread Thomas Morley
2012/12/20 Peter O'Doherty m...@peterodoherty.net:
 On 11/14/2012 07:51 PM, Thomas Morley wrote:

 2012/11/14 Peter O'Doherty m...@peterodoherty.net:

 Yes, great. It works perfectly.
 Thanks,
 Peter

 Hi Peter,

 would be nice, if you could tell us which kind of solution worked for
 you and how.

 Adapting the LSR-snippet? Then I would be highly interested. I didn't
 manage.

 Cheers,
   Harm


 Harm, I'm very sorry for not replying sooner - I must have missed your
 email, am just seeing it now.
 This is what I used:

 showMultiRests = {

 \set Staff.keepAliveInterfaces = #'(

 rhythmic-grob-interface

 multi-measure-rest-interface

 lyric-interface

 stanza-number-interface

 percent-repeat-interface)

 }

 hideMultiRests = \unset Staff.keepAliveInterfaces


 And then simply:

 \hideMultiRests

 s8 s8 s8


 Hope this helps.
 Best,
 Peter

Many thanks!

-Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-11-14 Thread Peter O'Doherty

Yes, great. It works perfectly.
Thanks,
Peter

On 11/06/2012 11:38 PM, Kieren MacMillan wrote:

Hi Peter,

Have you looked at this hint?
http://lsr.dsi.unimi.it/LSR/Item?id=312

Hope this helps!
Kieren.

On 2012-Nov-6, at 10:36, Phil Holmes m...@philholmes.net wrote:


- Original Message - From: Peter O'Doherty m...@peterodoherty.net
To: lilypond-user lilypond-user@gnu.org
Sent: Tuesday, November 06, 2012 1:46 PM
Subject: \RemoveEmptyStaves



Hi,

I have a score with a system where some staves have measures which are filled 
with rests and others with spacer rests (I need these to enable \change Staff 
elements). I would like to remove the staves with have rests only but as far as 
I can see \RemoveEmptyStaves will remove those with spacers rests as well. Is 
there a way round this?

Many thanks,
Peter


A solution (there may be others) would be to use some hidden notes as well as 
spacer rests.

--
Phil Holmes

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user






--
//=
- Peter O'Doherty
- http://www.peterodoherty.net
- m...@peterodoherty.net
- https://joindiaspora.com/people/70716
//=


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-11-14 Thread Thomas Morley
2012/11/14 Peter O'Doherty m...@peterodoherty.net:
 Yes, great. It works perfectly.
 Thanks,
 Peter

Hi Peter,

would be nice, if you could tell us which kind of solution worked for
you and how.

Adapting the LSR-snippet? Then I would be highly interested. I didn't manage.

Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-11-06 Thread Phil Holmes
- Original Message - 
From: Peter O'Doherty m...@peterodoherty.net

To: lilypond-user lilypond-user@gnu.org
Sent: Tuesday, November 06, 2012 1:46 PM
Subject: \RemoveEmptyStaves



Hi,

I have a score with a system where some staves have measures which are 
filled with rests and others with spacer rests (I need these to enable 
\change Staff elements). I would like to remove the staves with have rests 
only but as far as I can see \RemoveEmptyStaves will remove those with 
spacers rests as well. Is there a way round this?


Many thanks,
Peter



A solution (there may be others) would be to use some hidden notes as well 
as spacer rests.


--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-11-06 Thread Kieren MacMillan
Hi Peter,

Have you looked at this hint?
http://lsr.dsi.unimi.it/LSR/Item?id=312

Hope this helps!
Kieren.

On 2012-Nov-6, at 10:36, Phil Holmes m...@philholmes.net wrote:

 - Original Message - From: Peter O'Doherty m...@peterodoherty.net
 To: lilypond-user lilypond-user@gnu.org
 Sent: Tuesday, November 06, 2012 1:46 PM
 Subject: \RemoveEmptyStaves
 
 
 Hi,
 
 I have a score with a system where some staves have measures which are 
 filled with rests and others with spacer rests (I need these to enable 
 \change Staff elements). I would like to remove the staves with have rests 
 only but as far as I can see \RemoveEmptyStaves will remove those with 
 spacers rests as well. Is there a way round this?
 
 Many thanks,
 Peter
 
 
 A solution (there may be others) would be to use some hidden notes as well as 
 spacer rests.
 
 --
 Phil Holmes 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \RemoveEmptyStaves

2012-11-06 Thread Thomas Morley
2012/11/6 Phil Holmes m...@philholmes.net:
 - Original Message - From: Peter O'Doherty
 m...@peterodoherty.net
 To: lilypond-user lilypond-user@gnu.org
 Sent: Tuesday, November 06, 2012 1:46 PM
 Subject: \RemoveEmptyStaves



 Hi,

 I have a score with a system where some staves have measures which are
 filled with rests and others with spacer rests (I need these to enable
 \change Staff elements). I would like to remove the staves with have rests
 only but as far as I can see \RemoveEmptyStaves will remove those with
 spacers rests as well. Is there a way round this?

 Many thanks,
 Peter



 A solution (there may be others) would be to use some hidden notes as well
 as spacer rests.

 --
 Phil Holmes

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Peter,

the `normal´ way to do what you want is to trim keepAliveInterfaces as
shown in LSR
http://lsr.dsi.unimi.it/LSR/Item?id=312
But { s1 } seems not to result in a Grob. And I found no interface for
it to distinguish from { r1 }.

Is there any?

So Phil's suggestion (or some similiar) seems to be the way.


Sorry,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user