lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grace notes spacing


From: Martín Rincón Botero
Subject: Re: grace notes spacing
Date: Mon, 12 Oct 2020 15:34:33 +0200

How about:

\layout {
  \context {
    \Score
    \override SpacingSpanner.strict-note-spa
cing = ##t
    \override SpacingSpanner.common-shortest
-duration = #(ly:make-moment 1/20)
    \override GraceSpacing.common-shortest-d
uration = #(ly:make-moment 1/64)
  }
}

<<
  \relative c''' { r4 \appoggiatura { cis32 b ais } b4 gis' e }
  \relative c'' \repeat unfold 2 { gis8 b gis b }
>>


Cheers,
  Harm

Thanks for the idea, but strict-note-spacing causes all types of collisions in my score (although it works perfectly for my MWE). The problems of strict-note-spacing seem to be the same for strict-grace-spacing. Both spacing modes are pretty much useless.

image.png        image.png                  image.png







Am Mo., 12. Okt. 2020 um 15:22 Uhr schrieb Thomas Morley <thomasmorley65@gmail.com>:
Am Mo., 12. Okt. 2020 um 12:13 Uhr schrieb Martín Rincón Botero
<martinrinconbotero@gmail.com>:
>
> Dear Kieren,
>
> thank you for that suggestion. Albeit tedious having to fix each note manually like this, it works!
>
> Am So., 11. Okt. 2020 um 21:26 Uhr schrieb Kieren MacMillan <kieren_macmillan@sympatico.ca>:
>>
>> Hi Martín,
>>
>> > Anyways, I couldn't make use of any of your suggestions. I couldn't figure out how to apply the mentioned tweaks.
>>
>> Here’s one possibility:
>>
>> %%%%
>> \version "2.20.0"
>>
>> fixa = \tweak NoteColumn.X-offset #-3 \etc
>> fixb = \tweak NoteColumn.X-offset #-2 \etc
>> fixc = \tweak Accidental.X-extent #'(1 . -0.5) \tweak NoteHead.extra-spacing-width #'(-1 . -1) \etc
>> fixd = \tweak NoteColumn.X-offset #0.875 \etc
>>
>> {
>>   <<
>>     \relative c''' { r4 \appoggiatura { \fixa cis32 \fixb b \fixc ais } b4 gis' e }
>>     \relative c'' { gis8 \fixd b gis b gis b gis b }
>>   >>
>> }
>> %%%%
>>
>> Note that I had to unfold the \repeat in the lower staff, in order to easily apply the tweak to the correct moment. This is one of the [many!] reasons I use the edition-engraver: you can inject the tweak at an exact moment, regardless of how the musical elements in that moment were generated.
>>
>> Hope this helps!
>> Kieren.
>> ________________________________
>>
>> Kieren MacMillan, composer (he/him/his)
>> ‣ website: www.kierenmacmillan.info
>> ‣ email: kieren@kierenmacmillan.info
>>
>
>
> --
> www.martinrinconbotero.com

How about:

\layout {
  \context {
    \Score
    \override SpacingSpanner.strict-note-spacing = ##t
    \override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/20)
    \override GraceSpacing.common-shortest-duration = #(ly:make-moment 1/64)
  }
}

<<
  \relative c''' { r4 \appoggiatura { cis32 b ais } b4 gis' e }
  \relative c'' \repeat unfold 2 { gis8 b gis b }
>>

Cheers,
  Harm


--
www.martinrinconbotero.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]