Re: adjustment of arc shape according to papersize
Am 21.06.2015 um 14:36 schrieb Venus' Wink: Hi Marc, -Original Message- From: m...@hohlart.de Sent: Sun, 21 Jun 2015 10:11:28 +0200 To: lilypond-user@gnu.org 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adjustment of arc shape according to papersize
Hi Marc, -Original Message- From: m...@hohlart.de Sent: Sun, 21 Jun 2015 10:11:28 +0200 To: lilypond-user@gnu.org 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? 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adjustment of arc shape according to papersize
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 ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adjustment of arc shape according to papersize
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. I've tried like as: \shape #((if (= paper-width 210 mm) '(( ...points for 210 mm width...))) (if (= paper-width 297 mm) '(( ...points for 297 mm width... which issues an error that paper-width hasn't been bind... I don't know scheme very well. Thanks Venus' Wink -Original Message- From: m...@hohlart.de Sent: Sat, 20 Jun 2015 12:24:27 +0200 To: lilypond-user@gnu.org Subject: Re: adjustment of arc shape according to papersize Am 20.06.2015 um 10:25 schrieb Venus' Wink: Hi All, Would you see the following to codes? http://lilybin.com/57gfma/2 http://lilybin.com/57gfma/3 The paper widths, and according to them, the lists of control points for slurs differ between these examples. I'd like to switch the control points on the paper size in one code as: If paper-width is 210mm, pass the control points for 210mm paper width to \shape. If paper-width is 297mm, pass the control points for 297mm paper width to \shape. If you have to switch between two shapes, you could use tags: http://lilypond.org/doc/v2.18/Documentation/notation/different-editions-from-one-source#index-tag-1 I assume there is a way to detect the paper width via scheme and switch between two shape calls, but that's beyond my knowledge. HTH a bit, Marc (So far, only for 210mm and for 297mm are enough.) How could I realize it? 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Can't remember your password? Do you need a strong and secure password? Use Password manager! It stores your passwords protects your account. Check it out at http://mysecurelogon.com/password-manager ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: adjustment of arc shape according to papersize
Am 20.06.2015 um 10:25 schrieb Venus' Wink: Hi All, Would you see the following to codes? http://lilybin.com/57gfma/2 http://lilybin.com/57gfma/3 The paper widths, and according to them, the lists of control points for slurs differ between these examples. I'd like to switch the control points on the paper size in one code as: If paper-width is 210mm, pass the control points for 210mm paper width to \shape. If paper-width is 297mm, pass the control points for 297mm paper width to \shape. If you have to switch between two shapes, you could use tags: http://lilypond.org/doc/v2.18/Documentation/notation/different-editions-from-one-source#index-tag-1 I assume there is a way to detect the paper width via scheme and switch between two shape calls, but that's beyond my knowledge. HTH a bit, Marc (So far, only for 210mm and for 297mm are enough.) How could I realize it? 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user