Hi Michael,
Am 08.12.20 um 19:53 schrieb Michael Blankenship:
Thanks for the response! I tried to frame the original question as
simply as possible, so I left some things out that have now become
relevant. One of the reasons I was trying to use instrument names is
that I actually want to use a more extensive version of the "clef"
before the first system, and a simplified version for the rest of the
systems.
I think, going by this description, that maybe an InstrumentName is
actually the simplest solution.
In order to right-align the instrument names, try the attached diff
(using git apply).
It's basically a matter of
- adding an \override InstrumentName.self-alignment-X = #RIGHT (for
right-aligning the instrument name block as a whole),
- creating a variant of the (now renamed) \unit-height-column command
for a \unit-height-right-column.
Also, I'm quite sure it's possible to accomodate for arbitrary staff
space. By which method do you change those?
Lukas
diff --git a/draw-staff-symbol.ily b/draw-staff-symbol.ily
index 9d4c0fe..8e2f60c 100644
--- a/draw-staff-symbol.ily
+++ b/draw-staff-symbol.ily
@@ -81,13 +81,23 @@ columnClef =
(y (cons -1/2 1/2)))
(ly:stencil-outline stil (make-filled-box-stencil x y))))
-#(define-markup-command (unit-height-column layout props args)
+#(define-markup-command (unit-height-center-column layout props args)
(markup-list?)
(interpret-markup layout props #{
\markup {
\override #'(baseline-skip . 0)
\center-column \force-unit-height #args
} #} ))
+
+#(define-markup-command (unit-height-right-column layout props args)
+(markup-list?)
+ (interpret-markup layout props #{
+ \markup {
+ \override #'(baseline-skip . 0)
+ \right-column \force-unit-height #args
+ } #} ))
+
+
% USAGE:
%{ \new Staff \with {
\override StaffSymbol.line-count = 12
@@ -145,9 +155,10 @@ full-vowel-clef = \markup {
% \columnClef
% \markuplist { i/iɚ ɪ eɪ/ɛ/ɛɚ æ ʌ/ə aɪ/ɑ/ɑ˞/aʊ ɝ/ɚ ɔɪ/ɔ˞/ɔ oʊ ʊ uɚ/u }
% \markuplist { i ɪ ɛ æ ʌ ɑ ɝ ɔ oʊ ʊ u }
+ \override InstrumentName.self-alignment-X = #RIGHT
instrumentName = \markup {
\override #'(font-size . -10)
- \unit-height-column { \roman i/iɚ ɪ eɪ/ɛ/ɛɚ æ ʌ/ə aɪ/ɑ/ɑ˞/aʊ ɝ/ɚ ɔɪ/ɔ˞/ɔ
oʊ ʊ uɚ/u }
+ \unit-height-right-column { \roman i/iɚ ɪ eɪ/ɛ/ɛɚ æ ʌ/ə aɪ/ɑ/ɑ˞/aʊ ɝ/ɚ
ɔɪ/ɔ˞/ɔ oʊ ʊ uɚ/u }
}
shortInstrumentName = \markup {
\override #'(font-size . -10)