Hi Andrew,

If you don't mind manually positioning every single one of these items
then something like this might help. I wrapped your markup in an event
function (for your custom markup you can still keep it in a separate
variable/function). By setting the X and Y offsets you can manually
choose the position relative to the center line of the staff. If you
prefer you could tweak the extra-offset instead the same way, which is
closer to what you were asking:

\version "2.18.2"

graphic =
#(define-event-function (parser location dest offset)
   (pair? pair?)
   #{
     -\tweak Y-offset #(cdr offset)
     -\tweak X-offset #(car offset)
     % alternatively to the two lines above you could use:
     % -\tweak extra-offset #offset
     ^\markup
     \draw-line #dest
   #})

treble = \relative c'' {
  \clef treble
  \time 1/4

  c
  \grace {
    \stemDown
    \override TextScript.outside-staff-priority = ##f
    bes8\graphic #'(2 . 2) #'(0 . 0.5)
  }
  bes4 a c
}

\score {
  \new Staff { \treble }
}

On Wed, Aug 5, 2015 at 12:32 PM, Andrew Bernard
<[email protected]> wrote:
> Hi Mike,
>
> It’s how to make those settings inside the Scheme code that I am after. Or
> am I completely on the wrong track?
>
> Andrew
>
>
> On 5 August 2015 at 21:09:44, Mike Solomon ([email protected]) wrote:
>
> Not in front of my computer, but off the top of my head, there are staff
> -padding and use - skyline properties for the text script. You can play
> around with making these ##f in addition to outside staff priority and see
> if that helps get you closer to what you're after.
>
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to