Re: Force LilyPond to show same time signature again

2024-04-22 Thread Hajo Baess
Not quite yet: I do not want the 3/4 to appear in the left hand where
for this part there is no actual meter change. But I think you put me
on the right track: the solution is that you need to add \omit
Staff.TimeSignature before the second 3/4. Then the only the first 3/4
is shown.

Thank you so much for your helpfulness. It's always satifying for both
sides if you can say afterwards: 'case solved'.


Am Montag, dem 22.04.2024 um 07:42 -0700 schrieb Knute Snortum:
> On Mon, Apr 22, 2024 at 3:32 AM Hajo Baess  wrote:
> 
> > > Is there a reason you are writing...
> > 
> > Yes there is.
> 
> [...]
> 
> > The question is only: will it work as well in my score. I still
> > have to try and see, and I will report what will happen...
> > 
> 
> I think this does what you want:
> 
> \version "2.24.3"
> 
> rightHand = \relative c' {
>   \time 3/4
>   \repeat unfold 6 { c8 }
>   \set Staff.timeSignatureFraction = 9/8
>   \scaleDurations 2/3 {
>     \repeat unfold 9 { c8 }
>   }
>   \set Staff.timeSignatureFraction = 3/4
>   \repeat unfold 6 { c8 }
> }
> 
> leftHand = \relative c {
>   \clef bass
>   \time 3/4
>   \repeat unfold 6 { c8 }
>   \time 3/4
>   \repeat unfold 6 { c8 }
>   \time 3/4
>   \repeat unfold 6 { c8 }
> }
> 
> \score {
>   \new GrandStaff <<
>     \new Staff = "upper" \rightHand
>     \new Staff = "lower" \leftHand
>   >>
> }
> 
> 
> --
> Knute Snortum




Re: Force LilyPond to show same time signature again

2024-04-22 Thread Knute Snortum
On Mon, Apr 22, 2024 at 3:32 AM Hajo Baess  wrote:

> > Is there a reason you are writing...
>
> Yes there is.

[...]

> The question is only: will it work as well in my score. I still
> have to try and see, and I will report what will happen...
>

I think this does what you want:

\version "2.24.3"

rightHand = \relative c' {
  \time 3/4
  \repeat unfold 6 { c8 }
  \set Staff.timeSignatureFraction = 9/8
  \scaleDurations 2/3 {
\repeat unfold 9 { c8 }
  }
  \set Staff.timeSignatureFraction = 3/4
  \repeat unfold 6 { c8 }
}

leftHand = \relative c {
  \clef bass
  \time 3/4
  \repeat unfold 6 { c8 }
  \time 3/4
  \repeat unfold 6 { c8 }
  \time 3/4
  \repeat unfold 6 { c8 }
}

\score {
  \new GrandStaff <<
\new Staff = "upper" \rightHand
\new Staff = "lower" \leftHand
  >>
}


--
Knute Snortum


Re: Force LilyPond to show same time signature again

2024-04-22 Thread Hajo Baess
> Is there a reason you are writing...

Yes there is. Let me explain, because from what you have seen so far,
this is not obvious.
What I am typesetting is an Italian violin piece from a manuscript from
around 1800. Back then it seems that our modern triplet notation were
unknown in Italy or did not exist yet. Composers instead just wrote a
meter change - in my case from 3/4 to 9/8 and back where it was no
longer necessary. But they only notated this meter change in the
part(s) where it was necessary. I other parts they just went on with
the initial meter. Like that it was clear nevertheless for a musician
that the 9/8 meant triple subdivision to a beat instead of the standard
even subdivision.

Since I am writing a score (trying to keep the original notation), I
have a pseudo-polymetric setup in those places, and that's why I had
the idea of scaling the rhythm in there: if I dont, Lilypond gets it
wrong in the 9/8 bars, of course, because it expects six eighth notes
to a bar instead of nine.

Of course these things are easier to implement in an individual part
(or I just could simply turn to triplets) than in a score, but maybe I
mentally made it too complicated, and there does exist a better and
more efficient way.

I can confirm that your suggestion vs. my weirdo code in my test file
produces exactly the same result, and that it is the intended one
indeed. The question is only: will it work as well in my score. I still
have to try and see, and I will report what will happen...

