lilypond-user
[Top][All Lists]
Advanced

[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 14:56:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Am 21.06.2015 um 14:36 schrieb Venus' Wink:
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?

Probably not – I just copied your \shape calls into my function and did not check the visual output.

Perhaps someone else has an idea?

Marc

Although I've not change the threshold value, some effect should appear.

Thanks
Venus' Wink

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth



_______________________________________________
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]