Re: zero horizontal space between note heads

2023-10-29 Thread Carl Sorensen
On Sun, Oct 29, 2023 at 7:13 AM Werner LEMBERG  wrote:

>
> For testing purposes I try to eliminate spacing completely.
>
> I tried
>
> ```
> \version "2.25.9"
>
> #(set-global-staff-size 26)
>
> {
>   \override Staff.Clef.show-horizontal-skylines = ##t
>   \override Staff.KeySignature.show-horizontal-skylines = ##t
>   \override Staff.TimeSignature.show-horizontal-skylines = ##t
>   \override NoteHead.show-horizontal-skylines = ##t
>
>   \override Score.SpacingSpanner.spacing-increment = 0
>
>   \override Staff.KeySignature.extra-spacing-width = #'(0 . 0)
>   \override Staff.TimeSignature.extra-spacing-width = #'(0 . 0)
>
>   \override Staff.LeftEdge.space-alist.clef = #'(extra-space . 0)
>   \override Staff.Clef.space-alist.key-signature = #'(extra-space . 0)
>   \override Staff.KeySignature.space-alist.time-signature = #'(extra-space
> . 0)
>   \override Staff.KeySignature.space-alist.first-note = #'(fixed-space . 0)
>   \override Staff.TimeSignature.space-alist.first-note = #'(fixed-space .
> 0)
>
>   \key cis \major
>   bis'16 bis' bis' bis'
> }
> ```
>
> and get the attached output.  However, there is still some horizontal
> space between the note heads.  What is it?  I tried hard to find
> something in the IR but wasn't successful...
>

I don't have a perfect answer.

But the NoteColumn is slightly wider than the NoteHead.  If you show the
NoteColumn skylines, and set packed-spacing == ##t, you get the NoteColumns
(but not the NoteHeads) tightly adjacent to each other.

\version "2.25.9"

#(set-global-staff-size 26)

{
  \override Staff.Clef.show-horizontal-skylines = ##t
  \override Staff.KeySignature.show-horizontal-skylines = ##t
  \override Staff.TimeSignature.show-horizontal-skylines = ##t
  \override NoteHead.show-horizontal-skylines = ##t
  \override NoteColumn.show-horizontal-skylines = ##t

\override Score.SpacingSpanner.packed-spacing = ##t

  \override Staff.KeySignature.extra-spacing-width = #'(0 . 0)
  \override Staff.TimeSignature.extra-spacing-width = #'(0 . 0)

  \override Staff.LeftEdge.space-alist.clef = #'(extra-space . 0)
  \override Staff.Clef.space-alist.key-signature = #'(extra-space . 0)
  \override Staff.KeySignature.space-alist.time-signature = #'(extra-space
. 0)
  \override Staff.KeySignature.space-alist.first-note = #'(fixed-space . 0)
  \override Staff.TimeSignature.space-alist.first-note = #'(fixed-space . 0)

  \key cis \major
  bis'16 bis' bis' bis'
}

Carl


Re: Switching between one staff and two

2023-10-29 Thread Evan Driscoll
On Sun, Oct 29, 2023 at 2:08 AM Werner LEMBERG  wrote:

> Look up the documentation of `Keep_alive_together_engraver`, which
> explains how to make LilyPond split such divisi parts automatically.
>
>
> https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves


Thanks. I've been playing around with this, but I still am not sure how to
make it work -- I've tried a few things, and it's not removing the empty
staves. I'm attaching my current attempt below:

Evan


\version "2.20.0"
\language "english"

global = {
  \key d \major
  \time 4/4
  \clef bass
}

celloI = \relative c' {
  \global
  \once \unset Staff.keepAliveInterfaces
  R1*4/4*2

  % \time 3/2 here
  R1*3/2*3

  c2 c c |
  R1*3/2
  c2 c c
  R1*3/2*2
  c2 c c |

  \break

  c c c |
  c c c |
  c c c |
  c c c |

  \break
  \time 2/2
  c4 c c c
}


celloII = \relative c' {
  \global
  \once \unset Staff.keepAliveInterfaces
  c4 c c c |

  \break

  c2 c

  \time 3/2
  c2 c c
  c c c
  c c c

  \break
  \repeat unfold 6 {c c c}
  \break
  \repeat unfold 4 { c c c}

  \undo \omit TimeSignature
  \break
  \time 2/2
  c4 c c c
}


\score {
  \new StaffGroup \with { \consists Keep_alive_together_engraver } <<
  \new Staff \with {
instrumentName = "Cello I"
\RemoveAllEmptyStaves
%\override VerticalAxisGroup.remove-layer = 1
  } \celloI
  \new Staff \with {
instrumentName = "Cello II"
\RemoveAllEmptyStaves
%\override VerticalAxisGroup.remove-layer = 1
  } \celloII
>>
  \layout {
\context {
  \Staff
  \RemoveEmptyStaves
}
  }
  \midi { }
}


