Re: Bend

2024-04-20 Thread gehentogo
Hey Paul,

\lheel is what I had in mind, except it looks more like a "U," while I
am used to seeing something a bit flatter. I'm surprised there isn't
something for this as it's not so uncommon in jazz.

But, I might have found something that kind of works: instead of
^\lheel (^ ensures it is above the note), I am using ^"◡". After a
quick google search, I found out there is ascii code for the lower
half of a circle. I feel like this is a good, 90% solution.

Cheers,

Brian

On Sat, Apr 20, 2024 at 11:59 PM waterhorsemusic
 wrote:
>
> Not perfect but \lheel works.
>
> HTH,
>
> Paul
>
>
>
>
> Sent from my Galaxy
>
>
>  Original message 
> From: gehent...@gmail.com
> Date: 4/20/24 1:39 PM (GMT-07:00)
> To: lilypond-user@gnu.org
> Subject: Bend
>
> Hello friends,
>
> I thought this was recently covered, but I haven't been able to find
> what I need.
>
> I'm looking for an articulation to add that will indicate a note is
> supposed to bend down, before bending back up again. Usually I see it
> looking something like an upside-down fermata, without the dot. I can
> do this in Musescore easily, but I've never found a satisfactory bend
> like this in Lilypond. I have a script for a scoop, and I know about
> \bendBefore, but not this one.
>
> Thanks!
>
> Brian
>



Re: subscript in lyrics

2024-04-20 Thread mskala
On Sat, 20 Apr 2024, David Olson wrote:

> I'm a lyric poet writing songs about science.
>
> "CO2" is three syllables and often works better than "carbon dioxide".
>
> It's acceptable even if "2" doesn't appear as a subscript (one sees this
> usage frequently), but subscript would be cool. 
>
> A superscript option would be cool too.

Easy enough to do using \markup and \sub, as in:

<<
  \new Voice = melody { c'2 c'2 | c'4 bes4 f'2 | }
  \new Lyrics \lyricsto melody { \lyricmode {
"ooh!" "ooh!" C O \markup { \sub { "2" } "!" }
  } }
>>

There are a number of variations possible:  \super for superscript,
\normal-size-sub for subscript without making the font smaller (which
might be easier to read even if it's not standard chemistry usage), and so
on.  In general, you can just break into \markup and use any of the usual
markup commands.  See "Formatting text" in the Notation manual:
   https://lilypond.org/doc/v2.24/Documentation/notation/formatting-text

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

subscript in lyrics

2024-04-20 Thread David Olson
Hello LilyPonders, 

I'm a lyric poet writing songs about science. 

"CO2" is three syllables and often works better than "carbon dioxide". 

It's acceptable even if "2" doesn't appear as a subscript (one sees this usage 
frequently), but subscript would be cool. 

A superscript option would be cool too. 

And example of "CO2" lyrics appears below. 

As for LilyPond Notation Reference, I congratulate the person who chose the 
following example text to demonstrate divisi lyrics on the "Techniques Specific 
to Lyrics" page. 

} \new Lyrics \lyricsto "melody" { They shall not o -- ver -- come } \new 
Lyrics \lyricsto "melody" { We will _ } 
On the one hand, I don't really expect a solution to my stated problem; on the 
other hand, near the bottom of the page Techniques Specific to Lyrics, when I 
encountered the example cited above, I reacted passionately to "They shall 
not..." becoming "We will overcome" -- a definite sense of the Muse at work. 
This definite sense was perhaps the intellectual thought that paralleled my 
passion. 

Well-chosen! and Thanks for the Inspiration! 

David Olson 

=== 

CO2 usage example 
(tune : Ton-y-botel, trochaic) 


stanzaTwo = \lyricmode { 
\set stanza = "2." 

End of Per -- mian Mass Ex -- tinc -- tion. 
Great -- est dy -- ing Earth has known! 
Lar -- gest ev -- er plume e -- rup -- tion 
O'er a con -- ti -- nen -- tal zone. 

Flood ba -- salt flows in Si -- ber -- ia 
last -- ed o'er a mil -- lion years; 
Filled the air with C O "2," a 
Green house gas we al -- so fear. 

} 


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: Bend

2024-04-20 Thread waterhorsemusic
Not perfect but \lheel works.HTH,PaulSent from my Galaxy
 Original message From: gehent...@gmail.com Date: 4/20/24  1:39 
PM  (GMT-07:00) To: lilypond-user@gnu.org Subject: Bend Hello friends,I thought 
this was recently covered, but I haven't been able to findwhat I need.I'm 
looking for an articulation to add that will indicate a note issupposed to bend 
down, before bending back up again. Usually I see itlooking something like an 
upside-down fermata, without the dot. I cando this in Musescore easily, but 
I've never found a satisfactory bendlike this in Lilypond. I have a script for 
a scoop, and I know about\bendBefore, but not this one.Thanks!Brian

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


