Position of rests inside beamed groups

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Position of rests inside beamed groups

Gilberto Agostinho
Hello all,

I am writing a composition in which all rests inside beamed groups have
stemlets. The problem is that because of my use of accidentals on every
single note and because spacing is sometimes a bit critical, there is very
little space between the rests's stemlets and the previous regular stem:

<http://lilypond.1069038.n5.nabble.com/file/t4165/problem.png>

I thought of using Rest.X-extent to solve this, but the problem is that I
only need to increase the X-extent on the left side of rests and
unfortunately the stemlet position is always calculated as the half point
between two other stems. See:

\version "2.19.53"
{
  \override Staff.Stem.stemlet-length = #1.25
  c'16[ d' r f']
  \override Rest.X-extent = #'(-3.0 . 1.0)
  c'16[ d' r f']
}

<http://lilypond.1069038.n5.nabble.com/file/t4165/help.png>

Would anyone have some advice on how to better tackle this?

Many thanks!
Gilberto



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Position of rests inside beamed groups

Thomas Morley-2
2017-09-21 13:56 GMT+02:00 Gilberto Agostinho <[hidden email]>:

> Hello all,
>
> I am writing a composition in which all rests inside beamed groups have
> stemlets. The problem is that because of my use of accidentals on every
> single note and because spacing is sometimes a bit critical, there is very
> little space between the rests's stemlets and the previous regular stem:
>
> <http://lilypond.1069038.n5.nabble.com/file/t4165/problem.png>
>
> I thought of using Rest.X-extent to solve this, but the problem is that I
> only need to increase the X-extent on the left side of rests and
> unfortunately the stemlet position is always calculated as the half point
> between two other stems. See:
>
> \version "2.19.53"
> {
>   \override Staff.Stem.stemlet-length = #1.25
>   c'16[ d' r f']
>   \override Rest.X-extent = #'(-3.0 . 1.0)
>   c'16[ d' r f']
> }
>
> <http://lilypond.1069038.n5.nabble.com/file/t4165/help.png>
>
> Would anyone have some advice on how to better tackle this?
>
> Many thanks!
> Gilberto



Hi Gilberto,

I played around with the SpacingSpanner and
proportionalNotationDuration but to no convincing avail.

Best I can think of is:

{
  \override Staff.Stem.stemlet-length = #1.25
  c'16[ d'
  \once\override NoteColumn.X-offset = 1
  r deses']
}

Perhaps someone else comes up with a better method...

Cheers,
  Harm

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Position of rests inside beamed groups

Gilberto Agostinho
Hello Harm,

Thanks for your reply.


Thomas Morley-2 wrote
> Best I can think of is:
>
> {
>   \override Staff.Stem.stemlet-length = #1.25
>   c'16[ d'
>   \once\override NoteColumn.X-offset = 1
>   r deses']
> }

This works quite well! I've made some quick tests and the scores are looking
much better (I am algorithmically adjusting the value of the
NoteColumn.X-offset depending on the size of the beamed group). I will make
some more tests, but it looks like this solves my issue. Many thanks!

Cheers,
Gilberto



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user