After
plenty of tweaking (as I have found it's pretty often the case) I've come up
with quite a satisfying code (based on David Kastrup's one) for guitar
palm mutes. Please check out the tiny example.
There are still two things I can't figure out, though, and I would be grateful if someone could help me with them.
1.
How to change the look of the extender lines (dashes)? I'd like them to
be more dense or compact. The following -\tweaks with various values won't
make a difference.
-\tweak bound-details.dash-fraction #0
-\tweak bound-details.dash-period #0
2. The following code, which sets both variables on the same "line",
\override TextScript.staff-padding = #6
creates a padding for both text in a variable ("PM") and any other text attached to a note ("Aaa").
How to integrate the code into the said variable, so that the padding won't affect the text attached to notes? I tried
\override #'(staff-padding . 6)
but it doesn't do anything.
One
thing to point out: there are two variables for PMs because "startPM"
won't parse when it's at the beginning of the line or it won't work
under a single note. At least I am not able to work it out.
Would anyone take a look at those, please? I really want to learn how to write code but it's not always easy.
Cheers!