[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    consistent height for \rightHandFinger marks
From:       John Asmuth <jasmuth () gmail ! com>
Date:       2023-06-24 15:17:25
Message-ID: CAEc0J6ahoArTp57PbmyV3N5cenvs_W9oskQWFA31Dym4UK=sig () mail ! gmail ! com
[Download RAW message or body]

Hi lilypond

For guitar scores, I'm applying right hand finger marks using a snippet I
found online, quoted at the end of this message.

When I apply it to a note in a chord, eg

> <e c' e' g' c'' e''\RHd>8

It places a nice little arrow above. Perfect.

However, if I have several hits of the chord in a row, the notes in the
chord and even some properties of the stem put the arrow at different
heights. eg

> <e c' e' g' c'' e''\RHd>8 <e c' e' g' c'' e''\RHu> <e c' e' g' c''
> e''\RHd><e c' e' g' c'' e''\RHu> <e c' e' g' c'' e''\RHd>4 |

The last chord's arrow is much lower, starting at the top of the note head.
For the other chords, it put it above the beam. Totally sensible, but:

What I would like is for the arrows to be aligned vertically, all at the
same height. Any tips to make that happen?

- John

Below is the snippet I found to help w/ some flamenco notation.

strokeUp = \markup\combine\override #'(thickness . 1.3) \draw-line #'(0 .
> 2)\raise #2 \arrow-head #Y #UP ##f
> strokeDown = \markup\combine\arrow-head #Y #DOWN ##f \override
> #'(thickness . 1.3) \draw-line #'(0 . 2)
> % Golpe symbol :
> golpe = \markup {
>   \filled-box #'(0 . 1) #'(0 . 1) #0
>   \hspace #-1.6
>   \with-color #white
>   \filled-box #'(0.15 . 0.85) #'(0.15 . 0.85) #0
> }
> % Strokes, fingers and golpe command :
> RHp = \rightHandFinger #1
> RHi = \rightHandFinger #2
> RHm = \rightHandFinger #3
> RHa = \rightHandFinger #4
> RHx = \rightHandFinger #5
> RHu = \rightHandFinger \strokeUp
> RHd = \rightHandFinger \strokeDown
> RHg = \rightHandFinger \golpe

[Attachment #3 (text/html)]

<div dir="ltr">Hi lilypond<div><br></div><div>For guitar scores, I&#39;m applying \
right hand finger marks using a snippet I found  online,  quoted at the end of this \
message.</div><div><br></div><div>When I apply it to a note in a chord, eg  \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex"><font face="monospace">&lt;e c&#39; e&#39; \
g&#39; c&#39;&#39; e&#39;&#39;\RHd&gt;8</font></blockquote><div>It places a nice \
little arrow above. Perfect.</div><div><br></div><div>However, if I have several hits \
of the chord in a row, the notes in the chord and even some properties of the stem \
put the arrow at different heights. eg</div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><font face="monospace">&lt;e c&#39; e&#39; g&#39; \
c&#39;&#39; e&#39;&#39;\RHd&gt;8 &lt;e c&#39; e&#39; g&#39; c&#39;&#39; \
e&#39;&#39;\RHu&gt; &lt;e c&#39; e&#39; g&#39; c&#39;&#39; e&#39;&#39;\RHd&gt;&lt;e \
c&#39; e&#39; g&#39; c&#39;&#39; e&#39;&#39;\RHu&gt; &lt;e c&#39; e&#39; g&#39; \
c&#39;&#39; e&#39;&#39;\RHd&gt;4 |</font></blockquote><div>The last chord&#39;s arrow \
is much lower, starting at the top of the note head. For the other chords, it put it \
above the beam. Totally sensible, but:</div><div><br></div><div>What I would like is \
for the arrows to be aligned vertically, all at the same height. Any tips to make \
that happen?</div><div><br></div><div>- John</div><div><br></div><div>Below is the \
snippet I found to help w/ some flamenco notation.</div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><font face="monospace">strokeUp = \
\markup\combine\override #&#39;(thickness . 1.3) \draw-line #&#39;(0 . 2)\raise #2 \
\arrow-head #Y #UP ##f<br></font><font face="monospace">strokeDown = \
\markup\combine\arrow-head #Y #DOWN ##f \override #&#39;(thickness . 1.3) \draw-line \
#&#39;(0 . 2)<br></font><font face="monospace">% Golpe symbol :<br></font><font \
face="monospace">golpe = \markup {<br></font><font face="monospace">   \filled-box \
#&#39;(0 . 1) #&#39;(0 . 1) #0<br></font><font face="monospace">   \hspace \
#-1.6<br></font><font face="monospace">   \with-color #white<br></font><font \
face="monospace">   \filled-box #&#39;(0.15 . 0.85) #&#39;(0.15 . 0.85) \
#0<br></font><font face="monospace">}<br></font><font face="monospace">% Strokes, \
fingers and golpe command :<br></font><font face="monospace">RHp = \rightHandFinger \
#1<br></font><font face="monospace">RHi = \rightHandFinger #2<br></font><font \
face="monospace">RHm = \rightHandFinger #3<br></font><font face="monospace">RHa = \
\rightHandFinger #4<br></font><font face="monospace">RHx = \rightHandFinger \
#5<br></font><font face="monospace">RHu = \rightHandFinger \strokeUp<br></font><font \
face="monospace">RHd = \rightHandFinger \strokeDown<br></font><font \
face="monospace">RHg = \rightHandFinger \golpe</font></blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic