Re: FW: Cautionary Time Signature

2024-05-05 Thread Timothy Lanfear

On 05/05/2024 08:17, jsmcwill...@gmail.com wrote:
I enclose a snippet illustrating two problems I am trying to resolve 
in a piece containing a melody followed by a Trio section:


 1. There is a key signature change before going into the Trio and I
cannot get the cautionary signature, which normally

occurs at the end of a line, to show up properly. The background staff 
is missing.


 2. I want to have a indentation at the beginning of the Trio matching
the indentation seen at the beginning of the piece.



1. By adding a short spacer rest after the key signature.

2. By putting the sections into two scores with an indented first line.

\version "2.24.0"

\header {
  title = "Shortened Lines"
  composer = "John McWilliam"
  copyright = "Kopierad av John McWilliam. PMRS 2024"
}

clarinet = \relative c'' {
  \key f \major
  \numericTimeSignature
  \time 2/4

   bes'8 -\f  bes8  bes8  bes8 | % 2
   bes8  bes8  bes8  bes8 | % 3
   a4 -> -\<  bes4 -> | % 4
   a8 -. -\! r8 r8  d,16 -\p  cis16 | %5

  \bar "||"
  \key es \major \grace s4
  \once \omit Score.BarLine
  \once \override Score.JumpScript.X-offset = #4
  \once \override Score.JumpScript.Y-offset = #-6
  \jump \markup \huge "D.S. al Fine poi Trio"
}

% Continue on new line but with indent matching the above and if 
possible with the section heading TRIO in

% that space:

trio = \relative c'' {
  \section
  \sectionLabel \markup \bold "Trio"

  \time 2/4
  \key es \major
  g'8 -> -\f r8  g8 -. r8 | % 6
  g8 -. r8 r4
  \fine
}

\bookpart {
  \score { \clarinet }
  \score { \trio }
}

--

Timothy Lanfear, Bristol, UK.


FW: Cautionary Time Signature

2024-05-05 Thread jsmcwilliam
 

 

From: jsmcwill...@gmail.com  
Sent: den 5 maj 2024 09:15
To: lilypond-user@gnu.org
Subject: Cautionary Time Signature

 

Firstly, I have reregistered since the support forum does not recognise my
credentials!

I enclose a snippet illustrating two problems I am trying to resolve in a
piece containing a melody followed by a Trio section:

1.  There is a key signature change before going into the Trio and I
cannot get the cautionary signature, which normally 

occurs at the end of a line, to show up properly. The background staff is
missing.

2.  I want to have a indentation at the beginning of the Trio matching
the indentation seen at the beginning of the piece.

 

I hope some kind expert can help me resolve this.

 

John McWilliam



Shortened_lines_2.ly
Description: Binary data


Cautionary Time Signature

2024-05-05 Thread jsmcwilliam
Firstly, I have reregistered since the support forum does not recognise my
credentials!

I enclose a snippet illustrating two problems I am trying to resolve in a
piece containing a melody followed by a Trio section:

1.  There is a key signature change before going into the Trio and I
cannot get the cautionary signature, which normally 

occurs at the end of a line, to show up properly. The background staff is
missing.

2.  I want to have a indentation at the beginning of the Trio matching
the indentation seen at the beginning of the piece.

 

I hope some kind expert can help me resolve this.

 

John McWilliam



Shortened_lines_2.ly
Description: Binary data


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.



Re: Articulate has trouble with grace note at time signature change

2023-11-24 Thread Werner LEMBERG


>> Please check the looong list of bugs related to `\articulate`
>> whether it has already been reported.
> 
> Seems to be #3696, reported - by you - in 2013.

D'oh :-)


Werner



Re: Articulate has trouble with grace note at time signature change

2023-11-22 Thread Knute Snortum
On Wed, Nov 22, 2023 at 12:09 PM Werner LEMBERG  wrote:

>
> > This fails in 2.24.1 with messages about mid-measure time signature
> > change and failed barcheck:
> >
> > \include "articulate.ly"
> > \articulate
> > {
> >   \time 4/4
> >   c'1 |
> >   \time 3/2
> >   \grace d'8 c'1. |
> > }
> >
> > Succeeds if \articulate is not used.  I can work around it by
> > tagging MIDI and non-MIDI versions of the music, with the time
> > signature change moved somewhere else in the MIDI version, but this
> > becomes complicated given that my actual score has eight parallel
> > variables at the point where it bites, all of which will need
> > alternate versions.
>
> Please check the looong list of bugs related to `\articulate` whether
> it has already been reported.
>
>
> https://gitlab.com/lilypond/lilypond/-/issues/?sort=created_asc=opened=articulate_page_size=100


It looks like this issue:

https://gitlab.com/lilypond/lilypond/-/issues/3696

For some reason, it's been changed from a defect to a warning issue, but
I'm not sure the logic for that is correct.


--
Knute Snortum


Re: Articulate has trouble with grace note at time signature change

2023-11-22 Thread mskala
On Wed, 22 Nov 2023, Werner LEMBERG wrote:

> Please check the looong list of bugs related to `\articulate` whether
> it has already been reported.

Seems to be #3696, reported - by you - in 2013.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/



Re: Articulate has trouble with grace note at time signature change

2023-11-22 Thread Werner LEMBERG


> This fails in 2.24.1 with messages about mid-measure time signature
> change and failed barcheck:
> 
> \include "articulate.ly"
> \articulate
> {
>   \time 4/4
>   c'1 |
>   \time 3/2
>   \grace d'8 c'1. |
> }
> 
> Succeeds if \articulate is not used.  I can work around it by
> tagging MIDI and non-MIDI versions of the music, with the time
> signature change moved somewhere else in the MIDI version, but this
> becomes complicated given that my actual score has eight parallel
> variables at the point where it bites, all of which will need
> alternate versions.

Please check the looong list of bugs related to `\articulate` whether
it has already been reported.

  
https://gitlab.com/lilypond/lilypond/-/issues/?sort=created_asc=opened=articulate_page_size=100


Werner



Articulate has trouble with grace note at time signature change

2023-11-22 Thread mskala
This fails in 2.24.1 with messages about mid-measure time signature
change and failed barcheck:

\include "articulate.ly"
\articulate
{
  \time 4/4
  c'1 |
  \time 3/2
  \grace d'8 c'1. |
}

Succeeds if \articulate is not used.  I can work around it by tagging MIDI
and non-MIDI versions of the music, with the time signature change moved
somewhere else in the MIDI version, but this becomes complicated given
that my actual score has eight parallel variables at the point where it
bites, all of which will need alternate versions.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/



Re: petrucci style notehead for MetronomeMark, plus Piae Cantiones style G clef and time signature

2023-11-14 Thread Jeff Olson

Sorry it's taken a couple of days to answer.

On 11/12/2023 7:23 PM, Jon Arnold wrote:

I'm into this!
Cool!  Have you done Gaudete?  If so, where did you get the music for 
the verses?  I wound up writing my own in Dorian to match the chorus, 
but Steeleye Span (https://www.youtube.com/watch?v=EDc2FD-vy8M) did 
theirs in Aeolian (with a flatted sixth), if I'm not mistaken.  
Wikipedia (https://en.wikipedia.org/wiki/Gaudete) says "the standard 
tune comes from older liturgical books" but gives no reference and I 
haven't found any other PD sources (the two on 
https://imslp.org/wiki/Gaudete%2C_Christus_est_natus_(Anonymous) are 
both SA and not authoritative, and also Aeolian).




1) Not sure on this one- you need to override the notehead in a \note 
{2} markup somehow since there's not a dedicated glyph for that.
May study this more.  For now I'm using \tempo 2.=72 to help indicate 
what gets one beat.  I also use modern dotted halves in the music rather 
than expecting my modern readers to understand imperfection and 
alteration implicit in the original.


2) I think that's as close as you get with Emmantaler. You can see the 
list of clefs here: 
https://lilypond.org/doc/v2.24/Documentation/notation/clef-style
That's what I feared.  I'd never seen a petrucci-g clef before, so I 
even tried the more common petrucci-c1 and moved it down to modern 
middle C, but now I'm back to petrucci-g.  I'm still hoping I can 
simulate the G clef symbol in Piae Cantiones.  Have you seen petrucci-g 
clefs in real music?



3) \override Staff.TimeSignature.style = #'single-digit
Didn't like this look (it's modern, not mensural).   Instead I omit the 
time signature altogether.




Hope I don't annoy you by adding other things but:

Not at all!  Thanks.

1) there are two semibreve (quarter note in your edition) rests at the 
beginning of the line if you haven't seen them
Thank you for mentioning that!  I totally misinterpreted those marks as 
modifiers of the time signature.  I have now included quarter rests in 
mensural style, as it helps the reader understand that the first note is 
not on the downbeat but is a pickup.


2) consider adding the custos engraver to your staff context like you 
did with the ambitus: \consists "Custos_engraver" \override 
Custos.style = #'mensural
Considered it already but didn't want to stress my modern readers with 
an unfamiliar benefit.




On Sun, Nov 12, 2023 at 5:24 PM Jeff Olson  wrote:

My questions ...

1)  How to get petrucci style note head in the tempo indication?

2)  Where to get the G clef as used in Piae Cantiones?

    3)  How to get the time signature as used in Piae Cantiones?


Thanks again, Jon!

Jeff


Re: petrucci style notehead for MetronomeMark, plus Piae Cantiones style G clef and time signature

2023-11-12 Thread Jon Arnold
I'm into this!

1) Not sure on this one- you need to override the notehead in a \note {2}
markup somehow since there's not a dedicated glyph for that.
2) I think that's as close as you get with Emmantaler. You can see the list
of clefs here:
https://lilypond.org/doc/v2.24/Documentation/notation/clef-style
3) \override Staff.TimeSignature.style = #'single-digit

Hope I don't annoy you by adding other things but:
1) there are two semibreve (quarter note in your edition) rests at the
beginning of the line if you haven't seen them
2) consider adding the custos engraver to your staff context like you did
with the ambitus: \consists "Custos_engraver" \override Custos.style =
#'mensural

On Sun, Nov 12, 2023 at 5:24 PM Jeff Olson  wrote:

> This is my first time using quasi-mensural notation for modern notation
> readers (going for medieval look, not historical accuracy).
>
> If you haven't gagged at that, I'd like some help on a few items.
>
> Here's how the original starts ... (IMSLP260656 p48)
> [image: InDulciJubilo1910]
>
> And this is my approximation so far (using more familiar note durations)
> ...
> [image: MWE-mensural.png]
>
> My MWE-mensural.ly so far ... (constrained to overrides in my Voice
> variable vs new MensuralStaff)
>
> \version "2.24.0"
> vexDUMa = \transpose c c' {
>   \tempo 2=100
>   \time 6/8
>   \override Staff.TimeSignature.style = #'mensural
>   \clef "petrucci-g"
>   \override NoteHead.style = #'petrucci
>   \override Staff.MetronomeMark.style = #'petrucci
>   \override Staff.AmbitusNoteHead.style = #'petrucci
>   \cadenzaOn
>   c4\(  c2 c4 e2 f4   g2 a4 g2\) \bar "," %1
>   g4\(  c2 c4 e2 f4   g2 a4 g2.\) \breathe \bar "," %2
>   \bar "||"
> }
> \score {
>   { \vexDUMa }
>   \layout { \context { \Staff \consists "Ambitus_engraver" }}
> }
>
> My questions ...
>
> 1)  How to get petrucci style note head in the tempo indication?
>
> 2)  Where to get the G clef as used in Piae Cantiones?
>
> 3)  How to get the time signature as used in Piae Cantiones?
>
> TIA,
> Jeff
>
>
>
>


petrucci style notehead for MetronomeMark, plus Piae Cantiones style G clef and time signature

2023-11-12 Thread Jeff Olson
This is my first time using quasi-mensural notation for modern notation 
readers (going for medieval look, not historical accuracy).


If you haven't gagged at that, I'd like some help on a few items.

Here's how the original starts ... (IMSLP260656 p48)

InDulciJubilo1910

And this is my approximation so far (using more familiar note durations) ...

MWE-mensural.png

My MWE-mensural.ly so far ... (constrained to overrides in my Voice 
variable vs new MensuralStaff)