Re: LSR down

2023-10-29 Thread Jean Abou Samra



> Le 29 oct. 2023 à 22:33, Knute Snortum  a écrit :
> 
> It looks like https://lsr.di.unimi.it/ is down.  Does anyone know who 
> administers that site?


Sebastiano, now in CC.



Re: Formatting for a tie

2023-10-29 Thread Samuel Sloniker
Thank you everyone! I got the slurs formatted correctly.

\version "2.22.1"

\header {
  title = "Yo sé a Quién he creído"
  composer = "James McGranaham"
  poet = "Daniel W. Whittle, tr. Samuel L. Sloniker"
  copyright = \markup {
\center-column {
  "Traducción © 2023 Samuel L. Sloniker"
  "Creative Commons Atribución 4.0 Internacional"
  \line {
\with-url "https://creativecommons.org/licenses/by/4.0/deed.es;
  "https://creativecommons.org/licenses/by/4.0/deed.es;
  }
}
  }
}

\new GrandStaff <<
  \new Staff {
\relative c' {
  \time 4/4
  \key c \minor
  r2. 4
  4. 8 << { aes8[( g]) } \\ { ees4 } >> << { f8[( ees]) } \\ 
{ bes4 } >>
  4   
  4. 8 [( ]) [( ])
  2. 4
  4. 8 << { aes8[( g]) } \\ { ees4 } >> << { f8[( ees]) } \\ 
{ bes4 } >>
  4   
  4. 8 << { c'8[( bes]) } \\ { d,4 } >> << { aes'8[( f]) } 
\\ { d4 } >>
  2. \bar "||" \break \mark "Coro" 8 8
  4 4. 8 [ ]
  4 4. 8  []
  4 4. 8 [ ]
  4 2 4
   4. 8 [ ]
  4 2 4 % in original, 4 is 8 twice
  4. 8 4 
  2.
}
  }
  \addlyrics {
\set stanza = #"1. "
No | sé por qué _ Dios _ | me ha da -- do | Su gran gra -- ci -- | a, 
ni_por | qué Cris -- to _ me _ | re -- di -- mió del_pe -- | ca -- do y _ del _ 
| mal. Pe -- ro sé a Quién he cre -- i -- do y estoy se -- gu -- ro de que Él 
pue -- de guar -- dar lo que le con -- fí -- e pa -- ra a -- quel dí -- a.
  }
  \addlyrics {
\set stanza = #"2. "
No | sé có -- mo _ la _ | sal -- va -- ción a | mí me im  -- par -- | tió, 
ni | có -- mo te -- _ ner _ | fe en Él Me_dio | paz en mi _ al -- _ | ma.
  }
  \addlyrics {
\set stanza = #"3. "
No | sé có -- mo _ el_Es -- _ | pír -- i -- tu me | con -- ven -- ce de | 
mal, dán -- | do -- me fe _ en _ | Cris -- to a tra -- | vés de Su _ Ver -- _ | 
bo.
  }
  \addlyrics {
\set stanza = #"4. "
No | sé qué del _ bien _ | o del mal ten -- | dré en mi vi -- | da, de | 
prue -- bas o _ fa -- _ | ci -- li -- dad, Antes | de que Lo _ ve -- _ | a.
  }
  \addlyrics {
\set stanza = #"5. "
No | sé cuan -- do _ ven -- _ drá Cri -- sto, de no -- che o dí -- a, ni si 
cru -- zar -- _ é _ el vall -- e, o_ser -- é arr -- e -- ba -- ta -- _ do.
  }

  \new Staff {
\relative c {
  \clef "bass"
  \time 4/4
  \key c \minor
  r2. 4
  4. 8 << { c'8[( bes]) } \\ { ees,4 } >> << { aes8[( 
g]) } \\ { ees4 } >>
 
  4. 8 4 << { d8[( ees]) } \\ { bes'4 } >>
  2. 4
  4. 8 << { c'8[( bes]) } \\ { ees,4 } >> << { aes8[( 
g]) } \\ { ees4 } >>
 
  4. 8 4 << { f'8[( aes]) } \\ { bes,4 } >>
  2. \bar "||" \break 8 
  4 4. 8 [ ]
  4 4. 8 [ ]
  4 4. 8 [ ]
  4 2 4
   4. 8 [ ]
  4 2 4 % in original, 4 is 
actually 8 twice
  4. 8 << { bes8[( c]) } \\ { bes'4 } >> 
  2.
}
  }
>>



\layout {
  indent = #0
  \context {
\Score
\remove "Bar_number_engraver"
  }
}




