Re: inconsistent \RemoveEmptyStaves action

2022-02-22 Thread Simon Albrecht

On 22/02/2022 23:28, Lukas-Fabian Moser wrote:
Do you consider this inferior (or unnecessarily verbose and therefore 
non-minimal)? 



No, the motivation for that was more naive. You’re probably right that 
it would actually be more minimal in a deeper sense to explicitly 
instantiate the staves.


Best, Simon




Re: inconsistent \RemoveEmptyStaves action

2022-02-22 Thread Carl Sorensen


On 2/22/22, 3:29 PM, "lilypond-user on behalf of Lukas-Fabian Moser" 
 wrote:

Hi Simon,

> This is a minimal example for the issue you were having:
>
> %%%
> \version "2.22.1"
>
> upper = { 1 \break 1 }
> lower = { R1*2 }
>
> \score {
>   \new PianoStaff << \upper \lower >>
>   \layout {
> \context {
>   \Staff
>   \RemoveEmptyStaves
> }
>   }
> }
> 

Now that's interesting: For my taste, this is _too_ minimal. I don't 
wouldn't recommend relying on the implicit creation of contexts to turn 
\upper and \lower into staves (as opposed to, for instance, voices).

So, I would always write

\new PianoStaff
<<
   \new Staff \upper
   \new Staff \lower
 >>

Do you consider this inferior (or unnecessarily verbose and therefore 
non-minimal)?

I don't think it makes any difference in this particular situation.  Both work 
appropriately.   Personally, I always explicitly instantiate all of my contexts.

Carl
 



Re: inconsistent \RemoveEmptyStaves action

2022-02-22 Thread Lukas-Fabian Moser

Hi Simon,


This is a minimal example for the issue you were having:

%%%
\version "2.22.1"

upper = { 1 \break 1 }
lower = { R1*2 }

\score {
  \new PianoStaff << \upper \lower >>
  \layout {
    \context {
  \Staff
  \RemoveEmptyStaves
    }
  }
}



Now that's interesting: For my taste, this is _too_ minimal. I don't 
wouldn't recommend relying on the implicit creation of contexts to turn 
\upper and \lower into staves (as opposed to, for instance, voices).


So, I would always write

\new PianoStaff
<<
  \new Staff \upper
  \new Staff \lower
>>

Do you consider this inferior (or unnecessarily verbose and therefore 
non-minimal)?


Lukas




Re: inconsistent \RemoveEmptyStaves action

2022-02-22 Thread Simon Albrecht

Hi,

On 12/02/2022 20:22, jh wrote:

This is the shortest example I could figure out how to make



David and Lukas-Fabian have already answered the core question, so allow 
me to comment on this: tiny examples are important for communication on 
the list and it takes a while to learn how to make one.


This is a minimal example for the issue you were having:

%%%
\version "2.22.1"

upper = { 1 \break 1 }
lower = { R1*2 }

\score {
  \new PianoStaff << \upper \lower >>
  \layout {
    \context {
  \Staff
  \RemoveEmptyStaves
    }
  }
}


I hope that gives you some ideas on how to boil down your excerpt even more.

Best, Simon




Re: inconsistent \RemoveEmptyStaves action

2022-02-12 Thread Lukas-Fabian Moser

Hi Jay,

Am 12.02.22 um 20:22 schrieb jh:
From one project to the next sometimes 'Frenching' a score works and 
sometimes it doesn't

This is the shortest example I could figure out how to make
the second system should be just two staves (and using the same 
context etc 5 days ago worked as expected on a different score so this 
was copy pasted)


You are using PianoStaff. The only point of a PianoStaff is that it 
keeps all its contained staves alive together; to wit, the definition of 
PianoStaff is:


\context{
  \GrandStaff
  \name "PianoStaff"
  \alias "GrandStaff"

  \description "Just like @code{GrandStaff}, but the staves are only 
removed

together, never separately."

  \consists "Keep_alive_together_engraver"

  %% explicitly set instrument, so it is not inherited from the parent
  instrumentName = #'()
  shortInstrumentName = #'()
}

So the only difference between a PianoStaff and a GrandStaff is that, 
with a GrandStaff, you get what you want.


To be honest, it looks a bit strange to use a braced staff group for 
your score. Is this intentional?


(By the way, with current development versions of LilyPond, it suffices 
to issue \numericTimeSignature once - for example, in the \layout block. 
For \accidentalStyle ..., this has been true for a while now.)


Lukas





Re: inconsistent \RemoveEmptyStaves action

2022-02-12 Thread David Kastrup
jh  writes:

> From one project to the next sometimes 'Frenching' a score works and
> sometimes it doesn't
> This is the shortest example I could figure out how to make
> the second system should be just two staves (and using the same
> context etc 5 days ago worked as expected on a different score so this
> was copy pasted)
>  \version "2.22.1"
> \header {
>   title = "Caucasus"
>composer = "Jay Hamilton"
> copyright = \markup { \tiny \override #'(baseline-skip . 0.5)
> \center-column
> {  "CC lic 2.5 some rights reserved Jay Hamilton 2022"
> "see http://creativecommons.org/licenses/by-nd/2.5/;
>} }
>}
> #(ly:set-option 'delete-intermediate-files #t)
> #(set-default-paper-size "letter" )
>  #(set-global-staff-size 20)
>
>
> upper = \relative c' {
> \clef treble
> \key c \major
> \time 4/4
> \tempo "andante" 4 = 72
> \numericTimeSignature
> \accidentalStyle forget
> \times 2/3 {g'8 d bes'}\times 2/3 {g d bes'}
>\times 2/3 {g d bes'}\times 2/3 {g d bes'}
>\times 2/3 {a d, c'} \times 2/3 {a d, c'}
>\times 2/3 {a d, c'} \times 2/3 {a d, c'}\break
>\times 2/3 {bes g d'} \times 2/3 {bes g d'}
>\times 2/3 {bes g d'} \times 2/3 {bes g d'}
>es16 bes ges bes es bes ges bes es bes ges bes es bes ges bes\break
>
> }
>
> lower = \relative c {
> \clef bass
> \key c \major
> \numericTimeSignature
> \accidentalStyle forget
>   bes'4 c d g,
>   \times 2/3 {a8 g fis} d4 \times 2/3 {c8 a c}\times 2/3 {fis g a}
>   \times 2/3 {bes8 a g}\times 2/3 {d bes d}\times 2/3 {fis g a} d4
>   es4 ges8 [d] c [bes] ges a ~
> }
> three = \relative c {
> \clef bass
> \key c \major
> \numericTimeSignature
> \accidentalStyle forget
>R1*4
>
> }
> four = \relative c {
> \clef "bass_8"
> \key c \major
> \numericTimeSignature
> \accidentalStyle forget
>R1*4
> }
>
>
> \score {
>   \context PianoStaff
>   <<
>   \context Staff = upper \upper
>   \context Staff = lower \lower
>   \context Staff = three \three
> \context Staff = four \four
>   >>
>   \layout {
>   \context {
>   \Staff
>\RemoveEmptyStaves
> }
> }
>   \midi { }
> }
> Please point to my stupid errors.
> thanks
> J

File: lilypond-internals.info,  Node: PianoStaff,  Next: RhythmicStaff,  Prev: 
PetrucciVoice,  Up: Contexts

2.1.24 ‘PianoStaff’
---

Just like ‘GrandStaff’, but the staves are only removed together, never
separately.

-- 
David Kastrup



inconsistent \RemoveEmptyStaves action

2022-02-12 Thread jh
From one project to the next sometimes 'Frenching' a score works and 
sometimes it doesn't

This is the shortest example I could figure out how to make
the second system should be just two staves (and using the same context 
etc 5 days ago worked as expected on a different score so this was copy 
pasted)

 \version "2.22.1"
\header {
  title = "Caucasus"
   composer = "Jay Hamilton"
copyright = \markup { \tiny \override #'(baseline-skip . 0.5)
\center-column
{  "CC lic 2.5 some rights reserved Jay Hamilton 2022"
"see http://creativecommons.org/licenses/by-nd/2.5/;
   } }
   }
#(ly:set-option 'delete-intermediate-files #t)
#(set-default-paper-size "letter" )
 #(set-global-staff-size 20)


upper = \relative c' {
\clef treble
\key c \major
\time 4/4
\tempo "andante" 4 = 72
\numericTimeSignature
\accidentalStyle forget
\times 2/3 {g'8 d bes'}\times 2/3 {g d bes'}
   \times 2/3 {g d bes'}\times 2/3 {g d bes'}
   \times 2/3 {a d, c'} \times 2/3 {a d, c'}
   \times 2/3 {a d, c'} \times 2/3 {a d, c'}\break
   \times 2/3 {bes g d'} \times 2/3 {bes g d'}
   \times 2/3 {bes g d'} \times 2/3 {bes g d'}
   es16 bes ges bes es bes ges bes es bes ges bes es bes ges bes\break

}

lower = \relative c {
\clef bass
\key c \major
\numericTimeSignature
\accidentalStyle forget
  bes'4 c d g,
  \times 2/3 {a8 g fis} d4 \times 2/3 {c8 a c}\times 2/3 {fis g a}
  \times 2/3 {bes8 a g}\times 2/3 {d bes d}\times 2/3 {fis g a} d4
  es4 ges8 [d] c [bes] ges a ~
}
three = \relative c {
\clef bass
\key c \major
\numericTimeSignature
\accidentalStyle forget
   R1*4

}
four = \relative c {
\clef "bass_8"
\key c \major
\numericTimeSignature
\accidentalStyle forget
   R1*4
}


\score {
\context PianoStaff
<<
\context Staff = upper \upper
\context Staff = lower \lower
  \context Staff = three \three
\context Staff = four \four
>>
\layout {
  \context {
  \Staff
   \RemoveEmptyStaves
}
}
\midi { }
}
Please point to my stupid errors.
thanks
J

--
Thank you Sound & Silence

Beginning May 1, 2021 a new address; 1814 Lake Washington Blvd. So.,
Seattle, Wa. 98144

_206-328-7694 or messages at 206-308-8189_

www.soundand.com

and an online short (45 minute) concert of new material on Wayward in 
Limbo



https://www.waywardmusic.org/?p=6082

frenched score problem.pdf
Description: Adobe PDF document