In the score, if you look at the screenshot again, you can see that 
the two upper parts temporarily need that pseudo meter change, whereas
the bass part keeps going in 3/4. What I initially have typed before
asking here worked alright except for the fact that at the switch back
to 3/4 there was no 3/4 again, although I had written "\time 3/4", and
I could not figure out why.

Am Samstag, dem 20.04.2024 um 16:06 -0700 schrieb Knute Snortum:
> On Sat, Apr 20, 2024 at 3:02 PM Hajo Baess  wrote:
> 
> > I have messed around with this little lab specimen here, and I have
> > found a solution, but it is weird. You obviously (after having
> > scaled
> > some rhythm just once) have to explicitly unscale the rhythm  e v e
> > r y
> > time you want it to appear in the staff. I have extended the
> > example
> > with a short quote from the piece I am typesetting. this is what
> > obviously works:
> > 
> > > \version "2.24.2"
> > > \language "deutsch"
> > > 
> > > \relative c''  {
> > >   \time 3/4 c4 c c c2 c4
> > >   \time 3/4 c4 c c c2 c4
> > >   \omit Score.TimeSignature
> > >   \time 3/4 c4 c c c2 c4
> > >   \undo \omit Score.TimeSignature
> > >   \time 3/4 c4 c c c2 c4
> > >   \time 3/4 \set Staff.timeSignatureFraction = 9/8
> > >   \scaleDurations 2/3 {
> > >   \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 {
> > > e' ( cis a ) } \repeat unfold 3 { f'8 ( d a ) }
> > >   \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 {
> > > a' ( f c ) } \repeat unfold 3 { g' ( e c ) }
> > >   \repeat unfold 3 { f8 ( d a ) }
> > >   } %\override Score.TimeSignature.stencil = ##f
> > >   \time 3/4  \set Staff.timeSignatureFraction = 3/4
> > >   \scaleDurations 1/1
> > >   {
> > >   cis4\trill cis2 d4 d4. c16 d e2 e4 f4 f4. g8 e2 e4
> > > f
> > > d d ~ d8 cis d4 d4
> > >   }
> > >   \time 3/4 \set Staff.timeSignatureFraction = 3/4
> > >   \scaleDurations 1/1
> > >   { d2 d4\fermata}
> > >   \bar "|."
> > > }
> > 
> > If you just type "\time 3/4" at the end for instance, you won't get
> > your time signature shown. At least this prodecure is completely
> > unintuitive, I think.
> > 
> 
>  A couple of points:
> 
> * 


