lilypond-user
[Top][All Lists]
Advanced

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

Re: double slur collisions


From: Stefano Troncaro
Subject: Re: double slur collisions
Date: Thu, 29 Mar 2018 13:21:35 -0300

Sorry, I just saw there is already a discussion in another thread. I should look at all the threads before posting... oh well.

2018-03-29 13:09 GMT-03:00 Stefano Troncaro <address@hidden>:
Hi Kieren,

I assume it is a bug? Since with more spacing there is no collision at least with the starting note of the Slur:
\version "2.19.80"

stuff = {
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>16
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
}

\score {
  \new Staff \stuff
}

\score {
  \new Staff {
    \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/32)
    \stuff
  }
}

\score {
  \new Staff {
    \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/64)
    \stuff
  }
}

\score {
  \new Staff {
    \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/128)
    \stuff
  }
}

\score {
  \new Staff {
    \override Score.SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/256)
    \stuff
  }
}

I haven't managed to find an override that solves the collision beside manually tweaking the control-points:
\version "2.19.80"

stuff = {
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>16
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
}

\score {
  \new Staff {
    \override Slur.control-points =
    #(lambda(grob)
       (let ((cp (ly:slur::calc-control-points grob))
             (dir (ly:grob-property grob 'direction))
             (offset 0.5))
         (map
          (lambda(control-point)
            (cons (car control-point) (+ (cdr control-point) (* offset dir))))
          cp)))   
    \stuff
  }
}


2018-03-28 21:04 GMT-03:00 Kieren MacMillan <address@hidden>:
Hey all,

Is it a feature or a bug that these slurs are collision-ing?

\version "2.19.80"

stuff = {
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>16
  <b'\=1 _( f''\=2 ^(>16 <c''\=1 ) e'' \=2 )>8
}

\score {
  \stuff
}

Cheers,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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