Notes en lyrics left justified

2025-03-21 Thread Ad Rommel
When I compile the code below, I get a staff over the entire width of my page 
(see example 1), but the notes f and a, including the lyrics 'OK' and 'thanks' 
are in the middle of the staff.
 
How can I make sure that the lyrics and notes on the left are justified? (see 
example 2)
 
\version "2.22.1"
\layout {
indent = #0
line-width = #180
#(layout-set-staff-size 24)
}
 
{
\key f \major \time 2/4
c'4 f'  \bar "" \break
c' a'  \bar "" \break
}
 
\addlyrics {
Yes OK,
No thanks,
}
 
Example 1.Wrong outlined
 
Example 2. This is what I want.

Re: Repeat barlines with "tails" in piano staff

2025-03-21 Thread Thomas Morley
Am Fr., 21. März 2025 um 17:09 Uhr schrieb Richard Shann
:
>
> On Thu, 2025-03-20 at 19:48 +0100, Hans Aikema wrote:
> >
> >
> > > On 20 Mar 2025, at 18:56, Knute Snortum  wrote:
> > >
> > > On Thu, Mar 20, 2025 at 5:17 AM Richard Shann
> > >  wrote:
> > > > When using \bar ":|." in a piano staff the barline spans the two
> > > > staffs, but when using \bar ":|]" it does not - is there a way to
> > > > fix
> > > > this?
> > > >
> > >
> > >
> > > When I ran your example source with 2.25.24, I got a thin line
> > > spanning the staves.  Is this not what you see?  (attached
> > > picture)
> > >
> > > --
> > > Knute Snortum
> > >
> > > 
> >
> > If you’re looking for a way to connect the staves with the thin-thick
> > barlines instead of the thin line - those would need a custom barline
> > to be defined with \defineBarLine
> >
> > e.g.
> >
> > 8><8><8><8><8><8><8><8><8><8><8><
> >
> > \version "2.24.4" % should also work at 2.25, but I don't have the
> > development version installed, so I could not check; rendered result
> > is from 2.24.4
> > \defineBarLine  ":|]-connected"  #'( #t #f " |.")
> >
> > \score {
> > \new PianoStaff <<
> > \new Staff  <<
> > \new Voice  {
> > c'1 \bar ":|]-connected"
> > c'1
> > }
> > >>
> > \new Staff  <<
> > \new Voice  {
> > \clef bass
> > c1 \bar ":|]-connected"
> > c1
> > }
> > >>
> > >>
> > }
> >
> > 8><8><8><8><8><8><8><8><8><8><8><
> >
>
> Thank you very much for this: food for further study there. I think
> what would look better was if the top staff had the tail above and the
> bottom staff the tail below - so it would look a bit like a brace. I'll
> try to study the docs under \defineBarLine to see  if this can be done.
>
> Richard
>
>

Does
https://lsr.di.unimi.it/LSR/Item?id=1032
help?

Cheers,
  Harm



Re: Orthodox Chant

2025-03-21 Thread Павел
Yes, you can use \cadenzaOn to disable automatic bar lines engraving. 
See the example:


```
\version "2.24.2"
\include "english.ly"

\relative c' {
\cadenzaOn \autoBeamOff \omit Staff.TimeSignature
	\key f \major f4 f g2(a) f4 f f g a bf2 \bar"" a4 a \bar"" g2 f 
\bar"|."

} \addlyrics {
When the stone __ had been sealed by the Jews,
\once \override LyricText.self-alignment-X = #LEFT
while_the_soldiers_were_guarding_Thy_most
\once \override LyricText.self-alignment-X = #CENTER
pure Bod -- y.
}
```

В Пт, 21 мар 2025 в 16:44:50 +00:00:00, thedoctor81877 via 
LilyPond user discussion  написал:

Good Morning,

I am trying to set unmetered Orthodox chant, and have the following, 
which works the way I want, but I have to essentially work the 
measures out before hand, and want to see if there is an easier, and 
more productive alternative.



\version "2.24.2"
\include "english.ly "

\paper {
 left-margin = 15
  top-system-spacing.basic-distance = #10
  score-system-spacing.basic-distance = #10
  system-system-spacing.basic-distance = #10
  last-bottom-spacing.basic-distance = #10
}

\header {
  title = \markup {\normal-text "Resurrection Troparion - Tone 1"}
subtitle = \markup \center-column { "" \vspace #2 }
  composer = "arr. by B. Ledkovsky"

}

global = {
  \key f \major
  \omit Staff.TimeSignature
}


#(set-global-staff-size 23)

sopMusic = \relative c' {
  \set Timing.measureLength = #(ly:make-moment 13/4)
f4 f g2(a) f4 f f g a bf2\bar""
\set Timing.measureLength = #(ly:make-moment 2/4)
a4 a \bar""
\set Timing.measureLength = #(ly:make-moment 4/4)
g2 f\bar""



\bar"|."


}

