Am Mo., 12. Okt. 2020 um 15:40 Uhr schrieb Martín Rincón Botero
<[email protected]>:
>
> Oh, because uniform-stretching can be only can only be changed for the whole 
> score, I believed it’s the same for strict-note-spacing. I’ll try that.
>
> www.martinrinconbotero.com
> On 12. Oct 2020, 15:37 +0200, Kieren MacMillan 
> <[email protected]>, wrote:
>
> Hi Martín,
>
> Thanks for the idea, but strict-note-spacing causes all types of collisions 
> in my score (although it works perfectly for my MWE).
>
>
> So why not just override it for that measure? ;)
>
> Cheers,
> Kieren.
> ________________________________
>
> Kieren MacMillan, composer (he/him/his)
> ‣ website: www.kierenmacmillan.info
> ‣ email: [email protected]
>

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

unfoo = {
  \revert Score.SpacingSpanner.strict-note-spacing
  %\revert Score.SpacingSpanner.common-shortest-duration
  \revert Score.GraceSpacing.common-shortest-duration
  \newSpacingSection
}

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

Works here.

Cheers,
  Harm

Reply via email to