LSR down

2023-10-29 Thread Knute Snortum
It looks like https://lsr.di.unimi.it/ is down.  Does anyone know who
administers that site?

--
Knute Snortum


Re: zero horizontal space between note heads

2023-10-29 Thread Werner LEMBERG

>> If I set `packed_spacing`, it's getting a little bit tighter, but
>> there is still horizontal whitespace between the note heads, and I
>> still don't know where it comes from.
> 
> What happens if you set the Beam X-extent to point-stencil (or
> whatever)?

Alas, this doesn't help.  Replacing the notes with quarters, the
result is the same.

Note that I *can* make the note heads touch horizontally by setting

```
\override NoteHead.extra-spacing-width = #'(+inf.0 . -inf.0)
```

But this is not a solution; it just hides the added space (and there
is still space between the time signature and the first note).

Maybe the space is hard-coded and built-in, but I couldn't find the
right spot by inspection of the source code – if so, I'm interested in
the actual amount that is added.


Werner


Re: zero horizontal space between note heads

2023-10-29 Thread Kieren MacMillan
Hi Werner,

> If I set `packed_spacing`, it's getting a little bit tighter, but
> there is still horizontal whitespace between the note heads, and I
> still don't know where it comes from.

What happens if you set the Beam X-extent to point-stencil (or whatever)?

– Kieren
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: zero horizontal space between note heads

2023-10-29 Thread Werner LEMBERG

> [...] However, there is still some horizontal space between the note
> heads.  What is it?  I tried hard to find something in the IR but
> wasn't successful...

If I set `packed_spacing`, it's getting a little bit tighter, but
there is still horizontal whitespace between the note heads, and I
still don't know where it comes from.


Werner

==


```tex
\version "2.25.9"

#(set-global-staff-size 26)

{
  \override Staff.Clef.show-horizontal-skylines = ##t
  \override Staff.KeySignature.show-horizontal-skylines = ##t
  \override Staff.TimeSignature.show-horizontal-skylines = ##t
  \override NoteHead.show-horizontal-skylines = ##t

  \override Score.SpacingSpanner.shortest-duration-space = 0
  \override Score.SpacingSpanner.packed-spacing = ##t

  \override Staff.KeySignature.extra-spacing-width = #'(0 . 0)
  \override Staff.TimeSignature.extra-spacing-width = #'(0 . 0)

  \override Staff.LeftEdge.space-alist.clef = #'(extra-space . 0)
  \override Staff.Clef.space-alist.key-signature = #'(extra-space . 0)
  \override Staff.KeySignature.space-alist.time-signature = #'(extra-space . 0)
  \override Staff.KeySignature.space-alist.first-note = #'(fixed-space . 0)
  \override Staff.TimeSignature.space-alist.first-note = #'(fixed-space . 0)

  \key cis \major
  bis'8 bis' bis' bis'
}
```


Re: Moving \dim or \cresc

2023-10-29 Thread Knute Snortum
On Sun, Oct 29, 2023 at 1:59 AM Jean Abou Samra  wrote:

>
> When I was experimenting with moving the X and Y offsets of \dim and
> \cresc, I found that X-offset doesn't seem to work with a tweak or an
> override.
>
>
> X-offset is rarely meaningful with spanners because they conceptually have
> two X positions, not one.
>
> You can adjust them independently with
>
> \override DynamicTextSpanner.bound-details.left.padding = 1
>
> \override DynamicTextSpanner.bound-details.right.padding = 1
>

 Thank you for the explanation. That does what I was hoping for.


zero horizontal space between note heads

2023-10-29 Thread Werner LEMBERG

For testing purposes I try to eliminate spacing completely.

I tried

```
\version "2.25.9"

#(set-global-staff-size 26)

{
  \override Staff.Clef.show-horizontal-skylines = ##t
  \override Staff.KeySignature.show-horizontal-skylines = ##t
  \override Staff.TimeSignature.show-horizontal-skylines = ##t
  \override NoteHead.show-horizontal-skylines = ##t

  \override Score.SpacingSpanner.spacing-increment = 0

  \override Staff.KeySignature.extra-spacing-width = #'(0 . 0)
  \override Staff.TimeSignature.extra-spacing-width = #'(0 . 0)

  \override Staff.LeftEdge.space-alist.clef = #'(extra-space . 0)
  \override Staff.Clef.space-alist.key-signature = #'(extra-space . 0)
  \override Staff.KeySignature.space-alist.time-signature = #'(extra-space . 0)
  \override Staff.KeySignature.space-alist.first-note = #'(fixed-space . 0)
  \override Staff.TimeSignature.space-alist.first-note = #'(fixed-space . 0)

  \key cis \major
  bis'16 bis' bis' bis'
}
```