>  " \time 3/4 \set
> Staff.timeSignatureFraction = 9/8" and then scaling by 2/3 rather
> than just
> writing "\time 9/8"?
> * Why are you writing "\time 3/4  \set Staff.timeSignatureFraction =
> 3/4"
> instead of just "\time 3/4"?
> * "\scaleDuractions 1/1 {}" is doing nothing and can be removed.
> 
> Applying my suggestions to your music, you get this, which seems to
> work as
> you want it to:
> 
> \version "2.24.2"
> \language "deutsch"
> 
> \relative c''  {
>   \time 3/4 c4 c c c2 c4
>   \time 3/4 c4 c c c2 c4
>   \omit Score.TimeSignature
>   \time 3/4 c4 c c c2 c4
>   \undo \omit Score.TimeSignature
>   \time 3/4 c4 c c c2 c4
>   \time 9/8
>   \repeat unfold 3 { f8 ( d a ) }
>   \repeat unfold 3 {e' ( cis a ) }
>   \repeat unfold 3 { f'8 ( d a ) }
>   \repeat unfold 3 { g' ( e c ) }
>   \repeat unfold 3 {a' ( f c ) }
>   \repeat unfold 3 { g' ( e c ) }
>   \repeat unfold 3 { f8 ( d a ) }
>   \time 3/4
>   cis4\trill cis2 d4 d4. c16 d e2 e4 f4 f4. g8 e2 e4 f d d ~ d8 cis
> d4 d4
>   \time 3/4
>   d2 d4\fermata
>   \bar "|."
> }




Re: Force LilyPond to show same time signature again

2024-04-20 Thread Knute Snortum
On Sat, Apr 20, 2024 at 3:02 PM Hajo Baess  wrote:

> I have messed around with this little lab specimen here, and I have
> found a solution, but it is weird. You obviously (after having scaled
> some rhythm just once) have to explicitly unscale the rhythm  e v e r y
> time you want it to appear in the staff. I have extended the example
> with a short quote from the piece I am typesetting. this is what
> obviously works:
>
> > \version "2.24.2"
> > \language "deutsch"
> >
> > \relative c''  {
> >   \time 3/4 c4 c c c2 c4
> >   \time 3/4 c4 c c c2 c4
> >   \omit Score.TimeSignature
> >   \time 3/4 c4 c c c2 c4
> >   \undo \omit Score.TimeSignature
> >   \time 3/4 c4 c c c2 c4
> >   \time 3/4 \set Staff.timeSignatureFraction = 9/8
> >   \scaleDurations 2/3 {
> >   \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 {
> > e' ( cis a ) } \repeat unfold 3 { f'8 ( d a ) }
> >   \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 {
> > a' ( f c ) } \repeat unfold 3 { g' ( e c ) }
> >   \repeat unfold 3 { f8 ( d a ) }
> >   } %\override Score.TimeSignature.stencil = ##f
> >   \time 3/4  \set Staff.timeSignatureFraction = 3/4
> >   \scaleDurations 1/1
> >   {
> >   cis4\trill cis2 d4 d4. c16 d e2 e4 f4 f4. g8 e2 e4 f
> > d d ~ d8 cis d4 d4
> >   }
> >   \time 3/4 \set Staff.timeSignatureFraction = 3/4
> >   \scaleDurations 1/1
> >   { d2 d4\fermata}
> >   \bar "|."
> > }
>
> If you just type "\time 3/4" at the end for instance, you won't get
> your time signature shown. At least this prodecure is completely
> unintuitive, I think.
>

 A couple of points:

* Is there a reason you are writing " \time 3/4 \set
Staff.timeSignatureFraction = 9/8" and then scaling by 2/3 rather than just
writing "\time 9/8"?
* Why are you writing "\time 3/4  \set Staff.timeSignatureFraction = 3/4"
instead of just "\time 3/4"?
* "\scaleDuractions 1/1 {}" is doing nothing and can be removed.

Applying my suggestions to your music, you get this, which seems to work as
you want it to:

\version "2.24.2"
\language "deutsch"

\relative c''  {
  \time 3/4 c4 c c c2 c4
  \time 3/4 c4 c c c2 c4
  \omit Score.TimeSignature
  \time 3/4 c4 c c c2 c4
  \undo \omit Score.TimeSignature
  \time 3/4 c4 c c c2 c4
  \time 9/8
  \repeat unfold 3 { f8 ( d a ) }
  \repeat unfold 3 {e' ( cis a ) }
  \repeat unfold 3 { f'8 ( d a ) }
  \repeat unfold 3 { g' ( e c ) }
  \repeat unfold 3 {a' ( f c ) }
  \repeat unfold 3 { g' ( e c ) }
  \repeat unfold 3 { f8 ( d a ) }
  \time 3/4
  cis4\trill cis2 d4 d4. c16 d e2 e4 f4 f4. g8 e2 e4 f d d ~ d8 cis d4 d4
  \time 3/4
  d2 d4\fermata
  \bar "|."
}


Re: Force LilyPond to show same time signature again

2024-04-20 Thread Hajo Baess
I have messed around with this little lab specimen here, and I have
found a solution, but it is weird. You obviously (after having scaled
some rhythm just once) have to explicitly unscale the rhythm  e v e r y
time you want it to appear in the staff. I have extended the example
with a short quote from the piece I am typesetting. this is what
obviously works:

> \version "2.24.2"
> \language "deutsch"
> 
> \relative c''  {
>   \time 3/4 c4 c c c2 c4
>   \time 3/4 c4 c c c2 c4
>   \omit Score.TimeSignature
>   \time 3/4 c4 c c c2 c4
>   \undo \omit Score.TimeSignature
>   \time 3/4 c4 c c c2 c4
>   \time 3/4 \set Staff.timeSignatureFraction = 9/8
>   \scaleDurations 2/3 {
>   \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 {
> e' ( cis a ) } \repeat unfold 3 { f'8 ( d a ) }
>   \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 {
> a' ( f c ) } \repeat unfold 3 { g' ( e c ) }
>   \repeat unfold 3 { f8 ( d a ) }
>   } %\override Score.TimeSignature.stencil = ##f
>   \time 3/4  \set Staff.timeSignatureFraction = 3/4
>   \scaleDurations 1/1
>   {
>   cis4\trill cis2 d4 d4. c16 d e2 e4 f4 f4. g8 e2 e4 f
> d d ~ d8 cis d4 d4
>   }
>   \time 3/4 \set Staff.timeSignatureFraction = 3/4
>   \scaleDurations 1/1
>   { d2 d4\fermata}
>   \bar "|."
> }

If you just type "\time 3/4" at the end for instance, you won't get
your time signature shown. At least this prodecure is completely
unintuitive, I think.

Am Samstag, dem 20.04.2024 um 14:02 -0700 schrieb Knute Snortum:
> On Sat, Apr 20, 2024 at 1:32 PM Hajo Baess  wrote:
> 
> > What you suggest sounds all so common-sense, but LilyPond still
> > does
> > not get it...
> > If I implant "\omit Score.TimeSignature" and "\undo \omit
> > Score.TimeSignature" into my code instead of the previous commands,
> > I
> > get this - see screenshot.
> > 
> > But if I do something really basic like:
> > 
> > \version "2.24.2"
> > \language "deutsch"
> > 
> > \relative c''  {
> >     \time 3/4 c4 c c c2 c4
> >     \time 3/4 c4 c c c2 c4
> >     \omit Score.TimeSignature
> >     \time 3/4 c4 c c c2 c4
> >     \undo \omit Score.TimeSignature
> >     \time 3/4 c4 c c c2 c4
> >     \bar "|."
> > }
> > 
> > it works as expected. It really seems to have something to do with
> > the
> > scaled rhythms - that is my guess.
> > 
> 
> This is where tiny examples (https://lilypond.org/tiny-examples.html)
> are
> important.  Build an example of the problem with as little other
> stuff as
> possible.  It's difficult sometimes, but it will sometimes lead you
> to an
> answer, and it certainly helps anyone trying to assist you.
> 
> 
> --
> Knute Snortum
> 
> 
> 
> 
> --
> Knute Snortum
> 
> 
> 
> 
> --
> Knute Snortum
> 
> 
> 
> 
> --
> Knute Snortum



Re: Force LilyPond to show same time signature again

2024-04-20 Thread Knute Snortum
On Sat, Apr 20, 2024 at 1:32 PM Hajo Baess  wrote:

> What you suggest sounds all so common-sense, but LilyPond still does
> not get it...
> If I implant "\omit Score.TimeSignature" and "\undo \omit
> Score.TimeSignature" into my code instead of the previous commands, I
> get this - see screenshot.
>
> But if I do something really basic like:
>
> \version "2.24.2"
> \language "deutsch"
>
> \relative c''  {
> \time 3/4 c4 c c c2 c4
> \time 3/4 c4 c c c2 c4
> \omit Score.TimeSignature
> \time 3/4 c4 c c c2 c4
> \undo \omit Score.TimeSignature
> \time 3/4 c4 c c c2 c4
> \bar "|."
> }
>
> it works as expected. It really seems to have something to do with the
> scaled rhythms - that is my guess.
>

This is where tiny examples (https://lilypond.org/tiny-examples.html) are
important.  Build an example of the problem with as little other stuff as
possible.  It's difficult sometimes, but it will sometimes lead you to an
answer, and it certainly helps anyone trying to assist you.


--
Knute Snortum




--
Knute Snortum




--
Knute Snortum




--
Knute Snortum


Re: Force LilyPond to show same time signature again

2024-04-20 Thread Hajo Baess
What you suggest sounds all so common-sense, but LilyPond still does
not get it...
If I implant "\omit Score.TimeSignature" and "\undo \omit
Score.TimeSignature" into my code instead of the previous commands, I
get this - see screenshot.

But if I do something really basic like:

\version "2.24.2"
\language "deutsch"

\relative c''  {
\time 3/4 c4 c c c2 c4
\time 3/4 c4 c c c2 c4
\omit Score.TimeSignature
\time 3/4 c4 c c c2 c4
\undo \omit Score.TimeSignature
\time 3/4 c4 c c c2 c4
\bar "|."
}

it works as expected. It really seems to have something to do with the
scaled rhythms - that is my guess. 

Unfortunately my exact situation is not covered in the NR - at least I
could not find anything.


Am Samstag, dem 20.04.2024 um 06:01 -0700 schrieb Knute Snortum:
> On Sat, Apr 20, 2024 at 4:17 AM Hajo Baess  wrote:
> 
> > If I do this, I get other unwanted results - see screenshot. The
> > problem is that I am switching back and forth between scaled and
> > non-
> > scaled rhythm. And as you will notice, the 6/4 only appears in the
> > piano staff and  n o t   in the top parts. And the 3/4 also does
> > not
> > appear (although I think it should) in the top part like in bars
> > 195
> > and 197...
> > 
> > Is there no simple way to just toggle "\override
> > Score.TimeSignature.stencil = ##f " ?
> > 
> > 
> Simpler than
> 
>   \override Score.TimeSignature.stencil = ##f
>   \override Score.TimeSignature.stencil = ##t
> 
> ?
> 
> You could use
> 
>   \omit Score.TimeSignature
> 
> instead of
> 
>   \override Score.TimeSignature.stencil = ##f
> 
> and use
> 
>   \undo  \omit Score.TimeSignature
> 
> for
> 
>   \override Score.TimeSignature.stencil = ##t
> 
> If you wanted to shorten it more, you could put this at the top of
> your
> file:
> 
>   stopTimeSignature = \omit Score.TimeSignature
>   startTimeSignature = \undo \omit Score.TimeSignature
> 
> 
> Then you could use
> 
>   \stopTimeSignature  \startTimeSignature
> 
> in your file.
> 
> 
> --
> Knute Snortum



Re: Force LilyPond to show same time signature again

2024-04-20 Thread Knute Snortum
On Sat, Apr 20, 2024 at 4:17 AM Hajo Baess  wrote:

> If I do this, I get other unwanted results - see screenshot. The
> problem is that I am switching back and forth between scaled and non-
> scaled rhythm. And as you will notice, the 6/4 only appears in the
> piano staff and  n o t   in the top parts. And the 3/4 also does not
> appear (although I think it should) in the top part like in bars 195
> and 197...
>
> Is there no simple way to just toggle "\override
> Score.TimeSignature.stencil = ##f " ?
>
>
Simpler than

  \override Score.TimeSignature.stencil = ##f
  \override Score.TimeSignature.stencil = ##t

?

You could use

  \omit Score.TimeSignature

instead of

  \override Score.TimeSignature.stencil = ##f

and use

  \undo  \omit Score.TimeSignature

for

  \override Score.TimeSignature.stencil = ##t

If you wanted to shorten it more, you could put this at the top of your
file:

  stopTimeSignature = \omit Score.TimeSignature
  startTimeSignature = \undo \omit Score.TimeSignature


Then you could use

  \stopTimeSignature  \startTimeSignature

in your file.


--
Knute Snortum


Re: Force LilyPond to show same time signature again

2024-04-20 Thread Hajo Baess
If I do this, I get other unwanted results - see screenshot. The
problem is that I am switching back and forth between scaled and non-
scaled rhythm. And as you will notice, the 6/4 only appears in the
piano staff and  n o t   in the top parts. And the 3/4 also does not
appear (although I think it should) in the top part like in bars 195
and 197...

Is there no simple way to just toggle "\override
Score.TimeSignature.stencil = ##f " ?

Am Samstag, dem 20.04.2024 um 11:41 +0100 schrieb Mark Knoop:
> This line:
> 
> \override Score.TimeSignature.stencil = ##f
> 
> means that the time signature will not be displayed (its stencil is
> set
> to false). Either remove it, or if you need it for some other reason,
> prefix with \once.
> 
> Regards,
> 
> Mark
> 
> At 10:13 on 20 Apr 2024, Hajo Baess wrote:
> > This time  w i t h   screenshot attached - sorry about that...
> > Delete
> > the previous one ;-)
> 
> > Unfortunately this does not work - because I have tried exactly
> > this
> > one, and there is no time signature. I attach a screenshot of the
> > passage. My piece is in 3/4, and in the top part in bar 185, I have
> > to
> > do some rhythmical scaling, whereas the other parts continue in
> > 3/4. I
> > could as well have written triplets, of course, to achieve the same
> > musical result, but I wanted to keep the original 'flavor'.
> > I bar 199, for the top part, I want to revert to the original 3/4,
> > but
> > \time 3/4 does not do the trick. It even does not show a time
> > signature
> > which is different from the previous one, although LilyPond
> > typesets it
> > ok. As you will notice, I have set a (nonsensical) 6/4 signature
> > there
> > in all the parts for testing purposes.
> > There must be some other mechanism involved which prevents the time
> > signature from being indicated, but which one?
> 
> > Here's the top part code for the passage in the screenshot:
> 
> > > d2.
> > > \time 3/4 \set Staff.timeSignatureFraction = 9/8
> > > \scaleDurations 2/3 {
> > > \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 { e' ( cis a )
> > > }
> > > \repeat unfold 3 { f'8 ( d a ) }
> > > \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 { a' ( f c ) }
> > > \repeat unfold 3 { g' ( e c ) }
> > > \repeat unfold 3 { f8 ( d a ) }
> > > } 
> > > \override Score.TimeSignature.stencil = ##f \time 3/4 cis4\trill
> > > cis2
> > > \set Staff.timeSignatureFraction = 9/8
> > > \scaleDurations 2/3
> > > \repeat unfold 3 { d8 ( a f ) } \time 3/4 cis'4\trill
> > > cis2
> > > \set Staff.timeSignatureFraction = 9/8
> > > \scaleDurations 2/3 \repeat unfold 3 { d8 ( a f ) }
> > > \time 3/4 e'4 e2 \time 3/4 \set
> > > Staff.timeSignatureFraction
> > > = 9/8
> > > \scaleDurations 2/3
> > > {\repeat unfold 3 { f8 ( c a ) } \repeat unfold 3 { e' (
> > > c g
> > > ) }}
> > > \time 6/4 f8 d' cis4. d8 d2. 
> 
> > Could it have something to do with the scaling applied before?
> 
> 
> > Am Freitag, dem 19.04.2024 um 17:44 -0700 schrieb Knute Snortum:
> > > On Fri, Apr 19, 2024 at 4:31 PM Hajo Baess 
> > > wrote:
> > > 
> > > > Hello all,
> > > > 
> > > > I look for a way to force LilyPond to show the same time
> > > > signature
> > > > again, although there is no change - just as a reminder. I
> > > > could
> > > > not
> > > > find anything in the NR and in the Snippet Repository.
> > > > 
> > > > 
> > > Unless I'm misunderstanding, just repeating the \time should do
> > > it:
> > > 
> > > \version "2.24.3"
> > > \score {
> > >   \new Staff {
> > >     \relative {
> > >   \time 4/4
> > >   \repeat unfold 8 { c'8 } |
> > >   \time 4/4
> > >   \repeat unfold 8 { c8 } |
> > >     }
> > >   }
> > > }
> > > 
> > > 
> > > --
> > > Knute Snortum
> 
> 
> > [2. image/png; Auswahl_081.png]...
> 



Re: Force LilyPond to show same time signature again

2024-04-20 Thread Mark Knoop
This line:

\override Score.TimeSignature.stencil = ##f

means that the time signature will not be displayed (its stencil is set
to false). Either remove it, or if you need it for some other reason,
prefix with \once.

Regards,

Mark

At 10:13 on 20 Apr 2024, Hajo Baess wrote:
> This time  w i t h   screenshot attached - sorry about that... Delete
> the previous one ;-)

> Unfortunately this does not work - because I have tried exactly this
> one, and there is no time signature. I attach a screenshot of the
> passage. My piece is in 3/4, and in the top part in bar 185, I have to
> do some rhythmical scaling, whereas the other parts continue in 3/4. I
> could as well have written triplets, of course, to achieve the same
> musical result, but I wanted to keep the original 'flavor'.
> I bar 199, for the top part, I want to revert to the original 3/4, but
> \time 3/4 does not do the trick. It even does not show a time signature
> which is different from the previous one, although LilyPond typesets it
> ok. As you will notice, I have set a (nonsensical) 6/4 signature there
> in all the parts for testing purposes.
> There must be some other mechanism involved which prevents the time
> signature from being indicated, but which one?

> Here's the top part code for the passage in the screenshot:

>> d2.
>> \time 3/4 \set Staff.timeSignatureFraction = 9/8
>> \scaleDurations 2/3 {
>> \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 { e' ( cis a ) }
>> \repeat unfold 3 { f'8 ( d a ) }
>> \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 { a' ( f c ) }
>> \repeat unfold 3 { g' ( e c ) }
>> \repeat unfold 3 { f8 ( d a ) }
>> } 
>> \override Score.TimeSignature.stencil = ##f \time 3/4 cis4\trill cis2
>> \set Staff.timeSignatureFraction = 9/8
>> \scaleDurations 2/3
>> \repeat unfold 3 { d8 ( a f ) } \time 3/4 cis'4\trill cis2
>> \set Staff.timeSignatureFraction = 9/8
>> \scaleDurations 2/3 \repeat unfold 3 { d8 ( a f ) }
>> \time 3/4 e'4 e2 \time 3/4 \set Staff.timeSignatureFraction
>> = 9/8
>> \scaleDurations 2/3
>> {\repeat unfold 3 { f8 ( c a ) } \repeat unfold 3 { e' ( c g
>> ) }}
>> \time 6/4 f8 d' cis4. d8 d2. 

> Could it have something to do with the scaling applied before?


> Am Freitag, dem 19.04.2024 um 17:44 -0700 schrieb Knute Snortum:
>> On Fri, Apr 19, 2024 at 4:31 PM Hajo Baess  wrote:
>> 
>> > Hello all,
>> > 
>> > I look for a way to force LilyPond to show the same time signature
>> > again, although there is no change - just as a reminder. I could
>> > not
>> > find anything in the NR and in the Snippet Repository.
>> > 
>> > 
>> Unless I'm misunderstanding, just repeating the \time should do it:
>> 
>> \version "2.24.3"
>> \score {
>>   \new Staff {
>>     \relative {
>>   \time 4/4
>>   \repeat unfold 8 { c'8 } |
>>   \time 4/4
>>   \repeat unfold 8 { c8 } |
>>     }
>>   }
>> }
>> 
>> 
>> --
>> Knute Snortum


> [2. image/png; Auswahl_081.png]...

-- 
Mark Knoop



Re: Force LilyPond to show same time signature again

2024-04-20 Thread Hajo Baess
This time  w i t h   screenshot attached - sorry about that... Delete
the previous one ;-)

Unfortunately this does not work - because I have tried exactly this
one, and there is no time signature. I attach a screenshot of the
passage. My piece is in 3/4, and in the top part in bar 185, I have to
do some rhythmical scaling, whereas the other parts continue in 3/4. I
could as well have written triplets, of course, to achieve the same
musical result, but I wanted to keep the original 'flavor'.
I bar 199, for the top part, I want to revert to the original 3/4, but
\time 3/4 does not do the trick. It even does not show a time signature
which is different from the previous one, although LilyPond typesets it
ok. As you will notice, I have set a (nonsensical) 6/4 signature there
in all the parts for testing purposes.
There must be some other mechanism involved which prevents the time
signature from being indicated, but which one?

Here's the top part code for the passage in the screenshot:

> d2.
> \time 3/4 \set Staff.timeSignatureFraction = 9/8
> \scaleDurations 2/3 {
> \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 { e' ( cis a ) }
> \repeat unfold 3 { f'8 ( d a ) }
> \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 { a' ( f c ) }
> \repeat unfold 3 { g' ( e c ) }
> \repeat unfold 3 { f8 ( d a ) }
> } 
> \override Score.TimeSignature.stencil = ##f \time 3/4 cis4\trill cis2
> \set Staff.timeSignatureFraction = 9/8
> \scaleDurations 2/3
> \repeat unfold 3 { d8 ( a f ) } \time 3/4 cis'4\trill cis2
> \set Staff.timeSignatureFraction = 9/8
> \scaleDurations 2/3 \repeat unfold 3 { d8 ( a f ) }
> \time 3/4 e'4 e2 \time 3/4 \set Staff.timeSignatureFraction
> = 9/8
> \scaleDurations 2/3
> {\repeat unfold 3 { f8 ( c a ) } \repeat unfold 3 { e' ( c g
> ) }}
> \time 6/4 f8 d' cis4. d8 d2. 

Could it have something to do with the scaling applied before?


Am Freitag, dem 19.04.2024 um 17:44 -0700 schrieb Knute Snortum:
> On Fri, Apr 19, 2024 at 4:31 PM Hajo Baess  wrote:
> 
> > Hello all,
> > 
> > I look for a way to force LilyPond to show the same time signature
> > again, although there is no change - just as a reminder. I could
> > not
> > find anything in the NR and in the Snippet Repository.
> > 
> > 
> Unless I'm misunderstanding, just repeating the \time should do it:
> 
> \version "2.24.3"
> \score {
>   \new Staff {
>     \relative {
>   \time 4/4
>   \repeat unfold 8 { c'8 } |
>   \time 4/4
>   \repeat unfold 8 { c8 } |
>     }
>   }
> }
> 
> 
> --
> Knute Snortum




Re: Force LilyPond to show same time signature again

2024-04-20 Thread Hajo Baess
Unfortunately this does not work - because I have tried exactly this
one, and there is no time signature. I attach a screenshot of the
passage. My piece is in 3/4, and in the top part in bar 185, I have to
do some rhythmical scaling, whereas the other parts continue in 3/4. I
could as well have written triplets, of course, to achieve the same
musical result, but I wanted to keep the original 'flavor'.
I bar 199, for the top part, I want to revert to the original 3/4, but
\time 3/4 does not do the trick. It even does not show a time signature
which is different from the previous one, although LilyPond typesets it
ok. As you will notice, I have set a (nonsensical) 6/4 signature there
in all the parts for testing purposes.
There must be some other mechanism involved which prevents the time
signature from being indicated, but which one?

Here's the top part code for the passage in the screenshot:

> d2.
> \time 3/4 \set Staff.timeSignatureFraction = 9/8
> \scaleDurations 2/3 {
> \repeat unfold 3 { f8 ( d a ) }  \repeat unfold 3 { e' ( cis a ) }
> \repeat unfold 3 { f'8 ( d a ) }
> \repeat unfold 3 { g' ( e c ) } \repeat unfold 3 { a' ( f c ) }
> \repeat unfold 3 { g' ( e c ) }
> \repeat unfold 3 { f8 ( d a ) }
>   } 
> \override Score.TimeSignature.stencil = ##f \time 3/4 cis4\trill cis2
> \set Staff.timeSignatureFraction = 9/8
>   \scaleDurations 2/3
>   \repeat unfold 3 { d8 ( a f ) } \time 3/4 cis'4\trill cis2
> \set Staff.timeSignatureFraction = 9/8
>   \scaleDurations 2/3 \repeat unfold 3 { d8 ( a f ) }
>   \time 3/4 e'4 e2 \time 3/4 \set Staff.timeSignatureFraction
> = 9/8
>   \scaleDurations 2/3
>   {\repeat unfold 3 { f8 ( c a ) } \repeat unfold 3 { e' ( c g
> ) }}
>   \time 6/4 f8 d' cis4. d8 d2. 

Could it have something to do with the scaling applied before?


Am Freitag, dem 19.04.2024 um 17:44 -0700 schrieb Knute Snortum:
> On Fri, Apr 19, 2024 at 4:31 PM Hajo Baess  wrote:
> 
> > Hello all,
> > 
> > I look for a way to force LilyPond to show the same time signature
> > again, although there is no change - just as a reminder. I could
> > not
> > find anything in the NR and in the Snippet Repository.
> > 
> > 
> Unless I'm misunderstanding, just repeating the \time should do it:
> 
> \version "2.24.3"
> \score {
>   \new Staff {
>     \relative {
>   \time 4/4
>   \repeat unfold 8 { c'8 } |
>   \time 4/4
>   \repeat unfold 8 { c8 } |
>     }
>   }
> }
> 
> 
> --
> Knute Snortum




Re: Force LilyPond to show same time signature again

2024-04-19 Thread Knute Snortum
On Fri, Apr 19, 2024 at 4:31 PM Hajo Baess  wrote:

> Hello all,
>
> I look for a way to force LilyPond to show the same time signature
> again, although there is no change - just as a reminder. I could not
> find anything in the NR and in the Snippet Repository.
>
>
Unless I'm misunderstanding, just repeating the \time should do it:

\version "2.24.3"
\score {
  \new Staff {
\relative {
  \time 4/4
  \repeat unfold 8 { c'8 } |
  \time 4/4
  \repeat unfold 8 { c8 } |
}
  }
}


--
Knute Snortum


Force LilyPond to show same time signature again

2024-04-19 Thread Hajo Baess
Hello all,

I look for a way to force LilyPond to show the same time signature
again, although there is no change - just as a reminder. I could not
find anything in the NR and in the Snippet Repository.

Grateful for any suggestion how to achieve this.