sopWords = \lyricmode {


}

altoMusic = \relative c' {
 \set Timing.measureLength = #(ly:make-moment 13/4)
c4 c e2(f) f4 f f f f f2
\set Timing.measureLength = #(ly:make-moment 2/4)
f4 f
\set Timing.measureLength = #(ly:make-moment 4/4)
e2 c



}

altoWords = \lyricmode {
When the stone __ had been sealed by the Jews,
\once \override LyricText.self-alignment-X = #LEFT
while_the_soldiers_were_guarding_Thy_most
\once \override LyricText.self-alignment-X = #CENTER
pure Bod -- y.


}

tenorMusic =  \relative c' {
  \set Timing.measureLength = #(ly:make-moment 13/4)
a4 a bf2(c) a4 a a bf c d2
 \set Timing.measureLength = #(ly:make-moment 2/4)
a4 a
\set Timing.measureLength = #(ly:make-moment 4/4)
bf2 a


}

tenorWords = \lyricmode {

}

bassMusic =  \relative c {
  \set Timing.measureLength = #(ly:make-moment 13/4)
f4 f c2(f) f4 f f f f bf,2
 \set Timing.measureLength = #(ly:make-moment 2/4)
f'4 f
\set Timing.measureLength = #(ly:make-moment 4/4)
c2 f


}

bassWords = \lyricmode {


}

\score {
  \new ChoirStaff <<
\new Lyrics = "sopranos" \with {
  % this is needed for lyrics above a staff
  \override VerticalAxisGroup.staff-affinity = #DOWN
}
\new Staff = "women" <<
  \new Voice = "sopranos" {
\voiceOne
<< \global \sopMusic >>
  }
  \new Voice = "altos" {
\voiceTwo
<< \global \altoMusic >>
  }
>>
\new Lyrics = "altos"
\new Lyrics = "tenors" \with {
  % this is needed for lyrics above a staff
  \override VerticalAxisGroup.staff-affinity = #DOWN
}
\new Staff = "men" <<
  \clef bass
  \new Voice = "tenors" {
\voiceOne
<< \global \tenorMusic >>
  }
  \new Voice = "basses" {
\voiceTwo << \global \bassMusic >>

  }
>>
\new Lyrics = "basses"
\context Lyrics = "sopranos" \lyricsto "sopranos" \sopWords
\context Lyrics = "altos" \lyricsto "altos" \altoWords
\context Lyrics = "tenors" \lyricsto "tenors" \tenorWords
\context Lyrics = "basses" \lyricsto "basses" \bassWords
  >>
  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 155/4)
  }
}
  \layout { }
}







Thanks so much!

Michael D

Sent with Proton Mail  secure email.




Re: Repeat barlines with "tails" in piano staff

2025-03-21 Thread Richard Shann
On Thu, 2025-03-20 at 19:48 +0100, Hans Aikema wrote:
> 
> 
> > On 20 Mar 2025, at 18:56, Knute Snortum  wrote:
> > 
> > On Thu, Mar 20, 2025 at 5:17 AM Richard Shann
> >  wrote:
> > > When using \bar ":|." in a piano staff the barline spans the two
> > > staffs, but when using \bar ":|]" it does not - is there a way to
> > > fix
> > > this?
> > > 
> > 
> > 
> > When I ran your example source with 2.25.24, I got a thin line
> > spanning the staves.  Is this not what you see?  (attached
> > picture) 
> > 
> > --
> > Knute Snortum
> > 
> > 
> 
> If you’re looking for a way to connect the staves with the thin-thick
> barlines instead of the thin line - those would need a custom barline
> to be defined with \defineBarLine
> 
> e.g.
> 
> 8><8><8><8><8><8><8><8><8><8><8><
> 
> \version "2.24.4" % should also work at 2.25, but I don't have the
> development version installed, so I could not check; rendered result
> is from 2.24.4
> \defineBarLine  ":|]-connected"  #'( #t #f " |.")
> 
> \score {
>     \new PianoStaff <<
>         \new Staff  <<
>             \new Voice  {
>                 c'1 \bar ":|]-connected"
>                 c'1
>             }
>         >>
>         \new Staff  <<
>             \new Voice  {
>                 \clef bass
>                 c1 \bar ":|]-connected"
>                 c1
>             }
>         >>
>     >>
> }
> 
> 8><8><8><8><8><8><8><8><8><8><8><
> 

Thank you very much for this: food for further study there. I think
what would look better was if the top staff had the tail above and the
bottom staff the tail below - so it would look a bit like a brace. I'll
try to study the docs under \defineBarLine to see  if this can be done.

Richard




Orthodox Chant

2025-03-21 Thread thedoctor81877 via LilyPond user discussion
Good Morning,

I am trying to set unmetered Orthodox chant, and have the following, which 
works the way I want, but I have to essentially work the measures out before 
hand, and want to see if there is an easier, and more productive alternative.