\version "2.24.0"
vexDUMa = \transpose c c' {
  \tempo 2=100
  \time 6/8
  \override Staff.TimeSignature.style = #'mensural
  \clef "petrucci-g"
  \override NoteHead.style = #'petrucci
  \override Staff.MetronomeMark.style = #'petrucci
  \override Staff.AmbitusNoteHead.style = #'petrucci
  \cadenzaOn
  c4\(  c2 c4 e2 f4   g2 a4 g2\) \bar "," %1
  g4\(  c2 c4 e2 f4   g2 a4 g2.\) \breathe \bar "," %2
  \bar "||"
}
\score {
  { \vexDUMa }
  \layout { \context { \Staff \consists "Ambitus_engraver" }}
}

My questions ...

1)  How to get petrucci style note head in the tempo indication?

2)  Where to get the G clef as used in Piae Cantiones?

3)  How to get the time signature as used in Piae Cantiones?

TIA,
Jeff


\version "2.24.0"
vexDUMa = \transpose c c' {
  \tempo 2=100
  \time 6/8
  \override Staff.TimeSignature.style = #'mensural
  \clef "petrucci-g"
  \override NoteHead.style = #'petrucci
  \override Staff.MetronomeMark.style = #'petrucci
  \override Staff.AmbitusNoteHead.style = #'petrucci
  \cadenzaOn
  c4\(  c2 c4 e2 f4   g2 a4 g2\) \bar "," %1
  g4\(  c2 c4 e2 f4   g2 a4 g2.\) \breathe \bar "," %2
  \bar "||"
}
\score { 
  { \vexDUMa }
  \layout { \context { \Staff \consists "Ambitus_engraver" }}
}

Re: Alternating time signature with cue clef

2023-09-28 Thread Michael Werner
On Wed, Sep 27, 2023 at 12:59 PM Knute Snortum  wrote:

> On Tue, Sep 26, 2023 at 11:25 PM Michael Werner 
> wrote:
>
>> Hi Knute,
>>
>> On Tue, Sep 26, 2023 at 3:27 PM Knute Snortum  wrote:
>>
>>> TL;DR
>>> How do I engrave an alternating time signature and an initial cue clef?
>>>
>>> [snip]
>
>>
>> What about using a CueVoice, resetting sizes back to default? It seems to
>> work both visually and listening to the midi produced. I've attached some
>> code that engraves the first 7 measures of the Scriabin piece. Within the
>> CueVoice I did have to explicitly set the slur, stem and articulation
>> directions - apparently CueVoice either overrides or ignores voiceOne and
>> voiceTwo settings in those regards. Quite likely there are better ways to
>> go about this, but maybe this can at least get something going.
>> --
>> Michael
>>
>>
> Thanks Michael for your work on my problem.  I'm impressed that you
> figured out the prelude I was working on and wrote out two staves worth of
> music!
>

You're quite welcome. It was a welcome change from the old time folk /
Appalachian and Irish traditional I've been working with recently.


> I think I did myself a disservice by calling what I want a "cue clef".
>

Yeah, that kinda threw me. I have a bad tendency to get too focused on an
idea instead of stepping back to look at the wider view. Been trying to
break myself of that. Still needs work. Ah well.


