> 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 <[email protected]> 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 "|."
> }


Reply via email to