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: simple problem: my first text spanner starts too early?

2024-04-22 Thread Kenneth Wolcott
Thank you Xavier!

You gave me the hint I needed.

I need to specify that the text spanner should start below (not
default, which is above).

Problem solved.

Ken

On Mon, Apr 22, 2024 at 1:18 PM Xavier Scheuer  wrote:
>
> On Mon, 22 Apr 2024 at 21:48, Kenneth Wolcott  
> wrote:
> >
> > Hi;
> >
> >   I've made a simple mistake but I can't figure out what I did wrong.
> >
> > At bar #36 the first text spanner starts. I think that's correct.  But
> > the piano articulation should be a bar earlier? But that also seems
> > correct.  How can all of these three "facts" be true without a
> > contradiction? Perhaps it is a spacing issue that needs to be tweaked?
> >
> > The original pdf, my engraving and the Lilypond source are attached.
>
> Hello,
>
> Your TextSpanner starts at the beginning of bar #37 and is displayed above 
> the staff, that's what you have in your code as well.
> Is there a particular reason why you don't use a DynamicTextSpanner (command 
> \cresc) for these cresc. ?
> And why you put your dynamics in a separate variable but not these textual 
> crescendi ?
> And using a Dynamics context seems an overkill for me in this case (I use 
> them only for PianoStaff-likes).
>
> Kind regards,
> Xavier
>



Re: simple problem: my first text spanner starts too early?

2024-04-22 Thread Xavier Scheuer
On Mon, 22 Apr 2024 at 21:48, Kenneth Wolcott 
wrote:
>
> Hi;
>
>   I've made a simple mistake but I can't figure out what I did wrong.
>
> At bar #36 the first text spanner starts. I think that's correct.  But
> the piano articulation should be a bar earlier? But that also seems
> correct.  How can all of these three "facts" be true without a
> contradiction? Perhaps it is a spacing issue that needs to be tweaked?
>
> The original pdf, my engraving and the Lilypond source are attached.

Hello,

Your TextSpanner starts at the beginning of bar #37 and is displayed above
the staff, that's what you have in your code as well.
Is there a particular reason why you don't use a DynamicTextSpanner
(command \cresc) for these cresc. ?
And why you put your dynamics in a separate variable but not these textual
crescendi ?
And using a Dynamics context seems an overkill for me in this case (I use
them only for PianoStaff-likes).

Kind regards,
Xavier


Re: Mixed ChoirGroup: Solo/Choir

2024-04-22 Thread Johannes A . Roeßler

Thx David, and it's exactly what I'll use it for... Preces :)

Am 22. April 2024 21:41:12 schrieb David Wright :


On Mon 22 Apr 2024 at 18:06:21 (+0200), Johannes Roeßler wrote:

\version "2.24.0"
\score {
  \new ChoirStaff <<
\new Staff {s1 s1 a'1}
\new Staff {s1 s1 a'1}
\new Staff {a'1 a' a'}
\new Staff {s1 s1 a'1}
  >>
  \layout { }
}


I'm guessing this might be an XY question. What I do is to put
the solo into the instrument name. The bare bones are below,
though not an MWE because I haven't included the shortcuts I use.
Here, the solo is a bass, and they have been shrunk a little.

Aintonation = \markup {
 \score {
   \transpose af g
   \new Staff = staff <<
 \Vglobal
 \new Voice { \Acantor }
 \addlyrics \with { alignAboveContext = staff } { \Avtext }
   >>
   \layout { \plainlayout }
 }
 \hspace #5 "B."
}

 \score {
   \transpose af g
   \new ChoirStaff <<
 \new Staff <<
   \labelsoprano
   \clef treble { \Rglobal \Abarring }
   \new Voice { \accident \Asoprano }
   \addlyrics { \Artext }
 >>
 \new Staff <<
   \labelaltoi
   \clef treble \Rglobal
   \new Voice { \accident \Aaltoi }
   \addlyrics { \Artext }
 >>
 \new Staff <<
   \labelaltoii
   \clef treble \Rglobal
   \new Voice { \accident \Aaltoii }
   \addlyrics { \Artext }
 >>
 \new Staff <<
   \labeltenor
   \clef "treble_8" \Rglobal
   \new Voice { \accident \Atenor }
   \addlyrics { \Artextt }
 >>
 \new Staff <<
   \override Staff.InstrumentName.self-alignment-X = #RIGHT
   \set Staff.instrumentName = \Aintonation
   \clef bass \Rglobal
   \new Voice { \accident \Abass }
   \addlyrics { \Artext }
 >>
   >>
   \midi { \miditempo }
   \layout { indent = 70 }
 }

Cheers,
David.




Re: Mixed ChoirGroup: Solo/Choir

2024-04-22 Thread David Wright
On Mon 22 Apr 2024 at 18:06:21 (+0200), Johannes Roeßler wrote:
> \version "2.24.0"
> \score {
>   \new ChoirStaff <<
>     \new Staff {s1 s1 a'1}
>     \new Staff {s1 s1 a'1}
>     \new Staff {a'1 a' a'}
>     \new Staff {s1 s1 a'1}
>   >>
>   \layout { }
> }

I'm guessing this might be an XY question. What I do is to put
the solo into the instrument name. The bare bones are below,
though not an MWE because I haven't included the shortcuts I use.
Here, the solo is a bass, and they have been shrunk a little.

Aintonation = \markup {
  \score {
\transpose af g
\new Staff = staff <<
  \Vglobal
  \new Voice { \Acantor }
  \addlyrics \with { alignAboveContext = staff } { \Avtext }
>>
\layout { \plainlayout }
  }
  \hspace #5 "B."
}

  \score {
\transpose af g
\new ChoirStaff <<
  \new Staff <<
\labelsoprano
\clef treble { \Rglobal \Abarring }
\new Voice { \accident \Asoprano }
\addlyrics { \Artext }
  >>
  \new Staff <<
\labelaltoi
\clef treble \Rglobal
\new Voice { \accident \Aaltoi }
\addlyrics { \Artext }
  >>
  \new Staff <<
\labelaltoii
\clef treble \Rglobal
\new Voice { \accident \Aaltoii }
\addlyrics { \Artext }
  >>
  \new Staff <<
\labeltenor
\clef "treble_8" \Rglobal
\new Voice { \accident \Atenor }
\addlyrics { \Artextt }
  >>
  \new Staff <<
\override Staff.InstrumentName.self-alignment-X = #RIGHT
\set Staff.instrumentName = \Aintonation
\clef bass \Rglobal
\new Voice { \accident \Abass }
\addlyrics { \Artext }
  >>
>>
\midi { \miditempo }
\layout { indent = 70 }
  }

Cheers,
David.


Re: Mixed ChoirGroup: Solo/Choir

2024-04-22 Thread Timothy Lanfear

On 22/04/2024 17:06, Johannes Roeßler wrote:

I'd like to achieve this:

Any ideas?


This is close to your picture

\version "2.24.2"

\new StaffGroup <<
  \new Staff="staffa" { a'1 1
    \once \override Score.BreakAlignment.break-align-orders = 
#(make-vector 3 '(staff-bar clef key-signature time-signature))

    \bar ".|"
    <<
  \new Staff \with { alignAboveContext = "staffa" } { c''1 }
  \new Staff \with { alignAboveContext = "staffa" } { b'1  }
  \context Staff="staffa" { \clef "treble" \time 4/4 \key g\major a'1 }
  \new Staff \with { alignBelowContext = "staffa" } { g'1 }
    >>
  }
>>


--
Timothy Lanfear, Bristol, UK.


Mixed ChoirGroup: Solo/Choir

2024-04-22 Thread Johannes Roeßler

Hi Group,

having this:

\version "2.24.0"
\score {
  \new ChoirStaff <<
    \new Staff {s1 s1 a'1}
    \new Staff {s1 s1 a'1}
    \new Staff {a'1 a' a'}
    \new Staff {s1 s1 a'1}
  >>
  \layout { }
}

I'd like to achieve this:

Any ideas?

Best regards
Johannes


--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com

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: (No subject)

2024-04-22 Thread Gian Paolo Renello
Thank you for this example which explains me lot of things. Also I found the solution with the model Aikema proposed, that is  when you write the music voices (soprano, alto or what else in another part of the file you should give them the same name of the new voice you write in the \score part. I didn't noticed this before, that's why i couldn't see the soprano texts My socre has 2 voices soprano voices as well alto tenor and bass. So is : soprano = \relative c'' {    \global    % Qui segue la musica.    <<        \new Voice  = "sopranoVoice" {            \voiceOne            a2^\p^\< (b4 c|         % m1            %\override Hairpin.to-barline = ##f            d4) c\! b^\>  a |     % m2            a1  |            % m3            a\! |            % m4            \override Hairpin.to-barline = ##fetc. .. and then in the \score part:  \score{    \new StaffGroup <<        \new Staff = "sopranoStaff" \with {            midiInstrument = "choir aahs"            instrumentName = "Soprani"        } { \soprano }      \new Lyrics \with { alignAboveContext = "sopranoStaff" } { \lyricsto "sopranoVoice" \sopranoVerse_sup }    \new Lyrics \lyricsto "sopranoVoice" \sopranoVerse_ru    \new Lyrics \lyricsto "sopranoVoice" \sopranoVerse . Now i learned two ways of achieving this goal. Thank you all again  Gian Paolo22.04.2024, 05:19, "David Wright" :On Sun 21 Apr 2024 at 18:45:35 (+0200), Hans Aikema wrote: > On 21 Apr 2024, at 17:58, Gian Paolo Renello wrote: >  > I read as you suggested but didn't find the way. Here is hte piece of score code: >   > \score{ > \new StaffGroup << > \new Staff \with { > midiInstrument = "choir aahs" > instrumentName = "Soprani" > } { \soprano } > \addlyrics {\sopranoVerse_sup} > \addlyrics { \sopranoVerse_ru } > \addlyrics { \sopranoVerse } >    You can’t use the \addlyrics shortcut when you want to place the lyrics above the staff. You’ll have to use the \new Lyrics construct (as shown in the notation manual) for those lyrics.I have no problem using \addlyrics above the staff. The attachedshows an example, with verses 1 and 2 aligned to the soprano,and verses 3, 4 and 5 to the alto, tenor and bass respectively.(You wouldn't do it like this for a strophic hymn, but if you excludeverse 2, it illustrates a layout for a 4-part non-homophonic composition.) \addlyrics is very limited in customisation power, it’s a shorthand for creating the new Lyrics to the preceding voice (the music in between the braces ( {\soprano} ) implicitly creates an unnamed voice.But its placement can refer to the staves, as you appeared to say earlier: > The preferred way is by coding the '\with { alignAboveContext = “” }` to the Lyrics assigned to the Solo in your piece.Cheers,David.