>   I believe what I want is a "change clef" -- it's bigger than a cue clef
> but smaller than a regular clef.  It's what you get when you engrave this
> snippet:
>
> { c'4 4 4 4 | \clef bass 4 4 4 4 }
>
> ...or in markup:
>
> \markup \musicglyph "clefs.F_change"
>

Anyway, the good news here is I think I might have cracked it, with a bit
of help from the LSR. But a different entry than you found - the one that
seems to have gotten me there is https://lsr.di.unimi.it/LSR/Item?id=956
I've attached an updated version - the F clef at the beginning of the first
measure is noticeably bigger than the original I posted yesterday.
Yesterday's is on the left, the updated version on the right.
[image: image.png]

Short version - the magic ingredient seems to be a hidden grace note right
at the beginning.
-- 
Michael
\version "2.24.2"
\language "english"

%%% Alternating time 
#(define ((time-alternate-time upa downa upb downb) grob)
   (grob-interpret-markup grob
  (markup #:override '(baseline-skip . 0) #:number
  (#:line (
(#:center-column (upa downa))
(#:center-column (upb downb)))

\header {
  title = "Twenty-Four Préludes"
  composer = "Alexander Scriabin"
}

upperUpper = \relative {
  \key bf \minor
  \clef treble
  \partial 8
  %% This technique courtesy of https://lsr.di.unimi.it/LSR/Item?id=956
  %%  Use a hidden grace note:
  \once\hideNotes\grace c64
  %%  Adjust the clef spacing:
  %\once\override Staff.Clef.X-extent = #'(1 . 2)
  %%  Put in the clef:
  \clef F
  r8^\markup { \italic \small "sotto voce" } | bf'4.-- bf8.-- bf16-- | bf4.-- r8 | df4. df8. df16 | df4. r8 |
  f4.( f8) r8 | e4.( e8)
  \clef treble
  r8 | f4. r4
}

upperLower = \relative {
  \key bf \minor
  \clef treble
  \partial 8
  %%  Use a hidden grace note:
  \once\hideNotes\grace c64
  %%  Adjust the clef spacing:
  %\once\override Staff.Clef.X-extent = #'(1 . 2)
  %%  Put in the clef:
  \clef F
  \tuplet 3/2 { bf16( c16 ef16 } | bf'8[ af ef gf df] | f[ c df]) \tuplet 3/2 {bf16( df16  gf16 } |
  df'8[ c gf bf f] | gf[ ef df]) \tuplet 3/2 { df16( gf16 bf16 } |
  f'8[ ef bf df]) \tuplet 3/2 { c,16( gf'16 bf16 } | e8[ df bf c])
  \clef treble
  \tuplet 3/2 { f,16( a16 df16 } | f8[ ef c df bf])
}

lowerUpper = \relative {
  \key bf \minor
  \clef F
  \voiceOne
  \partial 8
  \once\hideNotes\grace c64
  r8
  bf4.-- bf8.-- bf16-- | bf4.-- r8 | df4. df8. df16 | df4. r8 |
  f4.( f8) r8 | e4.( e8) r8 | f4. r4
}

lowerLower = \relative {
  \key bf \minor
  \clef F
  \voiceTwo
  \partial 8
  \once\hideNotes\grace c64
  \tuplet 3/2 { bf,16(_\markup { \small "una corda" } c16 ef16 } | bf'8[ af ef gf df] | f[ c df)] \tuplet 3/2 { bf16( df16 gf16 } |
  df'8[ c gf bf f] | gf[ ef df]) \tuplet 3/2 { df16( gf16 bf16 } | f'8[ ef bf df)] \tuplet 3/2 { c,16( gf'16 bf16 } |
  ef8[ df bf c]) \tuplet 3/2 { f,16( a16 df16 } | f8[ ef c df bf])
}

timeSignatures = {
  \override Score.TimeSignature.stencil = #(time-alternate-time "5" "8" "4" "8")
  \time 5/8
  \partial 8 \once\hideNotes\grace s64
  s8
  \override Score.TimeSignature.stencil = ##f
  \time 5/8 s4. s4 | \time 4/8 s2 | \time 5/8

Re: Alternating time signature with cue clef

2023-09-27 Thread Knute Snortum
On Tue, Sep 26, 2023 at 11:25 PM Michael Werner  wrote:

> Hi Knute,
>
> On Tue, Sep 26, 2023 at 3:27 PM Knute Snortum  wrote:
>
>> TL;DR
>> How do I engrave an alternating time signature and an initial cue clef?
>>
>> [snip]

>
> What about using a CueVoice, resetting sizes back to default? It seems to
> work both visually and listening to the midi produced. I've attached some
> code that engraves the first 7 measures of the Scriabin piece. Within the
> CueVoice I did have to explicitly set the slur, stem and articulation
> directions - apparently CueVoice either overrides or ignores voiceOne and
> voiceTwo settings in those regards. Quite likely there are better ways to
> go about this, but maybe this can at least get something going.
> --
> Michael
>
>
Thanks Michael for your work on my problem.  I'm impressed that you figured
out the prelude I was working on and wrote out two staves worth of music!

I think I did myself a disservice by calling what I want a "cue clef".  I
believe what I want is a "change clef" -- it's bigger than a cue clef but
smaller than a regular clef.  It's what you get when you engrave this
snippet:

{ c'4 4 4 4 | \clef bass 4 4 4 4 }

...or in markup:

\markup \musicglyph "clefs.F_change"

--
Knute Snortum


Re: Alternating time signature with cue clef

2023-09-27 Thread Michael Werner
Hi Knute,

On Tue, Sep 26, 2023 at 3:27 PM Knute Snortum  wrote:

> TL;DR
> How do I engrave an alternating time signature and an initial cue clef?
>
> Scriabin has a prelude where he has written a time signature as
> alternating 5/8 and 4/8 time.  After the initial one, no other time
> signatures are written. I have figured out a way to engrave this with help
> from a LSR entry.
>
> Also, the first notes in the right hand are in bass clef.  I want to
> engrave the initial clef in the right hand as treble, then after the time
> signature have a cue bass clef.  Lukas-Fabian Moser wrote a solution for
> that (thanks!)
>
> The problem is those two solutions don't work together. (Looking at them,
> I can see why they wouldn't.)  I am not clever enough to merge the two
> solutions or think of a third.  Can anyone help me?
>
> I've attached a screenshot of what I'm trying to engrave.  Also attached
> is my attempt to use the two solutions, but without success.
>

What about using a CueVoice, resetting sizes back to default? It seems to
work both visually and listening to the midi produced. I've attached some
code that engraves the first 7 measures of the Scriabin piece. Within the
CueVoice I did have to explicitly set the slur, stem and articulation
directions - apparently CueVoice either overrides or ignores voiceOne and
voiceTwo settings in those regards. Quite likely there are better ways to
go about this, but maybe this can at least get something going.
-- 
Michael
\version "2.24.2"
\language "english"

%%% Alternating time 
#(define ((time-alternate-time upa downa upb downb) grob)
   (grob-interpret-markup grob
  (markup #:override '(baseline-skip . 0) #:number
  (#:line (
(#:center-column (upa downa))
(#:center-column (upb downb)))

\header {
  title = "Twenty-Four Préludes"
  composer = "Alexander Scriabin"
}

upperUpper = \relative {
  \key bf \minor
  \new CueVoice {
\set fontSize = #0
\override Beam.length-fraction = #1
\override Stem.length-fraction = #1
\override Beam.beam-thickness = #0.48
\override Script.direction = #UP
\cueClef "bass"
\stemUp
\slurUp
\partial 8 r8^\markup { \italic \small "sotto voce" } | bf4.-- bf8.-- bf16-- | bf4.-- r8 | df4. df8. df16 | df4. r8 |
f4.( f8) r8 | e4.( e8)
\cueClefUnset
  } % End CueVoice
  r8 | f4. r4
}

upperLower = \relative {
  \key bf \minor
  \new CueVoice {
\set fontSize = #0
\override Beam.length-fraction = #1
\override Stem.length-fraction = #1
\override Beam.beam-thickness = #0.48
\override Script.direction = #DOWN
\cueClef "bass"
\stemDown
\slurDown
\partial 8 \tuplet 3/2 { bf,16( c16 ef16 } | bf'8[ af ef gf df] | f[ c df]) \tuplet 3/2 {bf16( df16  gf16 } |
df'8[ c gf bf f] | gf[ ef df]) \tuplet 3/2 { df16( gf16 bf16 } |
f'8[ ef bf df]) \tuplet 3/2 { c,16( gf'16 bf16 } | e8[ df bf c])
\cueClefUnset
  } % End CueVoice
  \tuplet 3/2 { f,16( a16 df16 } | f8[ ef c df bf])
}

lowerUpper = \relative {
  \key bf \minor
  \clef bass
  \voiceOne
  \partial 8 r8
  bf,4.-- bf8.-- bf16-- | bf4.-- r8 | df4. df8. df16 | df4. r8 |
  f4.( f8) r8 | e4.( e8) r8 | f4. r4
}

lowerLower = \relative {
  \key bf \minor
  \clef bass
  \voiceTwo
  \partial 8 \tuplet 3/2 { bf,,16(_\markup { \small "una corda" } c16 ef16 } | bf'8[ af ef gf df] | f[ c df)] \tuplet 3/2 { bf16( df16 gf16 } |
  df'8[ c gf bf f] | gf[ ef df]) \tuplet 3/2 { df16( gf16 bf16 } | f'8[ ef bf df)] \tuplet 3/2 { c,16( gf'16 bf16 } |
  ef8[ df bf c]) \tuplet 3/2 { f,16( a16 df16 } | f8[ ef c df bf])
}

timeSignatures = {
  \override Score.TimeSignature.stencil = #(time-alternate-time "5" "8" "4" "8")
  \time 5/8
  \partial 8 s8
  \override Score.TimeSignature.stencil = ##f
  \time 5/8 s4. s4 | \time 4/8 s2 | \time 5/8 s4. s4 | \time 4/8 s2 | \time 5/8 s4. s4 | \time 5/8 s4. s4 |
  \time 5/8 s4. s4
}

dynamicMarks = {
  \override DynamicTextSpanner.style = #'none
  \partial 8 s8\p s4. s4 s2  s4. s4 s2 s8-\cresc s2 s4. s4 s8-\dim s2\!
}

\score {
  \new PianoStaff <<
\new Staff
<<
\tempo  \markup { Misterioso \rhythm { { 8 } }  = 160-168 }
  \mergeDifferentlyHeadedOn
  \mergeDifferentlyDottedOn
  \new Voice = "upperUpper" {
\relative {
  \voiceOne
  \upperUpper
}
  }
  \new Voice = "upperLower" {
\relative {
  \voiceTwo
  \upperLower
}
  }
>>
\new Dynamics {
  \dynamicMarks
}
\new Staff
<<
  \mergeDifferentlyHeadedOn
  \mergeDifferentlyDottedOn
  \new Voice {
\lowerUpper
  }
  \new Voice {
\lowerLower
  }
>>
\new Devnull \timeSignatures
  >>
  \layout {
  }
  \midi {
  }
}


Alternating time signature with cue clef

2023-09-26 Thread Knute Snortum
TL;DR
How do I engrave an alternating time signature and an initial cue clef?

Scriabin has a prelude where he has written a time signature as alternating
5/8 and 4/8 time.  After the initial one, no other time signatures are
written. I have figured out a way to engrave this with help from a LSR
entry.

Also, the first notes in the right hand are in bass clef.  I want to
engrave the initial clef in the right hand as treble, then after the time
signature have a cue bass clef.  Lukas-Fabian Moser wrote a solution for
that (thanks!)

The problem is those two solutions don't work together. (Looking at them, I
can see why they wouldn't.)  I am not clever enough to merge the two
solutions or think of a third.  Can anyone help me?

I've attached a screenshot of what I'm trying to engrave.  Also attached is
my attempt to use the two solutions, but without success.

--
Knute Snortum
\version "2.24.2"

%%% Set queing bass clef after initial treble clef

% Append markup in the text property to the grob
#(define (append-markup grob old-stencil)
  (ly:stencil-combine-at-edge
old-stencil X RIGHT (ly:text-interface::print grob)))

trebleToBass = {
  \clef bass
  % Fake staff clef appearance
  \once \override Staff.Clef.glyph-name = "clefs.G"
  \once \override Staff.Clef.Y-offset = -1
  % Make sure any key signatures will printed with respect to
  % correct middle c position expected for treble clef
  \once \set Staff.middleCClefPosition = -6
  % Append change clef to the time signature
  \once \override Staff.TimeSignature.text = \markup {
\hspace #1.2
\raise #1
\musicglyph "clefs.F_change"
  }
  \once \override Staff.TimeSignature.stencil = #(lambda (grob)
(append-markup grob (ly:time-signature::print grob)))
}

%%% Alternating time 
#(define ((time-alternate-time upa downa upb downb) grob)
   (grob-interpret-markup grob
 (markup #:override '(baseline-skip . 0) #:number
   (#:line (
   (#:center-column (upa downa))
   (#:center-column (upb downb)))

upper = \relative {
  \trebleToBass
  \key bes \minor
  \partial 8 c'8
  \repeat unfold 4 { c8 c c c c | c c c c | }
}

lower = \relative {
  \key bes \minor
  \clef bass
  \partial 8 c8
  \repeat unfold 4 { c8 c c c c | c c c c | }
}

timeSignatures = {
  \override Score.TimeSignature.stencil = #(time-alternate-time "5" "8" "4" "8")
  \time 5/8
  \partial 8 s8
  \override Score.TimeSignature.stencil = ##f
  \repeat unfold 4 { \time 5/8 s4. s4 | \time 4/8 s2 | }
}

\score {
  \new PianoStaff <<
\new Staff \upper
\new Staff \lower
\new Devnull \timeSignatures
  >>
}

Re: grace notes/acciaccaturas occur before time signature change if only in bass clef

2023-08-15 Thread Paul Hodges
One of the oldest of all LilyPond bugs, to do with items which take no musical 
time.  You need to put a dummy grace note before the c in the upper staff; 
\grace s8 will do it.


Paul



 From:   Jin Choi  
 To:
 Sent:   15/08/2023 19:30 
 Subject:   grace notes/acciaccaturas occur before time signature change if 
only in bass clef 

In the following snippet, a change of time signature appears after an 
acciaccatura if the time change happened in one staff without a grace note but 
a grace note appears in some other staff. Is there a way to fix this without 
making sure the time change always appears in the staff with the grace? 
 





 
 
\version "2.24.1" 
 
upper = \relative c' { 
  \key c \major 
  c1 
  \time 2/2 
  c1 
} 
 
lower = \relative c { 
  \clef bass 
  c1 
  \acciaccatura c8 c1 
} 
 
\score { 
  \new PianoStaff { 
    << 
    \new Staff = "upper" \upper 
    \new Staff = "lower" \lower 
    >> 
  } 
} 
 


Re: grace notes/acciaccaturas occur before time signature change if only in bass clef

2023-08-15 Thread Paul Scott

Well known bug.

Add \grace s8 to upper in same position as acciaccatura c8

HTH,

Paul


On 8/15/23 11:30 AM, Jin Choi wrote:

In the following snippet, a change of time signature appears after an 
acciaccatura if the time change happened in one staff without a grace note but 
a grace note appears in some other staff. Is there a way to fix this without 
making sure the time change always appears in the staff with the grace?



\version "2.24.1"

upper = \relative c' {
   \key c \major
   c1
   \time 2/2
   c1
}

lower = \relative c {
   \clef bass
   c1
   \acciaccatura c8 c1
}

\score {
   \new PianoStaff {
 <<
 \new Staff = "upper" \upper
 \new Staff = "lower" \lower
 >>
   }
}





grace notes/acciaccaturas occur before time signature change if only in bass clef

2023-08-15 Thread Jin Choi
In the following snippet, a change of time signature appears after an 
acciaccatura if the time change happened in one staff without a grace note but 
a grace note appears in some other staff. Is there a way to fix this without 
making sure the time change always appears in the staff with the grace?



\version "2.24.1"

upper = \relative c' {
  \key c \major
  c1
  \time 2/2
  c1
}

lower = \relative c {
  \clef bass
  c1
  \acciaccatura c8 c1
}

\score {
  \new PianoStaff {
<<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
  }
}



Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard
The criterion for a word to be included in the Oxford English Dictionary 
is three proven printed examples. :-)


Andrew


On 5/06/2023 2:25 pm, Werner LEMBERG wrote

Understood.  However, we *need* good real-world examples that are not
bound to certain notation programs so that we have a chance to find a
generic implementation.





Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG


> It's not unusual, just not Common Era period which lilypond
> principally focuses on.

Understood.  However, we *need* good real-world examples that are not
bound to certain notation programs so that we have a chance to find a
generic implementation.

> One example has been given. Do you need more? A quorum? :-)
>
> Here's Wikipedia:
>
> https://en.wikipedia.org/wiki/Free_time_%28music%29

Excellent, thanks.  It already helps to have the right musical term.


Werner



Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard
Re that merge request, I think it's important to frame it as an open 
meter sign, not as a cancellation. As somebody pointed out, it can start 
a piece and so it is not cancelling anything previous.



Andrew





Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard

Hello All,

It's not unusual, just not Common Era period which lilypond principally 
focuses on.


It is not a _cancellation_ or a crossing out. It's as designator of open 
meter. Dorico enables it because people use it and request it, not 
because the Dorico team read it in Gould. Dorico targets a broader 
spectrum than CE period, in particular film scoring and so on.


One example has been given. Do you need more? A quorum? :-)

Here's Wikipedia:

https://en.wikipedia.org/wiki/Free_time_%28music%29

Adding this open meter indication to lilypond would do no harm, surely? 
As with Dorico, don't make it mandatory for open meter, just available 
if required.


Andrew


On 4/06/2023 11:50 pm, Werner LEMBERG wrote:

Thanks, but ideally we would like to see a real-world example that
predates recent notation programs – they probably all try to implement
the stuff from Gould's book...





Re: Time signature cancellation

2023-06-04 Thread Flaming Hakama by Elaine
>
> -- Forwarded message --
> From: Mark Knoop 
> To: lilypond-user@gnu.org
> Cc:
> Bcc:
> Date: Sun, 04 Jun 2023 16:33:41 +0100
> Subject: Re: Time signature cancellation
>
> At 14:59 on 04 Jun 2023, Damian leGassick wrote:
> > you just want a recent real-world example? Birtwistle: Harrison’s
> > Clocks.
>
> See bar 1 here: https://www.youtube.com/watch?v=ufDaECmsXNw
>
>
Being the first bar of a piece, this is not an example of a cancellation
signature, as there is no prior signature to cancel.

In terms of the feature, I agree that adding it probably does little harm.

The biggest issue would likely be that, because it is supported, someone
will decide to use it, assuming that musicians would know what it means.


Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG

> you just want a recent real-world example? Birtwistle: Harrison’s
> Clocks.

Thanks!


Werner


Re: Time signature cancellation

2023-06-04 Thread Mark Knoop


At 14:59 on 04 Jun 2023, Damian leGassick wrote:
> you just want a recent real-world example? Birtwistle: Harrison’s
> Clocks.

See bar 1 here: https://www.youtube.com/watch?v=ufDaECmsXNw

I see this usage occasionally, but not sure that I'd quite call it a
standard. It is however fairly clear, and so long as any LilyPond
implementation is able to be overridden (by the usual methods) I see no
harm in adding it.

>> On 4 Jun 2023, at 14:51, Werner LEMBERG  wrote:
>>>> Has anyone here ever used or seen the X-shaped time-signature
>>>> cancellation sign pictured at [1], or anything similar?
>>>
>>> It's one standard for open meter.
>>>
>>> Here's the Dorico manual info: [...]
>>
>> Thanks, but ideally we would like to see a real-world example that
>> predates recent notation programs – they probably all try to implement
>> the stuff from Gould's book...
>>
>>
>>Werner
--
Mark Knoop



Re: Time signature cancellation

2023-06-04 Thread Damian leGassick
you just want a recent real-world example? Birtwistle: Harrison’s Clocks.

D

> On 4 Jun 2023, at 14:51, Werner LEMBERG  wrote:
> 
> 
>> 
>>> Has anyone here ever used or seen the X-shaped time-signature
>>> cancellation sign pictured at [1], or anything similar?
>> 
>> It's one standard for open meter.
>> 
>> Here's the Dorico manual info: [...]
> 
> Thanks, but ideally we would like to see a real-world example that
> predates recent notation programs – they probably all try to implement
> the stuff from Gould's book...
> 
> 
>Werner



Re: Time signature cancellation

2023-06-04 Thread Werner LEMBERG
>> Has anyone here ever used or seen the X-shaped time-signature
>> cancellation sign pictured at [1], or anything similar?
>
> It's one standard for open meter.
>
> Here's the Dorico manual info: [...]

Thanks, but ideally we would like to see a real-world example that
predates recent notation programs – they probably all try to implement
the stuff from Gould's book...


Werner


Re: Time signature cancellation

2023-06-04 Thread Andrew Bernard

It's one standard for open meter.

Here's the Dorico manual info:

Andrew


On 4/06/2023 10:49 pm, Dan Eble wrote:

Has anyone here ever used or seen the X-shaped time-signature cancellation sign 
pictured at [1], or anything similar?


Thanks,
--
Dan

[1]https://gitlab.com/lilypond/lilypond/-/merge_requests/2029



RE: Re: Small note between staves as time signature

2023-05-12 Thread juergen . gruen


   
   .fr-emoticon.fr-emoticon-img {

   background-repeat: no-repeat !important;
   font-size: inherit;
   height: 1em;
   width: 1em;
   min-height: 20px;
   min-width: 20px;
   display: inline-block;
   margin: -0.1em 0.1em 0.1em;
   line-height: 1;
   vertical-align: middle;
   }
   .fr-emoticon {
   font-weight: normal;
   font-family: "Apple Color Emoji","Segoe UI Emoji","NotoColorEmoji","Segoe 
UI Symbol","Android Emoji","EmojiSymbols";
   display: inline;
   line-height: 0;
   }
   Hello Jakob,
thank you, but I would never have figured out the use of GridLine for this 
purpose on my own also ;-)
I added calculation of the x-Position, so the first notehead is centered over 
the dots of the bass clef automatically. The parameter x-off is optional 
now.You can call the music function in front of the staff definitions. In 
addition with the removal of the time-signature-engraver in the layout-block, 
everything is clearer and better readable, I think.
Juergen.
%%\version 2.24.0

\language deutsch

%% based on https://www.mail-archive.com/lilypond-user@gnu.org/msg119983.html
positionTimeSignature =
#(define-music-function (x-off arg) ((number? -0.75) markup?)
  Create a markup from @var{arg}. Center the markup vertically between 
two staves.
   Horizontally aligned to the end of the clefs; can be optionally adjusted with 
@var{x-off}.
  #{
\once \override Score.GridLine.stencil =
#(lambda (grob)
   (let* (
   ; create grid-line stencil for calculations
   (stil (ly:grid-line-interface::print grob))
   (stil-y-ext (ly:stencil-extent stil Y))
   (center ( / (+ (car stil-y-ext) (cdr stil-y-ext)) 2))


   ; calculate widest x-extent of clefs relative to system
   (refp (ly:grob-system grob))
   (all-elts (ly:grob-array->list (ly:grob-object refp 
all-elements)))
   (clefs (filter (lambda (elt)
(grob::has-interface elt clef-interface))
  all-elts))

   (max-x (apply max (map (lambda (clef)
(max (+ (ly:grob-relative-coordinate 
clef refp X)
   (car (ly:grob-property clef 
X-extent)))
  (+ (ly:grob-relative-coordinate clef 
refp X)
(cdr(ly:grob-property clef 
X-extent)
       clefs)))

   ; create time-signature markup
   (note
(interpret-markup
 (ly:grob-layout grob)
 (ly:grob-alist-chain grob
   (ly:output-def-lookup (ly:grob-layout grob) 
text-font-defaults))
 arg))

   ; calculate offsets for translation
   (note-y-ext (ly:stencil-extent note Y))
   (height (interval-length (ly:stencil-extent note Y)))
   (calc-y (- (- center (car note-y-ext)) ( / height 2)))
   (calc-x (+ (- max-x (ly:grob-relative-coordinate grob refp X)) 
x-off)))

 ;return translated stencil
 (ly:stencil-translate note (cons calc-x  calc-y
  #})
%%%%

% definiton of custom time signature as markup
sig = \markup { \teeny \line { \note {2} #1 \note {4} #UP } }

\score {
 \new PianoStaff 
   % no need to put inside voice context
   \positionTimeSignature \sig
   \new Staff 
 \key d \major
 \new Voice {  \voiceOne d4 \bar | }
 \new Voice { \voiceTwo a4 }
   >>
   \new Staff 
 \clef bass \key d \major
 \new Voice { \voiceOne fis4 }
 \new Voice { \voiceTwo d4 }
   >>
 >>
}

\layout {
 \context {
   \Score
   \consists Grid_line_span_engraver
   \override GridLine.stencil = ##f

 }
 \context {
   \Staff
   \consists Grid_point_engraver
   %% adjust the value if needed
   gridInterval = #(ly:make-moment 1/64)
   % remove for all staves
   \remove Time_signature_engraver
 }
}


Re: Small note between staves as time signature

2023-05-11 Thread Lukas-Fabian Moser

Hi Jakob,

The Danish book of chorales to accompany the official hymnal uses a 
peculiar "time signature" (which isn't really a time signature) for 
some hymns.


It's a small note, in this case a 텞  but elsewhere its a compound 
signature like 텞♩, to indicate the metre.

Maybe also use an actual TimeSignature living in a Dynamics context?

\version "2.24.0"

#(add-simple-time-signature-style
  'note
  (lambda (frac)
    (let ((den (cdr frac)))
  #{ \markup \tiny \note #(ly:make-duration (ly:intlog2 den)) #UP #})))

\layout {
  \context {
    \Dynamics
    \consists Time_signature_engraver
    \override TimeSignature.break-align-symbol = #'key-signature
    \override TimeSignature.style = #'note
  }
  \context {
    \Staff
    \remove Time_signature_engraver
  }
}

\score {
  \new PianoStaff <<
    \new Staff {
  \key d \major
  \after 1*6 { \break \time 2/2 }
  \repeat unfold 100 << d'4 \\ a4 >>
    }
    \new Dynamics {
  s1*25
    }
    \new Staff \with { \clef bass } {
  \key d \major
  \repeat unfold 100 << fis4 \\ d4 >>
    }
  >>
}

Lukas




Re: Small note between staves as time signature

2023-05-11 Thread Jakob Pedersen

Hi Juergen,

Works perfectly! Thank you very much.

I can guarantee you I would never have figured that out on my own!

If anyone has any idea what this kind of notation is called, do let me 
know :)


Best wishes,
Jakob

On 11.05.2023 12.59, juergen.gr...@xyz.de wrote:

Hello,

what about this:


\version "2.24.0"

\language "deutsch"

%% based on 
https://www.mail-archive.com/lilypond-user@gnu.org/msg119983.html

center =
#(define-music-function (text x-off) (markup? number?)
   #{
     \once \override Score.GridLine.stencil =
     #(lambda (grob)
        (let* ((stil (ly:grid-line-interface::print grob))
               (stil-y-ext (ly:stencil-extent stil Y))
               (thick (ly:grob-property grob 'thickness 0.1))
               (center ( / (+ (car stil-y-ext) (cdr stil-y-ext)) 2))

               (note
                (interpret-markup
                 (ly:grob-layout grob)
                 (ly:grob-alist-chain grob
                   (ly:output-def-lookup (ly:grob-layout grob) 
'text-font-defaults))

                 text))

               (note-y-ext (ly:stencil-extent note Y))
               (height (interval-length (ly:stencil-extent note Y)))
               (y-off (- (- center (car note-y-ext)) ( / height 2

          (ly:stencil-translate note (cons x-off y-off
   #})


sig = \markup { \teeny \line { \note {2} #1 \note {4} #-1 } }

\score {
  \new PianoStaff <<
    \new Staff <<
      \key d \major
      \new Voice { \once \override Staff.TimeSignature. stencil = ##f 
\voiceOne d'4 \bar "|" }

      \new Voice { \voiceTwo \center \sig #-6.25 a4 }
    >>
    \new Staff <<
      \clef bass \key d \major
      \new Voice { \once \override Staff.TimeSignature. stencil = ##f 
\voiceOne fis4 }

      \new Voice { \voiceTwo d4 }
    >>
  >>
}

\layout {
  \context {
    \Score
    \consists "Grid_line_span_engraver"
    \override GridLine.stencil = ##f
  }
  \context {
    \Staff
    \consists "Grid_point_engraver"
    %% adjust the value if needed
    gridInterval = #(ly:make-moment 1/64)
  }
}
%

HTH, Juergen.




Re: Small note between staves as time signature

2023-05-11 Thread juergen . gruen


   
   .fr-emoticon.fr-emoticon-img {

   background-repeat: no-repeat !important;
   font-size: inherit;
   height: 1em;
   width: 1em;
   min-height: 20px;
   min-width: 20px;
   display: inline-block;
   margin: -0.1em 0.1em 0.1em;
   line-height: 1;
   vertical-align: middle;
   }
   .fr-emoticon {
   font-weight: normal;
   font-family: "Apple Color Emoji","Segoe UI Emoji","NotoColorEmoji","Segoe 
UI Symbol","Android Emoji","EmojiSymbols";
   display: inline;
   line-height: 0;
   }
   Hello,
what about this:
\version 2.24.0

\language deutsch

%% based on https://www.mail-archive.com/lilypond-user@gnu.org/msg119983.html
center =
#(define-music-function (text x-off) (markup? number?)
  #{
\once \override Score.GridLine.stencil =

#(lambda (grob)
   (let* ((stil (ly:grid-line-interface::print grob))
  (stil-y-ext (ly:stencil-extent stil Y))
  (thick (ly:grob-property grob thickness 0.1))
  (center ( / (+ (car stil-y-ext) (cdr stil-y-ext)) 2))

  (note
   (interpret-markup
(ly:grob-layout grob)
(ly:grob-alist-chain grob
  (ly:output-def-lookup (ly:grob-layout grob) 
text-font-defaults))
text))

  (note-y-ext (ly:stencil-extent note Y))
  (height (interval-length (ly:stencil-extent note Y)))
  (y-off (- (- center (car note-y-ext)) ( / height 2

 (ly:stencil-translate note (cons x-off y-off
  #})


sig = \markup { \teeny \line { \note {2} #1 \note {4} #-1 } }

\score {
 \new PianoStaff 
   \new Staff 
 \key d \major
 \new Voice { \once \override Staff.TimeSignature. stencil = ##f \voiceOne d4 
\bar | }
 \new Voice { \voiceTwo \center \sig #-6.25 a4 }
   >>
   \new Staff 
 \clef bass \key d \major
 \new Voice { \once \override Staff.TimeSignature. stencil = ##f \voiceOne 
fis4 }
 \new Voice { \voiceTwo d4 }
   >>
 >>
}

\layout {
 \context {
   \Score
   \consists Grid_line_span_engraver
   \override GridLine.stencil = ##f
 }
 \context {
   \Staff
   \consists Grid_point_engraver
   %% adjust the value if needed
   gridInterval = #(ly:make-moment 1/64)
 }
}%
HTH, Juergen.



Small note between staves as time signature

2023-05-10 Thread Jakob Pedersen

Hello all,

The Danish book of chorales to accompany the official hymnal uses a 
peculiar "time signature" (which isn't really a time signature) for some 
hymns.


It's a small note, in this case a 텞  but elsewhere its a compound 
signature like 텞♩, to indicate the metre.




I've replicated it by hiding the TimeSignature and adding a note as 
markup to the alto or tenor voice and sort-of wiggled it into position, 
but that's that a particularly elegant solution.


The main problem with my fix is vertical alignment. I'd like it to be in 
the middle of the between-staff space.


A minimal example:

\version "2.24.1"
\language "deutsch"

\score {
  \new PianoStaff <<
    \new Staff <<  \key d \major
  \new Voice { \once \override Staff.TimeSignature. stencil = ##f 
\voiceOne d'4 \bar "|" }
  \new Voice { \voiceTwo a4_\markup { \hspace #-6 \teeny \note {2} 
#1 } }

    >>
    \new Staff << \clef bass \key d \major
  \new Voice { \once \override Staff.TimeSignature. stencil = ##f 
\voiceOne fis4 }

  \new Voice { \voiceTwo d4 }
    >>
  >>
}

Any thoughts? Does anyone know what this type of notation is called?


Best wishes,

Jakob Pedersen



Re: bare time signature rendering difference

2023-03-09 Thread Werner LEMBERG


> Thanks - my output included no such warning.
> (lyluatex)  Compiling score tmp-ly/51d5af77a942f28ac1f5986a0ab47d35
> with LilyPond executable 'lilypond'.
> 
> Module lyluatex Warning: The score doesn't contain any music:
> (lyluatex)   this will probably cause bad output. on input line
> 8vim
> (./ts.aux))
>  431 words of node memory still in use:
>3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 6 attribute, 50
> glue_spec
> , 6 attribute_list, 2 write, 1 pdf_colorstack nodes
>avail lists: 2:10,3:1,4:1,5:4,7:1,9:1
> 
> warning  (pdf backend): no pages of output.

Have you tried lyluatex's 'debug' option and inspected the created log
file?


   Werner



Re: bare time signature rendering difference

2023-03-09 Thread Nate
Thanks - my output included no such warning.
(lyluatex)  Compiling score tmp-ly/51d5af77a942f28ac1f5986a0ab47d35
with LilyPond executable 'lilypond'.

Module lyluatex Warning: The score doesn't contain any music:
(lyluatex)   this will probably cause bad output. on input line
8vim
(./ts.aux))
 431 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 6 attribute, 50
glue_spec
, 6 attribute_list, 2 write, 1 pdf_colorstack nodes
   avail lists: 2:10,3:1,4:1,5:4,7:1,9:1

warning  (pdf backend): no pages of output.

On Fri, Mar 10, 2023 at 1:12 AM Werner LEMBERG  wrote:

>
> > I seem to have some sort of platform difference between my desktop
> > and laptop computers.  I'm rendering a bare time signature and tempo
> > in a LaTeX table using lyluatex.
> >
> > The snippet: [...]
> >
> >   {
> > \new RhythmicStaff \with {\remove "Staff_symbol_engraver"}
> > { \time 6/8 \numericTimeSignature \tempo 4=120 }
> >   }
> >
> > [...] fails to render any output:
> >
> > Module lyluatex Warning: The score doesn't contain any music:
> > (lyluatex)   this will probably cause bad output
> >
> > Is this properly formatted code?
>
> Apparently your two computers use different LilyPond versions: recent
> versions complain with
>
> ```
> Warning: skipping zero-duration score
> Warning: to suppress this, consider adding a spacer rest
> ```
>
> If you do what the warning suggests, the snippet compiles again:
>
> ```
> \new RhythmicStaff \with {\remove "Staff_symbol_engraver"}
> { \time 6/8 \numericTimeSignature \tempo 4=120 s }
> ```
>
>
> Werner
>


Re: bare time signature rendering difference

2023-03-09 Thread Werner LEMBERG


> I seem to have some sort of platform difference between my desktop
> and laptop computers.  I'm rendering a bare time signature and tempo
> in a LaTeX table using lyluatex.
> 
> The snippet: [...]
>
>   {
> \new RhythmicStaff \with {\remove "Staff_symbol_engraver"}
> { \time 6/8 \numericTimeSignature \tempo 4=120 }
>   }
> 
> [...] fails to render any output:
> 
> Module lyluatex Warning: The score doesn't contain any music:
> (lyluatex)   this will probably cause bad output
> 
> Is this properly formatted code?

Apparently your two computers use different LilyPond versions: recent
versions complain with

```
Warning: skipping zero-duration score
Warning: to suppress this, consider adding a spacer rest
```

If you do what the warning suggests, the snippet compiles again:

```
\new RhythmicStaff \with {\remove "Staff_symbol_engraver"}
{ \time 6/8 \numericTimeSignature \tempo 4=120 s }
```


Werner



bare time signature rendering difference

2023-03-09 Thread Nate
I seem to have some sort of platform difference between my desktop and
laptop computers. I'm rendering a bare time signature and tempo in a LaTeX
table using lyluatex.

The snippet:
\lilypond[noindent, nofragment]
  { \new RhythmicStaff \with {\remove "Staff_symbol_engraver"}
  { \time 6/8 \numericTimeSignature  \tempo 4=120  }}

renders as expected with lualatex --shell-escape ts.lytex
[image: ts.png]
(LuaTex v 1.10.0 TeX Live 2019/Debian)
LaTeX2e 2020-02-02 patch level 2

However my desktop appears to have
This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/Debian)
LaTeX2e <2020-10-01> patch level 4
installed, and fails to render any output:

Module lyluatex Warning: The score doesn't contain any music:
(lyluatex)   this will probably cause bad output

Is this properly formatted code?


Re: `StaffGroup` prevents articulation shifted under time signature

2022-05-23 Thread Werner LEMBERG


> dynamicLengthOff = {
>   \override DynamicText.extra-spacing-width = #'(+inf.0 . -inf.0)
>   \override DynamicText.extra-spacing-height = #'(0 . 0)
> }

Nice idea, thanks!


Werner



Re: `StaffGroup` prevents articulation shifted under time signature

2022-05-23 Thread Werner LEMBERG
>> The following example
>>
>> ```
>> <<
>>\new Staff { f'1 }
>>\new Staff { f'1 \tweak X-offset #-5 \pp }
>> \new StaffGroup <<
>>\new Staff { f'1 }
>>\new Staff { f'1 \tweak X-offset #-5 \pp }
>> ```
>>
>> shows that I can't move the 'pp' to sit under the time signature if
>> I use `StaffGroup`.  How can I change this?  Within full scores it
>> is of great importance to retain this ability.
>
> The definition of StaffGroup in engraver-init.ly contains
>
>   %% The default for DynamicText.extra-spacing-width causes dynamics
>   %% to be placed across span bars, so switch it off:
>   \override DynamicText.extra-spacing-width = ##f

D'oh, I should have looked into this file.  Thanks!

This override causes too much collateral damage; I've thus just filed

  https://gitlab.com/lilypond/lilypond/-/issues/6350


Werner



Re: `StaffGroup` prevents articulation shifted under time signature

2022-05-23 Thread David Kastrup
Werner LEMBERG  writes:

> [LilyPond version 2.23.9]
>
> The following example
>
> ```
> <<
>   \new Staff { f'1 }
>   \new Staff { f'1 \tweak X-offset #-5 \pp }
>>>
>
> \new StaffGroup <<
>   \new Staff { f'1 }
>   \new Staff { f'1 \tweak X-offset #-5 \pp }
>>>
> ```
>
> shows that I can't move the 'pp' to sit under the time signature if I
> use `StaffGroup`.  How can I change this?  Within full scores it is of
> great importance to retain this ability.

In analogy to

textLengthOff = {
  \override TextScript.extra-spacing-width = #'(+inf.0 . -inf.0)
  \override TextScript.extra-spacing-height = #'(0 . 0)
}

you can do

dynamicLengthOff = {
  \override DynamicText.extra-spacing-width = #'(+inf.0 . -inf.0)
  \override DynamicText.extra-spacing-height = #'(0 . 0)
}


<<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>

\new StaffGroup \with \dynamicLengthOff <<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>

However, this will also stop the dynamics from avoiding interstaff
barlines, the reason for this setting.  The setting is already different
in ChoirStaff which does not have interstaff barlines.

-- 
David Kastrup


Re: `StaffGroup` prevents articulation shifted under time signature

2022-05-23 Thread Jean Abou Samra

Le 23/05/2022 à 12:32, Werner LEMBERG a écrit :

[LilyPond version 2.23.9]

The following example

```
<<
   \new Staff { f'1 }
   \new Staff { f'1 \tweak X-offset #-5 \pp }
\new StaffGroup <<
   \new Staff { f'1 }
   \new Staff { f'1 \tweak X-offset #-5 \pp }
```

shows that I can't move the 'pp' to sit under the time signature if I
use `StaffGroup`.  How can I change this?  Within full scores it is of
great importance to retain this ability.




The definition of StaffGroup in engraver-init.ly contains

  %% The default for DynamicText.extra-spacing-width causes dynamics to
  %% be placed across span bars, so switch it off:
  \override DynamicText.extra-spacing-width = ##f

so you need

\version "2.23.9"

<<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>

\new StaffGroup <<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \tweak extra-spacing-width 
#'(+inf.0 . -inf.0) \pp }

>>


to restore the default on that \pp.

Best,
Jean




`StaffGroup` prevents articulation shifted under time signature

2022-05-23 Thread Werner LEMBERG

[LilyPond version 2.23.9]

The following example

```
<<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>

\new StaffGroup <<
  \new Staff { f'1 }
  \new Staff { f'1 \tweak X-offset #-5 \pp }
>>
```

shows that I can't move the 'pp' to sit under the time signature if I
use `StaffGroup`.  How can I change this?  Within full scores it is of
great importance to retain this ability.


Werner


Re: Grace note position and time signature changes

2022-03-24 Thread Jean Abou Samra

Le 24/03/2022 à 13:13, Leo Correia de Verdier a écrit :
This is our beloved issue 34 again: 
https://sourceforge.net/p/testlilyissues/issues/34/


Note that the issue tracker has moved. The new URL is

https://gitlab.com/lilypond/lilypond/-/issues/34

Jean




Re: Grace note position and time signature changes

2022-03-24 Thread David Santamauro


> On Mar 24, 2022, at 8:13 AM, Leo Correia de Verdier 
>  wrote:
> 
>  \time 4/4 s1 s1 s1
>   \time 2/4 \grace s16*3 s2
>   \time 4/4 s1
>   \time 2/4\grace s16*3  s2


Works as advertised, thanks



Re: Grace note position and time signature changes

2022-03-24 Thread Leo Correia de Verdier
Hi David!

This is our beloved issue 34 again: 
https://sourceforge.net/p/testlilyissues/issues/34/
You need to place grace spacers in relevant sequential variables matching the 
gracenotes to get them to the right place, as in this fixed code.

%%%
\version "2.22.2"
\include "english.ly"

tt = {
  \time 4/4 s1 s1 s1
  \time 2/4 \grace s16*3 s2
  \time 4/4 s1
  \time 2/4\grace s16*3  s2
}

\score {
  <<
\new Staff {
  \relative c' {
<< \tt { R1 R1 a1 ~ a4 r4 R1 R2 } >>
  }
}
\new Staff {
  \relative c' {
<< \tt { R1
 \grace { d16 d d } d1
 R1
 \grace { d16 d d } d2
 R1
 \grace { d16 d d } d2 }
>>
  }
}
  >>
}
%%

HTH
/Leo

> 24 mars 2022 kl. 12:10 skrev David Santamauro :
> 
> Hi,
> 
> The following snippet produces some strange results:
> 
> \version "2.22.2"
> 
> \include "english.ly"
> 
> tt = {
>   \time 4/4 s1 s1 s1
>   \time 2/4 s2
>   \time 4/4 s1
>   \time 2/4 s2
> }
> 
> \score {
>   <<
> \new Staff {
>   \relative c' {
> << \tt { R1 R1 a1 ~ a4 r4 R1 R2 } >>
>   }
> }
> \new Staff {
>   \relative c' {
> << \tt { R1
>   \grace { d16 d d } d1
>   R1
>   \grace { d16 d d } d2
>   R1
>   \grace { d16 d d } d2 }
> >>
>   }
> }
>   >>
> }
> 
> I don’t understand the differing behavior in mm 3-4 and mm 5-6. Is there a 
> way to force the grace notes past (to the right of) the time signature?
> 
> Thanks
> 
> 
> 
> 
> 
> 



Grace note position and time signature changes

2022-03-24 Thread David Santamauro
Hi,

The following snippet produces some strange results:

\version "2.22.2"

\include "english.ly"

tt = {
  \time 4/4 s1 s1 s1
  \time 2/4 s2
  \time 4/4 s1
  \time 2/4 s2
}

\score {
  <<
\new Staff {
  \relative c' {
<< \tt { R1 R1 a1 ~ a4 r4 R1 R2 } >>
  }
}
\new Staff {
  \relative c' {
<< \tt { R1
  \grace { d16 d d } d1
  R1
  \grace { d16 d d } d2
  R1
  \grace { d16 d d } d2 }
>>
  }
}
  >>
}

I don’t understand the differing behavior in mm 3-4 and mm 5-6. Is there a way 
to force the grace notes past (to the right of) the time signature?

Thanks








Re: Time signature guide

2022-03-22 Thread Leo Correia de Verdier
I hadn’t seen David’s reply until after I posted, otherwise I wouldn't have 
basically repeated his answer.
A disadvantage of the << … \\ … >> syntax in this case is that it applies 
\voiceTwo to \melody (it has all its stems turned down, for instance). While 
you can reset that with \oneVoice I prefer just placing them in parallell in 
the same explicitly initiated Staff, as I did.

> 22 mars 2022 kl. 10:27 skrev Rip _Mus :
> 
> Thank you so much,
> you offered two similar and valid solutions!
> 
> Regards
> 
> 
> 
> Il giorno lun 21 mar 2022 alle ore 10:19 Leo Correia de Verdier 
>  ha scritto:
> I’m not sure I understood your question right, but I think the usual way to 
> do it would be to write the ”global” variable as a sequence of tempos, time 
> signatures and other events separated by spacers or skips. 
> 
> Something like:
> 
> %%
> 
> \version "2.23.6"
> 
> global = { \time 4/4 \tempo "Allegro" 4 = 144 
>s1
>\time 3/8 \tempo "Adagio" 8 = 76 
>s4.
>\time 5/8 \tempo "" 8 = 92 
>s8*5
>\time 3/2 \tempo "Vivo" 2 = 152 
>s1.
>\bar "|."
> }
> 
> part = { c'1 | d'4. | e'4~ 4. | a'1. }
> 
> \new Staff << \global \part >>
> 
> \layout { ragged-right = ##f }
> 
> %%
> 
> > 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> > 
> > Good morning,
> > I would need advice.
> > In a score with many time signature changes (where I therefore cannot use a 
> > stable global variable of tempo and time signature), there is a way to set 
> > a "guide" in which to set the various time signature changes, without " 
> > dirty "the instrumental variables?
> > Perhaps there is some suitable context for this? Or other strategies?
> > 
> > Thank you very much
> > 
> > Rip_mus
> 




Re: Time signature guide

2022-03-22 Thread Rip _Mus
Thank you so much,
you offered two similar and valid solutions!

Regards



Il giorno lun 21 mar 2022 alle ore 10:19 Leo Correia de Verdier <
leo.correia.de.verd...@gmail.com> ha scritto:

> I’m not sure I understood your question right, but I think the usual way
> to do it would be to write the ”global” variable as a sequence of tempos,
> time signatures and other events separated by spacers or skips.
>
> Something like:
>
> %%
>
> \version "2.23.6"
>
> global = { \time 4/4 \tempo "Allegro" 4 = 144
>s1
>\time 3/8 \tempo "Adagio" 8 = 76
>s4.
>\time 5/8 \tempo "" 8 = 92
>s8*5
>\time 3/2 \tempo "Vivo" 2 = 152
>s1.
>\bar "|."
> }
>
> part = { c'1 | d'4. | e'4~ 4. | a'1. }
>
> \new Staff << \global \part >>
>
> \layout { ragged-right = ##f }
>
> %%
>
> > 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> >
> > Good morning,
> > I would need advice.
> > In a score with many time signature changes (where I therefore cannot
> use a stable global variable of tempo and time signature), there is a way
> to set a "guide" in which to set the various time signature changes,
> without " dirty "the instrumental variables?
> > Perhaps there is some suitable context for this? Or other strategies?
> >
> > Thank you very much
> >
> > Rip_mus
>
>


Re: Time signature guide

2022-03-21 Thread Leo Correia de Verdier
I’m not sure I understood your question right, but I think the usual way to do 
it would be to write the ”global” variable as a sequence of tempos, time 
signatures and other events separated by spacers or skips. 

Something like:

%%

\version "2.23.6"

global = { \time 4/4 \tempo "Allegro" 4 = 144 
   s1
   \time 3/8 \tempo "Adagio" 8 = 76 
   s4.
   \time 5/8 \tempo "" 8 = 92 
   s8*5
   \time 3/2 \tempo "Vivo" 2 = 152 
   s1.
   \bar "|."
}
   
part = { c'1 | d'4. | e'4~ 4. | a'1. }

\new Staff << \global \part >>

\layout { ragged-right = ##f }

%%

> 21 mars 2022 kl. 09:51 skrev Rip _Mus :
> 
> Good morning,
> I would need advice.
> In a score with many time signature changes (where I therefore cannot use a 
> stable global variable of tempo and time signature), there is a way to set a 
> "guide" in which to set the various time signature changes, without " dirty 
> "the instrumental variables?
> Perhaps there is some suitable context for this? Or other strategies?
> 
> Thank you very much
> 
> Rip_mus




Re: Time signature guide

2022-03-21 Thread bobr...@centrum.is



- Original Message -
> From: "Rip _Mus" 
> To: "Lillypond Users Mailing List" 
> Sent: Monday, March 21, 2022 8:51:16 AM
> Subject: Time signature guide

> Good morning,
> I would need advice.
> In a score with many time signature changes (where I therefore cannot use a
> stable global variable of tempo and time signature), there is a way to set
> a "guide" in which to set the various time signature changes, without "
> dirty "the instrumental variables?
> Perhaps there is some suitable context for this? Or other strategies?
> 
> Thank you very much
> 
> Rip_mus


Sure,

I've done this sort of thing to cope with frequent time changes:

%

\version "2.22.0"

global = {
  \time 4/4
  s1
  \time 7/8
  s8*7
  \time 15/16
  s16*15
}

melody = \relative c' {
  c4 d e f
  g8 a b c b a g
  f4 e d c8.
}

\score{
  <<
{\global}
  \\ 
   {\melody}
  >>
}

%



RE: Altering the appearance of a time signature.

2022-03-01 Thread Calvin Ransom
Thanks Valentin! 
That is exactly what I was looking for!

Thanks,
Calvin Ransom
-Original Message-
From: Valentin Petzel  
Sent: February 28, 2022 3:06 AM
To: lilypond-user@gnu.org
Cc: Calvin Ransom 
Subject: Re: Altering the appearance of a time signature.

Hello Calvin,

is this to your liking?

Cheers,
Valentin

Am Montag, 28. Februar 2022, 09:34:01 CET schrieb Calvin Ransom:
> Hello everyone,
> 
> Can you help me create a time signature that has spacing like the attached?
> I would like to have the numerator centred near the 4th line and the 
> denominator centred near the 2nd line with space in between the characters.
> I have figured out how to adjust the font size but I have not been 
> able to figure out how to adjust the placement of the individual 
> characters. I have included a link to the relevant part of the internals 
> reference I used.
>  SNIPPET BEGINS 
> \version "2.22.1"
> {
> \once \override Staff.TimeSignature.font-size =#'-2.1 \set 
> Staff.timeSignatureFraction = #'(3 . 2) a'1.
> }
>  SNIPPET ENDS 
> [cid:image001.png@01D82C33.D7B1D620]
> 3.1.130
> TimeSignature<http://lilypond.org/doc/v2.22/Documentation/internals/ti
> mesig
> nature>




Re: Ancient time signature symbol

2022-02-28 Thread Valentin Petzel
This is a tempus perfectum diminutum, see here:

{ \override Staff.TimeSignature.style = #'mensural
  \time 3/4
  c }
\markup \musicglyph #"timesig.mensural34"

Cheers,
Valentin

Am Montag, 28. Februar 2022, 12:33:41 CET schrieb Francesco Napoleoni:
> Hi list
> 
> Where do I find a glyph for the time signature attached?
> 
> Thanks
> Francesco Napoleoni



signature.asc
Description: This is a digitally signed message part.


Ancient time signature symbol

2022-02-28 Thread Francesco Napoleoni
Hi list

Where do I find a glyph for the time signature attached?

Thanks
Francesco Napoleoni


Re: Altering the appearance of a time signature.

2022-02-28 Thread Valentin Petzel
Hello Calvin,

is this to your liking?

Cheers,
Valentin

Am Montag, 28. Februar 2022, 09:34:01 CET schrieb Calvin Ransom:
> Hello everyone,
> 
> Can you help me create a time signature that has spacing like the attached?
> I would like to have the numerator centred near the 4th line and the
> denominator centred near the 2nd line with space in between the characters.
> I have figured out how to adjust the font size but I have not been able to
> figure out how to adjust the placement of the individual characters. I have
> included a link to the relevant part of the internals reference I used.
>  SNIPPET BEGINS 
> \version "2.22.1"
> {
> \once \override Staff.TimeSignature.font-size =#'-2.1
> \set Staff.timeSignatureFraction = #'(3 . 2)
> a'1.
> }
>  SNIPPET ENDS 
> [cid:image001.png@01D82C33.D7B1D620]
> 3.1.130
> TimeSignature<http://lilypond.org/doc/v2.22/Documentation/internals/timesig
> nature>

{
  \numericTimeSignature
  c''
}

\layout {
  \override Staff.TimeSignature.stencil =
  #(lambda (grob)
 (let* ((frac (ly:grob-property grob 'fraction))
(numr (car frac))
(denr (cdr frac))
(num (if (markup? numr) numr (format #f "~a" numr)))
(den (if (markup? denr) denr (format #f "~a" denr)))
(det (ly:grob-property grob 'details))
(gap (assoc-get 'gap det 0))
(nm (ly:stencil-aligned-to (grob-interpret-markup grob (markup #:dynamic num)) X CENTER))
(dm (ly:stencil-aligned-to (grob-interpret-markup grob (markup #:dynamic den)) X CENTER))
(tst (ly:stencil-aligned-to (ly:stencil-combine-at-edge nm Y DOWN dm gap) Y CENTER)))
   tst))
  
  \override Staff.TimeSignature.details.gap = 0.3
  \override Staff.TimeSignature.font-size = -2
}

signature.asc
Description: This is a digitally signed message part.


Altering the appearance of a time signature.

2022-02-28 Thread Calvin Ransom
Hello everyone,

Can you help me create a time signature that has spacing like the attached? I 
would like to have the numerator centred near the 4th line and the denominator 
centred near the 2nd line with space in between the characters. I have figured 
out how to adjust the font size but I have not been able to figure out how to 
adjust the placement of the individual characters. I have included a link to 
the relevant part of the internals reference I used.
 SNIPPET BEGINS 
\version "2.22.1"
{
\once \override Staff.TimeSignature.font-size =#'-2.1
\set Staff.timeSignatureFraction = #'(3 . 2)
a'1.
}
 SNIPPET ENDS 
[cid:image001.png@01D82C33.D7B1D620]
3.1.130 
TimeSignature<http://lilypond.org/doc/v2.22/Documentation/internals/timesignature>


Re: slur crossing bar and time signature change; solved thanks

2021-12-24 Thread jh
thanks to all for the quick responses and solution.  I tend to find 
where to put ties and slurs confusing (more confusing than my first 
mistyping) so thank you to the addressed and to Brian


On 2021-12-24 13:40, Lukas-Fabian Moser wrote:

Hi,

Am 24.12.21 um 21:24 schrieb jh:


    \time 5/8
   \tempo 4 = 86
   d8 e fis4 e8
   d e4 d8 c\time 6/8
   (b4) d8 b a4 \bar "|."
when I try to do this the slur does not connect between the c and b4 
there is now a slur starting at the b4 and extends until there is 
another slur over many measures.

Hope there is a solution or at least clarification.


Slurs are attached to notes (and entered after the note, hence
"post-events"). \time 6/8 is new music occuring at the same time as
b4, but you can't meaningfully attach a slur to a time signature
change.

The solution is simple: Attacht the opening slur to your note c, i.e.
c( \time 6/8 instead of c \time 6/8 (.

By the way, I'd recommend to put the \time 6/8 onto its own line:

\relative c' {
  \time 5/8
  \tempo 4 = 86
  d8 e fis4 e8
  d e4 d8 c(
  \time 6/8
  b4) d8 b a4
  \bar "|."
}

Lukas




Re: slur crossing bar and time signature change

2021-12-24 Thread jh

yes that did it thank you.

On 2021-12-24 13:38, Brian Barker wrote:

At 13:24 24/12/2021 -0700, you wrote:

\time 5/8
   \tempo 4 = 86
   d8 e fis4 e8
   d e4 d8 c\time 6/8
   (b4) d8 b a4 \bar "|."


The slur parentheses are postfixed to the appropriate elements. Instead 
of

c\time 6/8 (b4)
you need
c( \time 6/8 b4)

I trust this helps.

Brian Barker - privately




Re: slur crossing bar and time signature change

2021-12-24 Thread Lukas-Fabian Moser

Hi,

Am 24.12.21 um 21:24 schrieb jh:


    \time 5/8
   \tempo 4 = 86
   d8 e fis4 e8
   d e4 d8 c\time 6/8
   (b4) d8 b a4 \bar "|."
when I try to do this the slur does not connect between the c and b4 
there is now a slur starting at the b4 and extends until there is 
another slur over many measures.

Hope there is a solution or at least clarification.


Slurs are attached to notes (and entered after the note, hence 
"post-events"). \time 6/8 is new music occuring at the same time as b4, 
but you can't meaningfully attach a slur to a time signature change.


The solution is simple: Attacht the opening slur to your note c, i.e. c( 
\time 6/8 instead of c \time 6/8 (.


By the way, I'd recommend to put the \time 6/8 onto its own line:

\relative c' {
  \time 5/8
  \tempo 4 = 86
  d8 e fis4 e8
  d e4 d8 c(
  \time 6/8
  b4) d8 b a4
  \bar "|."
}

Lukas



Re: slur crossing bar and time signature change

2021-12-24 Thread jh

yes of course i mistyped.  Sorry here's kind of the minimal example
2.22

\time 5/8
   \tempo 4 = 86
   d8 e fis4 e8
   d e4 d8 c\time 6/8
   (b4) d8 b a4 \bar "|."
when I try to do this the slur does not connect between the c and b4 
there is now a slur starting at the b4 and extends until there is 
another slur over many measures.

Hope there is a solution or at least clarification.
thanks
j

On 2021-12-24 12:58, Leo Correia de Verdier wrote:

Hi J!

~ is not a slur, it's a tie, so that could be the reason it is not 
working.

https://lilypond.org/doc/v2.22/Documentation/learning/ties-and-slurs

If not, could you pleas post a minimal example for us to see what
could be the issue?

Slurs across barlines and time signatures are not normally a problem,
so I suppose there is something strange in the code.

Best!
/Leo



24 dec. 2021 kl. 19:14 skrev jh :

using 2.22 when I try to have a slur ~ across a barline and a time 
signature change using fresco nothing happens.
please direct me to a place in the manual that explains how to have 
this work.

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





Re: slur crossing bar and time signature change

2021-12-24 Thread Leo Correia de Verdier
Hi J!

~ is not a slur, it's a tie, so that could be the reason it is not working.
https://lilypond.org/doc/v2.22/Documentation/learning/ties-and-slurs

If not, could you pleas post a minimal example for us to see what could be the 
issue?

Slurs across barlines and time signatures are not normally a problem, so I 
suppose there is something strange in the code.

Best!
/Leo


> 24 dec. 2021 kl. 19:14 skrev jh :
> 
> using 2.22 when I try to have a slur ~ across a barline and a time signature 
> change using fresco nothing happens.
> please direct me to a place in the manual that explains how to have this work.
> 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
> 




slur crossing bar and time signature change

2021-12-24 Thread jh
using 2.22 when I try to have a slur ~ across a barline and a time 
signature change using fresco nothing happens.
please direct me to a place in the manual that explains how to have this 
work.

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



Re: 12/8 Time signature and note length coding

2021-11-24 Thread David Kastrup
Carl Sorensen  writes:

> On 11/24/21, 2:26 PM, "lilypond-user on behalf of David Johnson"
>  johns...@electronsciences.com> wrote:
>
> I'm working on an arrangement that is in 12/8 time signature and having 
> trouble understanding how to encode note lengths and the associated 
> chordmode timing.
>
> Use a duration of 1.   That is 6 quarter notes, or 12 eighth notes.

Possibly less ambigous way of spelling this:

Use a duration of 1. which is 6 quarter notes, or 12 eighth notes.

Or even:

Use a duration of "1." which is 6 quarter notes, or 12 eighth notes.

-- 
David Kastrup



Re: 12/8 Time signature and note length coding

2021-11-24 Thread Carl Sorensen

On 11/24/21, 2:26 PM, "lilypond-user on behalf of David Johnson" 
 wrote:

I'm working on an arrangement that is in 12/8 time signature and having 
trouble understanding how to encode note lengths and the associated 
chordmode timing.

Use a duration of 1.   That is 6 quarter notes, or 12 eighth notes.

HTH,

Carl





12/8 Time signature and note length coding

2021-11-24 Thread David Johnson
I'm working on an arrangement that is in 12/8 time signature and having 
trouble understanding how to encode note lengths and the associated 
chordmode timing.


Can anyone refer me to the proper place in documentation or even more 
helpful, list some examplesof how to show 1 chord for the duration of a 
12/8 measure?  I'm just not getting it from the documentation.


Many thanks,

David Johnson




Re: Reduce the gap between time signature and the first note

2021-11-10 Thread Xavier Scheuer
On Wed, 10 Nov 2021 at 00:33, Paolo Prete  wrote:
>
> Hello Xavier,
>
> I tried your tip but it seems to not produce any difference. See (tested
on 2.19.48):
>
> (snip)
>

Hello,

Well, you need to use it in combination with your space-alist =
#'((first-note fixed-space . 0))

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Reduce the gap between time signature and the first note

2021-11-09 Thread Paolo Prete
Hello Xavier,

I tried your tip but it seems to not produce any difference. See (tested on
2.19.48):

%

{

r1\break
\time 4/4 c''
\break
\once \override Score.TimeSignature.extra-spacing-width = #'(0.0 . 0.0)
\time 4/4 c''
\break
r

}

%

Cheers,
P


On Tue, Nov 9, 2021 at 9:34 AM Xavier Scheuer  wrote:

> On Sun, 7 Nov 2021 at 18:56, Paolo Prete  wrote:
> >
> > Hello,
> >
> > I'm trying to have a minimum space between a TimeSignature and the first
> note after it (and, consequently, all the following notes). I tried:
> >
> > \once\override Score.TimeSignature.space-alist =
> > #'((first-note fixed-space . 0))
> >
> > ...but there's still a gap which I can't eliminate. How can I fix it?
> >
> > Thanks
> > P
> >
> > %
> > <<
> > {
> >
> > c'1
> >
> > \time 3/4
> >
> > \once\override Score.TimeSignature.space-alist =
> > #'((first-note fixed-space . 0))
> >
> > cis'2.\break
> > s
> >
> > }
> > >>
> > %
>
> Hello,
>
> According to the Internals Reference manual the TimeSignature grob has
> some extra-spacing-width on the right side.
> Try adding
>
> \override Score.TimeSignature.extra-spacing-width = #'(0.0 . 0.0)
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer 
>
>


Re: Reduce the gap between time signature and the first note

2021-11-09 Thread Paolo Prete
Thank you Valentin, it works perfectly.


On Mon, Nov 8, 2021 at 11:09 PM Valentin Petzel  wrote:

> Hello Paolo,
>
> You could try to override the actual X-extent of the TimeSig, like
> \override Staff.TimeSignature.X-extent = #'(0 . 1.1)
>
> Cheers,
> Valentin
>
> Am Sonntag, 7. November 2021, 18:49:20 CET schrieb Paolo Prete:
> > Hello,
> >
> > I'm trying to have a minimum space between a TimeSignature and the first
> > note after it (and, consequently, all the following notes). I tried:
> >
> > \once\override Score.TimeSignature.space-alist =
> > #'((first-note fixed-space . 0))
> >
> > ...but there's still a gap which I can't eliminate. How can I fix it?
> >
> > Thanks
> > P
> >
> > %
> > <<
> > {
> >
> > c'1
> >
> > \time 3/4
> >
> > \once\override Score.TimeSignature.space-alist =
> > #'((first-note fixed-space . 0))
> >
> > cis'2.\break
> > s
> >
> > }
> >
> > %


Re: Reduce the gap between time signature and the first note

2021-11-09 Thread Xavier Scheuer
On Sun, 7 Nov 2021 at 18:56, Paolo Prete  wrote:
>
> Hello,
>
> I'm trying to have a minimum space between a TimeSignature and the first
note after it (and, consequently, all the following notes). I tried:
>
> \once\override Score.TimeSignature.space-alist =
> #'((first-note fixed-space . 0))
>
> ...but there's still a gap which I can't eliminate. How can I fix it?
>
> Thanks
> P
>
> %
> <<
> {
>
> c'1
>
> \time 3/4
>
> \once\override Score.TimeSignature.space-alist =
> #'((first-note fixed-space . 0))
>
> cis'2.\break
> s
>
> }
> >>
> %

Hello,

According to the Internals Reference manual the TimeSignature grob has some
extra-spacing-width on the right side.
Try adding

\override Score.TimeSignature.extra-spacing-width = #'(0.0 . 0.0)

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Reduce the gap between time signature and the first note

2021-11-08 Thread Valentin Petzel
Hello Paolo,

You could try to override the actual X-extent of the TimeSig, like
\override Staff.TimeSignature.X-extent = #'(0 . 1.1)

Cheers,
Valentin

Am Sonntag, 7. November 2021, 18:49:20 CET schrieb Paolo Prete:
> Hello,
> 
> I'm trying to have a minimum space between a TimeSignature and the first
> note after it (and, consequently, all the following notes). I tried:
> 
> \once\override Score.TimeSignature.space-alist =
> #'((first-note fixed-space . 0))
> 
> ...but there's still a gap which I can't eliminate. How can I fix it?
> 
> Thanks
> P
> 
> %
> <<
> {
> 
> c'1
> 
> \time 3/4
> 
> \once\override Score.TimeSignature.space-alist =
> #'((first-note fixed-space . 0))
> 
> cis'2.\break
> s
> 
> }
> 
> %

signature.asc
Description: This is a digitally signed message part.


Reduce the gap between time signature and the first note

2021-11-07 Thread Paolo Prete
Hello,

I'm trying to have a minimum space between a TimeSignature and the first
note after it (and, consequently, all the following notes). I tried:

\once\override Score.TimeSignature.space-alist =
#'((first-note fixed-space . 0))

...but there's still a gap which I can't eliminate. How can I fix it?

Thanks
P

%
<<
{

c'1

\time 3/4

\once\override Score.TimeSignature.space-alist =
#'((first-note fixed-space . 0))

cis'2.\break
s

}
>>
%


Re: how to create the same appearance of a full-measure rest in spite of time signature?

2021-08-08 Thread Kenneth Wolcott
Thank you!

On Sun, Aug 8, 2021 at 4:06 PM Carl Sorensen  wrote:
>
>
>
> On 8/8/21, 5:01 PM, "lilypond-user on behalf of Kenneth Wolcott" 
>  kennethwolc...@gmail.com> wrote:
>
> Hello again,
>
>   An update to my earlier question.  I'm engraving a piece now that
> uses 5/4 and 6/4 time signatures.  I have a full measure rest for one
> of each time signatures.  I'd like to have a single rest note for
> those measures, not "r1 r4" and not "r1 r2".  How to do that?\
>
> R1*5/4 in 5/4
> R1*6/4 or R1. In 6/4
>
> HTH,
>
> Carl
>
>
>   What about "9/8"? Etc...things that don't have a denominator of 4.
>
> Thanks,
> Ken
>
> On Tue, Jul 27, 2021 at 7:27 PM David Kastrup  wrote:
> >
> > Kenneth Wolcott  writes:
> >
> > > Well, that was stupid of me :-(
> > >
> > > I replaced, in the current engraving, "r2." with "R2.".
> > >
> > > It works as I had desired.
> >
> > LilyPond still needs you to specify the duration, yes, even though the
> > appearance is almost always the same (there are exceptions like 3/1
> > meter where using a semibreve rest would be too confusing).
> >
> > > Sorry for the noise.
> >
> > Happens.
> >
> > --
> > David Kastrup
>
>
>



Re: how to create the same appearance of a full-measure rest in spite of time signature?

2021-08-08 Thread Carl Sorensen


On 8/8/21, 5:01 PM, "lilypond-user on behalf of Kenneth Wolcott" 
 wrote:

Hello again,

  An update to my earlier question.  I'm engraving a piece now that
uses 5/4 and 6/4 time signatures.  I have a full measure rest for one
of each time signatures.  I'd like to have a single rest note for
those measures, not "r1 r4" and not "r1 r2".  How to do that?\

R1*5/4 in 5/4
R1*6/4 or R1. In 6/4

HTH,

Carl


  What about "9/8"? Etc...things that don't have a denominator of 4.

Thanks,
Ken

On Tue, Jul 27, 2021 at 7:27 PM David Kastrup  wrote:
>
> Kenneth Wolcott  writes:
>
> > Well, that was stupid of me :-(
> >
> > I replaced, in the current engraving, "r2." with "R2.".
> >
> > It works as I had desired.
>
> LilyPond still needs you to specify the duration, yes, even though the
> appearance is almost always the same (there are exceptions like 3/1
> meter where using a semibreve rest would be too confusing).
>
> > Sorry for the noise.
>
> Happens.
>
> --
> David Kastrup





Re: how to create the same appearance of a full-measure rest in spite of time signature?

2021-08-08 Thread Kenneth Wolcott
Hello again,

  An update to my earlier question.  I'm engraving a piece now that
uses 5/4 and 6/4 time signatures.  I have a full measure rest for one
of each time signatures.  I'd like to have a single rest note for
those measures, not "r1 r4" and not "r1 r2".  How to do that?

  What about "9/8"? Etc...things that don't have a denominator of 4.

Thanks,
Ken

On Tue, Jul 27, 2021 at 7:27 PM David Kastrup  wrote:
>
> Kenneth Wolcott  writes:
>
> > Well, that was stupid of me :-(
> >
> > I replaced, in the current engraving, "r2." with "R2.".
> >
> > It works as I had desired.
>
> LilyPond still needs you to specify the duration, yes, even though the
> appearance is almost always the same (there are exceptions like 3/1
> meter where using a semibreve rest would be too confusing).
>
> > Sorry for the noise.
>
> Happens.
>
> --
> David Kastrup



Re: how to create the same appearance of a full-measure rest in spite of time signature?

2021-07-27 Thread David Kastrup
Kenneth Wolcott  writes:

> Well, that was stupid of me :-(
>
> I replaced, in the current engraving, "r2." with "R2.".
>
> It works as I had desired.

LilyPond still needs you to specify the duration, yes, even though the
appearance is almost always the same (there are exceptions like 3/1
meter where using a semibreve rest would be too confusing).

> Sorry for the noise.

Happens.

-- 
David Kastrup



Re: how to create the same appearance of a full-measure rest in spite of time signature?

2021-07-27 Thread Kenneth Wolcott
Well, that was stupid of me :-(

I replaced, in the current engraving, "r2." with "R2.".

It works as I had desired.

Sorry for the noise.

Thanks,
Ken Wolcott

On Tue, Jul 27, 2021 at 6:53 PM Kenneth Wolcott 
wrote:

> Hi,
>
>   I have many engravings for various time signatures of 2/4, 3/4, 4/4, 6/4
> 3/8 6/8, etc.
>
>   I would like single full-measure rests to have the same appearance
> independent of the time signature.
>
>   Apparently other music scoring software applications have this ability.
>
>   I thought at first that I could use "R" to do this without any duration,
> but doing that does not work.
>
>   I looked at Learning, Notation and Snippets; I did not find what I was
> looking for.
>
> Thanks,
> Ken Wolcott
>


how to create the same appearance of a full-measure rest in spite of time signature?

2021-07-27 Thread Kenneth Wolcott
Hi,

  I have many engravings for various time signatures of 2/4, 3/4, 4/4, 6/4
3/8 6/8, etc.

  I would like single full-measure rests to have the same appearance
independent of the time signature.

  Apparently other music scoring software applications have this ability.

  I thought at first that I could use "R" to do this without any duration,
but doing that does not work.

  I looked at Learning, Notation and Snippets; I did not find what I was
looking for.

Thanks,
Ken Wolcott


Re: Forcing display of a time signature

2021-07-21 Thread Thomas Morley
Am Mi., 21. Juli 2021 um 12:07 Uhr schrieb N. Andrew Walsh
:
>
> Hi List,
>
> I have the following:
>
> 
> \version "2.20.0"
>
> textStencil =
> #(define-music-function
>(grob text)
>(key-list? markup?)
>#{ \override #grob . stencil = #ly:text-interface::print
>   \override #grob . text = #text #})
>
> timeStencil = \textStencil Staff.TimeSignature \etc
>
> {
>\once \timeStencil \markup \compound-meter #'(0 0)
>\time 3/2
>| a'2 b'4. a'8 g'4 g'
>\time 5/4
>| a'4 b'4. c''8 b' a' b'4
>\time 6/8
>| a'8 g' fis' gis'4. \bar "|."
> }
> 
>
> Let us say that I want to have several measures with the "0/0" time 
> signature, while other instruments are playing in metered 3/2. At some point, 
> I want to return the unmetered voice to the metered 3/2 the rest are playing, 
> and thus want to display the time signature at that point *for that 
> instrument only*. Is there a way to force (re-)displaying a time signature in 
> one Staff, without invoking the \time command and displaying it for all 
> voices?
>
> Thanks for the help,
>
> A

How about:

<<
\new Staff { \time 3/4 b'4 4 4  2. }
\new Staff { b'8 8 2 \set Staff.timeSignatureFraction = #'(3 . 4) 2. }
\new Staff { b'4. 8 r4 2. }
>>

Cheers,
  Harm



Re: Forcing display of a time signature

2021-07-21 Thread Aaron Hill

On 2021-07-21 2:56 am, N. Andrew Walsh wrote:

[ . . . ] Is there a way to force (re-)displaying a time
signature in one Staff, without invoking the \time command and 
displaying

it for all voices?


One option would be to use \time again, but then manually omit the 
signature where you do not want it to appear:



\version "2.22.0"

noTime = \omit Staff.TimeSignature
<< \new Staff { \once \noTime \time 3/4 b'4 4 4 }
   \new Staff { b'8 8 2 }
   \new Staff { \once \noTime b'4. 8 r4 } >>



-- Aaron Hill

Forcing display of a time signature

2021-07-21 Thread N. Andrew Walsh
Hi List,

I have the following:


\version "2.20.0"

textStencil =
#(define-music-function
   (grob text)
   (key-list? markup?)
   #{ \override #grob . stencil = #ly:text-interface::print
  \override #grob . text = #text #})

timeStencil = \textStencil Staff.TimeSignature \etc

{
   \once \timeStencil \markup \compound-meter #'(0 0)
   \time 3/2
   | a'2 b'4. a'8 g'4 g'
   \time 5/4
   | a'4 b'4. c''8 b' a' b'4
   \time 6/8
   | a'8 g' fis' gis'4. \bar "|."
}


Let us say that I want to have several measures with the "0/0" time
signature, while other instruments are playing in metered 3/2. At some
point, I want to return the unmetered voice to the metered 3/2 the rest are
playing, and thus want to display the time signature at that point *for
that instrument only*. Is there a way to force (re-)displaying a time
signature in one Staff, without invoking the \time command and displaying
it for all voices?

Thanks for the help,

A


Re: Extend all hairpins over time signature changes

2021-03-02 Thread Kieren MacMillan
>> THIS IS GOLD!
> I think it is spelt "Gould".
> David Kastrup


=)


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Re: Extend all hairpins over time signature changes

2021-03-02 Thread N Trocado
> A custom engraver could automate that:

Thank you so much Aaron! This is very helpful and instructive.
Nuno


Re: Extend all hairpins over time signature changes

2021-03-02 Thread David Kastrup
Kieren MacMillan  writes:

> Aaron,
>
>> So it just the case that you want hairpins to extend over time
> signatures?  A custom engraver could automate that:
>
> THIS IS GOLD!

I think it is spelt "Gould".

-- 
David Kastrup



Re: Extend all hairpins over time signature changes

2021-03-01 Thread Kieren MacMillan
Aaron,

> So it just the case that you want hairpins to extend over time signatures?  A 
> custom engraver could automate that:

THIS IS GOLD!

Thanks,
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Re: Extend all hairpins over time signature changes

2021-03-01 Thread Aaron Hill

On 2021-03-01 2:39 pm, N Trocado wrote:

Thank you for your answer.
I do use /once when appropriate, and defining a variable indeed helps
with the typing.
But I was hoping for a way of establishing that all hairpins that
cross time signature changes extend beyond the barline, and if
lilypond took care of this automatically it would be one less thing
for me to worry about .


So it just the case that you want hairpins to extend over time 
signatures?  A custom engraver could automate that:



\version "2.22.0"

extendHairpinsAcrossTimeSignature =
#(lambda (context)
  (let ((hairpins '()))
   (define (extend-hairpin grob)
(ly:grob-set-property! grob 'to-barline #f))
   (define (add-hairpin grob)
(set! hairpins (cons grob hairpins)))
   (define (remove-hairpin grob)
(set! hairpins (remove (lambda (x) (eq? x grob)) hairpins)))
   (make-engraver
(listeners
     ((time-signature-event engraver event)
  (for-each extend-hairpin hairpins)
  (set! hairpins '(
(acknowledgers
 ((hairpin-interface engraver grob source)
  (add-hairpin grob)))
(end-acknowledgers
 ((hairpin-interface engraver grob source)
  (remove-hairpin grob))

\new Staff \with {
  \consists \extendHairpinsAcrossTimeSignature
}
\fixed c' {
  | \time 3/4 g2 a8 \< b | cis'2 \! r4
  | d'4 \> cis' b | \time 2/4 ais2 \!
  | g4 fis8 \< g | \time 3/4 a8 \! b a2 \>
  | g4 \! f e | \time 2/4 d2 \bar "|."
}



-- Aaron Hill

Re: Extend all hairpins over time signature changes

2021-03-01 Thread N Trocado
Thank you for your answer.
I do use /once when appropriate, and defining a variable indeed helps with the 
typing.
But I was hoping for a way of establishing that all hairpins that cross time 
signature changes extend beyond the barline, and if lilypond took care of this 
automatically it would be one less thing for me to worry about .
Nuno Trocado

From: Aaron Hill 
Sent: Monday, March 1, 2021 10:25 PM
To: N Trocado 
Cc: lilypond-user@gnu.org 
Subject: Re: Extend all hairpins over time signature changes

On 2021-03-01 9:52 am, N Trocado wrote:
> I like to have hairpins cut through barlines, extending to the note
> that ends them on the first beat of the next bar, whenever there's a
> time signature change. Stopping short of the barline in this case, as
> is the default, leaves a bit too much space between the end of the
> hairpin and the dynamic symbol.
> I know that I can \override Hairpin.to-barline = ##f. But would it be
> possible to configure the default behavior to work as described,
> instead of spraying overrides everywhere?

Are you doing \once \override or just \override?  A singular \override
will affect all Hairpins from that point in the music forward (or until
another \override or a \revert).  Assuming you want this behavior for
all Hairpins across all staves, just do the \override at a suitably
global level.


% Top-level or within \score
\layout { \context { \Staff \override Hairpin.to-barline = ##f } }


If you need to scope this to a particular Staff, either use the \with
block or just \override as the first thing in the music:


\new Staff \with { \override Hairpin.to-barline = ##f } { ... }
% or %
{ \override Hairpin.to-barline = ##f ... }


Finally, if you need a mixture of Hairpins that either extend to the
note or stop at the barline, then you might want to define a helper
variable:


extend = -\tweak to-barline ##f \etc

\fixed c' { \time 3/4 g2 a8 \extend \< b | \time 2/4 cis'2 \! }



-- Aaron Hill


Re: Extend all hairpins over time signature changes

2021-03-01 Thread Aaron Hill

On 2021-03-01 9:52 am, N Trocado wrote:

I like to have hairpins cut through barlines, extending to the note
that ends them on the first beat of the next bar, whenever there's a
time signature change. Stopping short of the barline in this case, as
is the default, leaves a bit too much space between the end of the
hairpin and the dynamic symbol.
I know that I can \override Hairpin.to-barline = ##f. But would it be
possible to configure the default behavior to work as described,
instead of spraying overrides everywhere?


Are you doing \once \override or just \override?  A singular \override 
will affect all Hairpins from that point in the music forward (or until 
another \override or a \revert).  Assuming you want this behavior for 
all Hairpins across all staves, just do the \override at a suitably 
global level.



% Top-level or within \score
\layout { \context { \Staff \override Hairpin.to-barline = ##f } }


If you need to scope this to a particular Staff, either use the \with 
block or just \override as the first thing in the music:



\new Staff \with { \override Hairpin.to-barline = ##f } { ... }
% or %
{ \override Hairpin.to-barline = ##f ... }


Finally, if you need a mixture of Hairpins that either extend to the 
note or stop at the barline, then you might want to define a helper 
variable:



extend = -\tweak to-barline ##f \etc

\fixed c' { \time 3/4 g2 a8 \extend \< b | \time 2/4 cis'2 \! }



-- Aaron Hill



  1   2   3   4   5   6   7   8   9   10   >