> \version "2.24.2"
> \include "english.ly"
>
> \paper {
> left-margin = 15
> top-system-spacing.basic-distance = #10
> score-system-spacing.basic-distance = #10
> system-system-spacing.basic-distance = #10
> last-bottom-spacing.basic-distance = #10
> }
>
> \header {
> title = \markup {\normal-text "Resurrection Troparion - Tone 1"}
> subtitle = \markup \center-column { "" \vspace #2 }
> composer = "arr. by B. Ledkovsky"
>
> }
>
> global = {
> \key f \major
> \omit Staff.TimeSignature
> }
>
> #(set-global-staff-size 23)
>
> sopMusic = \relative c' {
> \set Timing.measureLength = #(ly:make-moment 13/4)
> f4 f g2(a) f4 f f g a bf2\bar""
> \set Timing.measureLength = #(ly:make-moment 2/4)
> a4 a \bar""
> \set Timing.measureLength = #(ly:make-moment 4/4)
> g2 f\bar""
>
> \bar"|."
>
> }
>
> sopWords = \lyricmode {
>
> }
>
> altoMusic = \relative c' {
> \set Timing.measureLength = #(ly:make-moment 13/4)
> c4 c e2(f) f4 f f f f f2
> \set Timing.measureLength = #(ly:make-moment 2/4)
> f4 f
> \set Timing.measureLength = #(ly:make-moment 4/4)
> e2 c
>
> }
>
> altoWords = \lyricmode {
> When the stone __ had been sealed by the Jews,
> \once \override LyricText.self-alignment-X = #LEFT
> while_the_soldiers_were_guarding_Thy_most
> \once \override LyricText.self-alignment-X = #CENTER
> pure Bod -- y.
>
> }
>
> tenorMusic = \relative c' {
> \set Timing.measureLength = #(ly:make-moment 13/4)
> a4 a bf2(c) a4 a a bf c d2
> \set Timing.measureLength = #(ly:make-moment 2/4)
> a4 a
> \set Timing.measureLength = #(ly:make-moment 4/4)
> bf2 a
>
> }
>
> tenorWords = \lyricmode {
>
> }
>
> bassMusic = \relative c {
> \set Timing.measureLength = #(ly:make-moment 13/4)
> f4 f c2(f) f4 f f f f bf,2
> \set Timing.measureLength = #(ly:make-moment 2/4)
> f'4 f
> \set Timing.measureLength = #(ly:make-moment 4/4)
> c2 f
>
> }
>
> bassWords = \lyricmode {
>
> }
>
> \score {
> \new ChoirStaff <<
> \new Lyrics = "sopranos" \with {
> % this is needed for lyrics above a staff
> \override VerticalAxisGroup.staff-affinity = #DOWN
>
> }
> \new Staff = "women" <<
> \new Voice = "sopranos" {
> \voiceOne
> << \global \sopMusic >>
> }
> \new Voice = "altos" {
> \voiceTwo
> << \global \altoMusic >>
> }
>>>
> \new Lyrics = "altos"
> \new Lyrics = "tenors" \with {
> % this is needed for lyrics above a staff
> \override VerticalAxisGroup.staff-affinity = #DOWN
> }
> \new Staff = "men" <<
> \clef bass
> \new Voice = "tenors" {
> \voiceOne
> << \global \tenorMusic >>
> }
> \new Voice = "basses" {
> \voiceTwo << \global \bassMusic >>
>
> }
>>>
> \new Lyrics = "basses"
> \context Lyrics = "sopranos" \lyricsto "sopranos" \sopWords
> \context Lyrics = "altos" \lyricsto "altos" \altoWords
> \context Lyrics = "tenors" \lyricsto "tenors" \tenorWords
> \context Lyrics = "basses" \lyricsto "basses" \bassWords
>>>
> \midi {
> \context {
> \Score
> tempoWholesPerMinute = #(ly:make-moment 155/4)
> }
> }
> \layout { }
> }

Thanks so much!

Michael D

Sent with [Proton Mail](https://proton.me/mail/home) secure email.

Note name cue for high-pitched notes

2025-03-21 Thread Yann
Hi everybody !

In Behind Bars, Elaine Gould advises to indicate note names for occasional
high-pitched notes (i.e. more than 5 ledger lines, p.325 I think, in
keyboards section), in a small box aside note heads.

Is there any standard way to do so ?
Else I guess a properly tweaked markup may do the job ?

Cheers,
Yann


Re: Notes en lyrics left justified

2025-03-21 Thread Valentin Petzel
Hello Ad,

what you want is

\paper {
  ragged-right = ##t
}

the issue with this is that it will shorten the staff. So  use

\layout {
  \context {
\Staff \override StaffSymbol.width =
#(lambda (grob)
   (ly:output-def-lookup (ly:grob-layout grob) 'line-width))
  }
}

to enforce the staff having full length.

Cheers,
Valentin

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