lilypond-user
[Top][All Lists]
Advanced

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

Re: Smoothing out RepeatTie irregularities between chords?


From: Pierre Perol-Schneider
Subject: Re: Smoothing out RepeatTie irregularities between chords?
Date: Fri, 17 Apr 2015 09:41:16 +0200

Hi Trevor,

No clue what's going on here...
Here's a workaround (to be addapted to your needs):

\version "2.19.17"
\language "english"

repeatTieExtend =
#(define-music-function (parser location arg-repeat-tie-extend) (number?)
  #{
      -\tweak X-extent #(cons (* (+ arg-repeat-tie-extend 4) -1) 0)
      -\tweak details.note-head-gap #(* arg-repeat-tie-extend -1)
      -\tweak extra-offset #(cons (* arg-repeat-tie-extend -1) 0)
      -\tweak head-direction #1
      \laissezVibrer
  #})


\new Score {
    <c' g'>1
    <c'-\repeatTieExtend #2 g'^\repeatTieExtend #2 >1
    <c'-\repeatTieExtend #4 g'^\repeatTieExtend #4 >1
    %%% note that it does not work with odd numbers:
    \mark\markup\with-color #red "Oops:"
    <c'-\repeatTieExtend #4 g'^\repeatTieExtend #3 >1
}


Cheers,
Pierre


2015-04-16 3:36 GMT+02:00 Trevor Bača <address@hidden>:
Hi,

Using the \shape command to length repeat ties works great between notes. But weird behavior seems to arise with lengthened repeat ties between chords:


### BEGIN ###

\version "2.19.17"
\language "english"


\new Staff \with {
    \shape #'((-2 . 0) (-1 . 0) (-0.5 . 0) (0 . 0)) RepeatTie                 
    \override RepeatTie.X-extent = ##f
} {
    <c' g'>1
    <c' g'>1 \repeatTie
    <c' g'>1 \repeatTie
    <c' g'>1 \repeatTie
}

### END ###


(Image attached.)

Would anyone have any clues as to how to make the repeat ties all have the same length?

Trevor.

--
Trevor Bača
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]