2005/12/19, Mats Bengtsson <[EMAIL PROTECTED]>: > > Heimdall Midgard wrote: > > >2005/12/19, Gilles <[EMAIL PROTECTED]>: > > > > > >So, could someone please give me a code snippet on > > > >how to raise or lower the vertical placement of a > > > >slur relative to the notes (or if possible, relative > > > >to the fingering, which it collides with). > > > > > > >You can try playing with: > > > > > > \override Score.Slur #'height-limit = #4.5 > > > > > >or/and > > > > > > \override Script #'padding = #1.5 > > > > >Neither appears to work, at least the way I used it in > >the following code fragment (I hope I didn't omit > >anything essential). I used deliberately small and large > >values to exagerrate any side-effect the overrides might > >have (none). > > > >upper = \relative c' { > > \time 4/4 > > \key c \major > > \clef treble > > \override Score.SeparationItem #'padding = #1.0 > > \override Score.Slur #'height-limit = #-20 > > \override Script #'padding = #100.5 > > \phrasingSlurUp > > c4-1\( d-2 e-3 f-4 > > g4-5 e4-3 c2-1\) > > > Since you use phrasing slurs instead of ordinary slurs, > you have to use > > \override Score.PhrasingSlur #'height-limit = ...
This has an effect, but not exactly the one I want in the above case. Large values (+10) increase the curve. What I want is to flatten the curve and raise its two end points. As it is, with #'height-limit = #50, I get a dome-like curve that extends all the way down to the notehead (the two C's one line below the treble staff). The curve of the phrasing slur practically disappears with #'height-limit = #0 (it becomes nearly flat). But I see no difference in slope between #'height-limit = #1 and #'height-limit = #4. Is there a way to arbitrarily raise the end points of the curve as well? > Similarly, to control a fingering, you should set the > property on the Fingering object, not on the Script > object: > > \override Fingering #'padding = #10.0 This works and could be a way of solving the collision problem. However, a flatter curve would enable me to raise or lower the fingering numbers uniformly rather than attempt to achieve a fancy staircase effect to dodge the curve (ASCII graphic): 3 4 5 2 3 1 1 -- Albert Einstein: Phantasie ist wichtiger als Wissen, denn Wissen ist begrenzt. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user