[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: adjustment of arc shape according to papersize
From: |
Marc Hohl |
Subject: |
Re: adjustment of arc shape according to papersize |
Date: |
Sun, 21 Jun 2015 10:11:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Am 20.06.2015 um 13:45 schrieb Venus' Wink:
Hi Marc,
Thanks for your reply.
To say the truth, I'm under situation that
I can't access the setting of paper size,
so I can't put tag to stand for paper width.
I'd like to expect a way with scheme.
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