Hi Marc,
-----Original Message-----
From: address@hidden
Sent: Sun, 21 Jun 2015 10:11:28 +0200
To: address@hidden
Subject: Re: adjustment of arc shape according to papersize
Ok. I played a bit with your example files:
\version "2.18.2"
#(set-default-paper-size "a4" 'landscape)
\score{
{
c'1 c' c' c' c' c' c' c' c' c'^"default"( c''
c' c'') c' c' c' c' c' c' c' c' c' c' \break
c'1 c' c' c' c' c' c' c' c'
\override Slur.after-line-breaking = #(lambda (grob)
(let* ((layout (ly:grob-layout grob))
(paper-width (ly:output-def-lookup layout
'paper-width)))
(if (> paper-width 100) ;; !!
#{ \shape #'((0.0 . -2.0) (0.0 . 1.0) (0.0 . 0.0)
(0.0 .
0.0)) Slur #}
#{ \shape #'(((0.0 . 0.0) (0.0 . 0.0) (0.0 . 0.0)
(0.0 .
1.0))
((0.0 . 5.0) (0.0 . 3.0) (0.0 . 0.5)
(0.0 .
0.0))) Slur #}
)))
c'^"image of purpose"( c''
c' c'') c' c' c' c' c' c' c' c' c' c'
}
}
You have to change the value of 100 to your needs (I think lilypond
uses staff-spaces as units here).
HTH,
Marc
Thanks for your reply.
But, hmm..., my copy has no effect:
http://lilybin.com/57gfma/5
I've mistaken anywhere?