ossia with lyrics

2024-02-11 Thread Mariya Kireva
Hello all,

it is possible to write ossia with lyrics in Lilypond?

Best regrds
Maria Kireva

"Squished" tie between 2 notes

2024-02-11 Thread George
At the moment I am having an issue with a tie from the alto part where it
is automatically "squished" by Lillypond. I didn't find an answer anywhere
else on how to create some space between or make the tie somewhat
noticeable. Also using the command* \shape* on the tie was not the right
choice this time (which I successfully used on some colliding ties
somewhere else in the piece).

This is how it looks in the original source:
[image: tie.png]
and this is how Lilypond engraved it (notice the tie became a very little
dot):
[image: bar 78 lily.png]
Here is the relevant part of my code (I include one measure before and one
after to preserve the layout) :
_
\version "2.24.3"


global = { \time 4/4 \key a \minor }


soprano = \relative d'' {
  \voiceOne
d8 c16 b d c b a b2~ |
8 gis a4~ 16 b c8~ 16 a fis! b |
a gis fis e a8 a~ 16 gis a fis gis8.^\trill a16

}

alto = \relative e' {
  \voiceTwo

e4 a2 gis8. b16 |
e,4~ 8 dis16 e fis8  r16 fis~  8 8|
e4~ 16 e fis! dis e2 |

}


tenor = \relative g {
  \voiceOne
r8 gis a c f, d' b d~|
8 b c4~ 8 r8  a b |
c2 b |

}

bass = \relative c, {
  \voiceTwo

c8 r r f' d16 e f8~ 16 d b d |
c d e8~ 16 c a c dis,4 r8 dis' |
e1 |
}

\score {
  \new PianoStaff <<

\new Staff = "up" <<
  \global
  \clef "treble"
  \new Voice = "soprano" { \soprano }
  \new Voice = "alto" { \alto }
>>

\new Staff = "down" <<
  \global
  \clef "bass"
  \new Voice = "tenor" { \tenor }
  \new Voice = "bass" { \bass }
>>

  >>

  \layout {
\context {
  \Score
  \override SpacingSpanner.common-shortest-duration = #(ly:make-moment
1/8 )
}
  }
}

I would really appreciate your help.

Best,
George


Re: "Squished" tie between 2 notes

2024-02-11 Thread William Rehwinkel via LilyPond user discussion

Dear George,

I put the following in a style-sheet which I import into every lilypond 
file:


\context {
  \Voice
  \override Tie.springs-and-rods = #ly:spanner::set-spacing-rods
  \override Tie.minimum-length = #4
  \override Tie.minimum-length-after-break = #4
}

It shouldn't have any impact except that it will extend some of these 
squished ties.


Let me know if this works for you.
-William

On 2/11/24 12:30, George wrote:
At the moment I am having an issue with a tie from the alto part where 
it is automatically "squished" by Lillypond. I didn't find an answer 
anywhere else on how to create some space between or make the tie 
somewhat noticeable. Also using the command/\shape/ on the tie was not 
the right choice this time (which I successfully used on some colliding 
ties somewhere else in the piece).


This is how it looks in the original source:
tie.png
and this is how Lilypond engraved it (notice the tie became a very 
little dot):

bar 78 lily.png
Here is the relevant part of my code (I include one measure before and 
one after to preserve the layout) :

_
\version "2.24.3"


global = { \time 4/4 \key a \minor }


soprano = \relative d'' {
   \voiceOne
d8 c16 b d c b a b2~ |
8 gis a4~ 16 b c8~ 16 a fis! b |
a gis fis e a8 a~ 16 gis a fis gis8.^\trill a16

}

alto = \relative e' {
   \voiceTwo

e4 a2 gis8. b16 |
e,4~ 8 dis16 e fis8  r16 fis~  8 8|
e4~ 16 e fis! dis e2 |

}


tenor = \relative g {
   \voiceOne
r8 gis a c f, d' b d~|
8 b c4~ 8 r8  a b |
c2 b |

}

bass = \relative c, {
   \voiceTwo

c8 r r f' d16 e f8~ 16 d b d |
c d e8~ 16 c a c dis,4 r8 dis' |
e1 |
}

