[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Slurs and PhrasingSlurs with simultaneous start or end
From: |
Nick Payne |
Subject: |
Slurs and PhrasingSlurs with simultaneous start or end |
Date: |
Thu, 28 Jul 2011 13:49:23 +1000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 |
The automatic positioning of Slurs and PhrasingSlurs that both either
start or finish on the same note is not very good. See below. Commercial
scores that I have where this happens position the two slurs so that
they don't intersect or touch, as in the second bar where the
PhrasingSlur has been tweaked so that it doesn't intersect the slur:
\version "2.14.0"
offsetPhrasingSlurPos =
#(define-music-function (parser location offsets) (pair?)
#{
\once \override PhrasingSlur #'positions = #(lambda (grob)
`(,(+ (car $offsets) (cdar (ly:phrasingslur::calc-control-points
grob))) .
,(+ (cdr $offsets) (cdr (cadddr
(ly:phrasingslur::calc-control-points grob))))))
#})
\relative c'' {
\time 3/4
\slurDashed
c16\(( d) e f g8\) c,8 d16\(( c) b a\)
\offsetPhrasingSlurPos #'(0.3 . 0) c16\(( d) e f g8\) c,8
\offsetPhrasingSlurPos #'(0.3 . 0) d16\(( c) b a\)
}
Nick
test.preview.png
Description: PNG image
- Slurs and PhrasingSlurs with simultaneous start or end,
Nick Payne <=