Greetings everyone. I was working on a lute piece today and struggled
with coming up with a way to create the lines that are used to
indicate a note is still held while other notes continue to happen.
After messing about with glissando which seemed to be a bad choice I
came up with this mess in order to place a line after a note:

\tweak outside-staff-priority ##f\offset Y-offset 7.2 \offset X-offset
3 _\markup {
\line {\raise #9 { \override #'(thickness . 4) \draw-line #' (2 . 0)}}}

However, this has the downside that one must figure out the Y offset
for every instance at a given pitch. If in a short piece that is
merely a mild inconvenience that can get rapidly annoying in longer
pieces.  I had hoped to reduce this to a variable that could be called
on just to plunk a line after any note, but that is beyond me. Along
these lines (so you can see the intended result): Somehow I expect
there is a way to make a scheme function do this far more elegantly.

Extendnote =\tweak outside-staff-priority ##f\offset Y-offset 2.10
\offset X-offset 2.5 _\markup {
\line {\raise #9 { \override #'(thickness . 4) \draw-line #' (3 . 0)}}}

{a'\glissando    a' \Extendnote}

kind regards,
Shane Brandes

Reply via email to