and get the attached output.  However, there is still some horizontal
space between the note heads.  What is it?  I tried hard to find
something in the IR but wasn't successful...


Werner


Re: Formatting for a tie

2023-10-29 Thread David Kastrup
Jean Abou Samra  writes:

> Le samedi 28 octobre 2023 à 21:21 -0400, Samuel Sloniker a écrit :
>> How can I format this tie in Lilypond? I'm writing a Lilypond file for an
>> existing song; this image is from a scan of a hymnal.
>
>
> If you are having trouble finding the answer to this in the
> documentation or Web searches, it's because the term for this bow is “
> slur” (not “tie”). A tie is between two notes having the same pitch,
> and makes the second silent so that the first one is effectively
> prolonged.

Not every instrument is purely percussive, and even most percussive
instruments have some way of ending a note and/or providing for letting
it decay naturally.  Your description makes it sound as if there is no
difference between a rest and a note continued by a tie.

-- 
David Kastrup



Re: Formatting for a tie

2023-10-29 Thread Jean Abou Samra
Le samedi 28 octobre 2023 à 21:21 -0400, Samuel Sloniker a écrit :
> How can I format this tie in Lilypond? I'm writing a Lilypond file for an
> existing song; this image is from a scan of a hymnal.


If you are having trouble finding the answer to this in the documentation or Web
searches, it's because the term for this bow is “
slur” (not “tie”). A tie is between two notes having the same pitch, and makes
the second silent so that the first one is effectively prolonged.




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


Re: Moving \dim or \cresc

2023-10-29 Thread Jean Abou Samra

> When I was experimenting with moving the X and Y offsets of \dim and \cresc, I
> found that X-offset doesn't seem to work with a tweak or an override.

X-offset is rarely meaningful with spanners because they conceptually have two X
positions, not one.

You can adjust them independently with

\override DynamicTextSpanner.bound-details.left.padding = 1

\override DynamicTextSpanner.bound-details.right.padding = 1


> In fact, I couldn't get \tweak or -\tweak to work at all with \dim and \cresc.


\tweak color red \dim

works for me.




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


Re: Switching between one staff and two

2023-10-29 Thread Werner LEMBERG


> I've pasted some example code after my signature I'm having trouble with.
> Can anyone help me solve these problems: [...]

Look up the documentation of `Keep_alive_together_engraver`, which
explains how to make LilyPond split such divisi parts automatically.

https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves


Werner



Switching between one staff and two

2023-10-29 Thread Evan Driscoll
Something that I always have trouble with (I'm only an occasional Lilypond
user) is writing parts that switch from one staff to two and back, and
getting that so it's correct. If there's a relevant section of the manual I
have a hard time finding it, and I often find problems when adapting
previous times I've dealt with this.

I've pasted some example code after my signature I'm having trouble with.
Can anyone help me solve these problems:

   - The way I'm introducing a second staff, I need to use "\with { \omit
   TimeSignature}" or it will display the time signature on one of the staffs
   when it splits. However, there's a time signature change when switching
   back to a single staff, and this prevents it from showing the time
   signature for that staff when it switches back.
   - As can be seen, neither "\with { \once \omit ...}" instead nor "\undo
   \omit TimeSignature" before the end helps. Even if I remove the "\with",
   while it places the time signature it does not show the staff lines under
   it.
   - There's also an empty space to the right of the final bar line before
   it splits. I honestly have no clue why this is here. If I leave out the
   "\with" then it writes the time signature into it -- for *some* reason I
   don't understand -- but not properly set for it to just be invisible here.

More generally, this is an area where I feel I never know what I'm doing
and just throw stuff at the compiler until it works *well enough*, and then
I give up. Is there some fundamental knowledge that I seem to be missing
here? Something I've not been able to find in the manual?

(Also, LilyBin doesn't seem to be a thing any more. Is there any
replacement? I'm not turning something up.)

Thanks,
Evan


\version "2.20.0"
\language "english"

global = {
  \key d \major
  \time 4/4
  \tempo 4=100
}

measures = \relative c' {
  \repeat unfold 5
\repeat unfold 6 c4
}

cello = \relative c' {
  \global
  c4 c c c |
  \time 3/2
  \measures
  \break

  <<
{
  \measures
  \break
  \measures
  \break
}
\new Staff
\with { \once \omit TimeSignature }
{
  \clef bass
  \key d \major

  \measures
  \break
  \measures

  \undo \omit TimeSignature
  \break
}
  >>

  \break
  \time 2/2
  c4 c c c

}

\score {
  \new GrandStaff
  \new Staff \with {
instrumentName = "Cello"
midiInstrument = "cello"
  } { \clef bass \cello }
  \layout { }
  \midi { }
}