\score {
   \new PianoStaff <<

     \new Staff = "up" <<
       \global
       \clef "treble"
       \new Voice = "soprano" { \soprano }
       \new Voice = "alto" { \alto }
     >>

     \new Staff = "down" <<
       \global
       \clef "bass"
       \new Voice = "tenor" { \tenor }
       \new Voice = "bass" { \bass }
     >>

   >>

   \layout {
     \context {
       \Score
       \override SpacingSpanner.common-shortest-duration = 
#(ly:make-moment 1/8 )

     }
   }
}

I would really appreciate your help.

Best,
George


--
William Rehwinkel - Oberlin College and Conservatory '24

will...@williamrehwinkel.net

PGP key: https://ftp.williamrehwinkel.net/pubkey.txt


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: "Squished" tie between 2 notes

2024-02-11 Thread Leo Correia de Verdier
Sorry for short answer, I’m on the phone:

Try \tweak Tie.minimum-length #10

And then choose an appropriate number. 

> 11 feb. 2024 kl. 18:31 skrev George :
> 
> 
> At the moment I am having an issue with a tie from the alto part where it is 
> automatically "squished" by Lillypond. I didn't find an answer anywhere else 
> on how to create some space between or make the tie somewhat noticeable. Also 
> using the command \shape on the tie was not the right choice this time (which 
> I successfully used on some colliding ties somewhere else in the piece).
> 
> This is how it looks in the original source:
> 
> and this is how Lilypond engraved it (notice the tie became a very little 
> dot):
> 
> 
> Here is the relevant part of my code (I include one measure before and one 
> after to preserve the layout) :
> _
> \version "2.24.3"
> 
> 
> global = { \time 4/4 \key a \minor }
> 
> 
> soprano = \relative d'' {
>   \voiceOne
> d8 c16 b d c b a b2~ |
> 8 gis a4~ 16 b c8~ 16 a fis! b |
> a gis fis e a8 a~ 16 gis a fis gis8.^\trill a16 
> 
> }
> 
> alto = \relative e' {
>   \voiceTwo
> 
> e4 a2 gis8. b16 |
> e,4~ 8 dis16 e fis8  r16 fis~  8 8|
> e4~ 16 e fis! dis e2 |
> 
> }
> 
> 
> tenor = \relative g {
>   \voiceOne
> r8 gis a c f, d' b d~|
> 8 b c4~ 8 r8  a b |
> c2 b |
> 
> }
> 
> bass = \relative c, {
>   \voiceTwo
>   
> c8 r r f' d16 e f8~ 16 d b d |
> c d e8~ 16 c a c dis,4 r8 dis' |
> e1 |
> }
> 
> \score {
>   \new PianoStaff <<
> 
> \new Staff = "up" <<
>   \global
>   \clef "treble"
>   \new Voice = "soprano" { \soprano }
>   \new Voice = "alto" { \alto }
> >>
> 
> \new Staff = "down" <<
>   \global
>   \clef "bass"
>   \new Voice = "tenor" { \tenor }
>   \new Voice = "bass" { \bass }
> >>
> 
>   >>
>   
>   \layout {
> \context {
>   \Score
>   \override SpacingSpanner.common-shortest-duration = #(ly:make-moment 
> 1/8 )
> }
>   }
> }
> 
> I would really appreciate your help.
> 
> Best,
> George


Re: ossia with lyrics

2024-02-11 Thread Pierre-Luc Gauthier
> it is possible to write ossia with lyrics in Lilypond?

Of course !

But be warned that there are *so* many different ways to achieve this
and that depends on what you want to achieve.

\version "2.24.3"

\language "english"

<<

  \new Staff = "asdf" \with {
  } \new Voice = "asdf" \with {
  } {
c'4 d' e' f' | g' a' b'2
  }

  \new Lyrics \lyricsto "asdf" {
\set alignBelowContext = "asdf"
Ut e -- nim ad mi -- nim
  }

  {
\skip 2.
<<

  \new Staff = "ossia" \with {
\clef bass
alignAboveContext = "asdf"
fontSize = -2
\override StaffSymbol.staff-space = #(magstep -2)
\remove "Time_signature_engraver"
  } \new Voice = "ossia" {
\override TextScript.padding = 3
c16 d ef f a b c' ef' c,4
  }

  \new Lyrics \lyricsto "ossia" {
\set alignBelowContext = "ossia"
Lo -- rem ip -- sum do -- lor sit a -- met
  }
>>
  }
>>



-- 
Pierre-Luc Gauthier