Bend

2024-04-20 Thread gehentogo
Hello friends,

I thought this was recently covered, but I haven't been able to find
what I need.

I'm looking for an articulation to add that will indicate a note is
supposed to bend down, before bending back up again. Usually I see it
looking something like an upside-down fermata, without the dot. I can
do this in Musescore easily, but I've never found a satisfactory bend
like this in Lilypond. I have a script for a scoop, and I know about
\bendBefore, but not this one.

Thanks!

Brian



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: Multiple parts on the same stems

2024-04-20 Thread Gerardo Ballabio
I didn't know about \drummode. I'll try that.

Thanks
Gerardo

Il giorno ven 19 apr 2024 alle ore 22:46 Thomas Morley
 ha scritto:
>
> Am Di., 16. Apr. 2024 um 22:01 Uhr schrieb Gerardo Ballabio
> :
> >
> > Hello all,
> > I'm trying to typeset a percussion score with several instruments on
> > the same staff. When they play simultaneous notes I want to line them
> > up all on the same stem, like this (output attached, percussion1.pdf):
> >
> > %%
> > \version "2.24.1"
> >
> > \new Staff \relative {
> >   \clef "varpercussion"
> >   \stemDown
> >   R1 |
> >   r2 2\f-> |
> >   R1 |
> >   r2 q2-> |
> > }
> > %%
> >
> > But I'd like to write down each part separately, so that I may also
> > print the single parts without redoing everything. And I also want to
> > use different note heads for each instrument.
> > This is the best I could come up with:
> >
> > %%
> > \version "2.24.1"
> >
> > bassDrum = \relative {
> >   \stemDown
> >   s1 |
> >   s2 b2-> |
> >   s1 |
> >   s2 b2-> |
> > }
> >
> > cymbals = \relative {
> >   \override NoteHead.style = #'xcircle \stemDown
> >   s1 |
> >   s2 f'2 |
> >   s1 |
> >   s2 f2 |
> > }
> >
> > tamTam = \relative {
> >   \override NoteHead.style = #'cross \stemDown
> >   s1 |
> >   s2 e2 |
> >   s1 |
> >   s2 e2 |
> > }
> >
> > pause = \new Voice {
> >   \clef "varpercussion"
> >   \time 4/4
> >   R1 |
> >   r2 s2\f |
> >   R1 |
> >   r2 s2 |
> > }
> >
> > percussions = \new Voice \relative {
> >   <<
> > \cymbals
> >   \\
> > \tamTam
> >   \\
> > \bassDrum
> >   >>
> > }
> >
> > \new Staff
> > <<
> >   \pause
> >   \percussions
> > >>
> > %%
> >
> > But as you can see (output attached, percussion2.pdf) the three notes
> > aren't aligned on the same stem, only two of them are.
> >
> > I tried \partCombine, it works nicely with two parts, but if there's a
> > way to combine three or more I didn't find it.
> >
> > Any help is much appreciated.
> >
> > Thanks
> > Gerardo
>
> I don't understand why you're writing a percussion score in \notemode,
> i.e. with common Voice, Staff etc.
> We do have \drummode, DrumVoice, DrumStaff and the possibility to
> customize the appearance:
>
> #(define my-style
>   '((bassdrum default  accent  -1)
> (splashcymbal xcircle #f3)
> (tamtam   cross   #f   -5)))
>
> one = \drummode { s1 s2 bd s1 s2 bd }
> two = \drummode { s1 s2  cyms2 s1 s2  cyms2 }
> three = \drummode { s1 s2 tt2 s1 s2 tt2 }
> four = \drummode {
>   \clef "varpercussion"
>   \time 4/4
>   R1 |
>   r2 s2\f |
>   R1 |
>   r2 s2 |
> }
>
> \new DrumStaff
>   \with {
> drumStyleTable = #(alist->hash-table my-style)
>   }
>   \new DrumVoice << \one \two \three \four >>
>
> HTH,
>   Harm



LilyPond 2.25.15

2024-04-20 Thread Jonas Hahnfeld via LilyPond user discussion
We are happy to announce the release of LilyPond 2.25.15. This is
termed a development release, but these are usually reliable for
testing new features and recent bug fixes. However, if you require
stability, we recommend using version 2.24.3, the current stable
release.
Please refer to the Installing section in the Learning Manual for
instructions how to set up the provided binaries:
https://lilypond.org/doc/v2.25/Documentation/learning/installing


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


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