|
From: | Giles Boardman |
Subject: | Re: Naming lines of music |
Date: | Tue, 14 May 2024 12:42:13 +0000 |
Hello Kieren/Xavier,
I wasn't going to be picky per Kieren's ** but ...........
........... using Xavier's code (override Score.RehearsalMark.self-alignment-X = #LEFT) I have a whole page of music and the tunes are in different keys, so aligning to the Key signature is giving me an unsightly wiggly vertical look. Can I align to the clef
or the Time signature? Or is there a line title, like the variables for "Composer" Piece" etc. I looked, but I haven't found anything obvious.
Thanks
Giles
From: Kieren MacMillan <kieren@kierenmacmillan.info>
Sent: 14 May 2024 12:06 To: Giles Boardman <giles.boardman@hotmail.co.uk> Cc: Lilypond-User Mailing List <lilypond-user@gnu.org> Subject: Re: Naming lines of music Hi Giles,
The \mark command is centred. Can text be formatted to be left aligned (and smaller)? Is there an initialisation parameter I can change to set its default alignment? I can’t test what v2.18 does (that’s a very old version!), but 2.25.11 essentially** left-aligns the mark:
%%% SNIPPET BEGINS
\version "2.25.11"
\layout { \context { \Score \override RehearsalMark.font-size = #1 \override RehearsalMark.padding = #2.5 } } theMusic = { \mark "Boore’s Dance" \key d \major \time 6/8 a''4. g''4 d''8 g''8 e''4. fis''4 a''4. fis''4 d''8 g''4 e''8 d''4. \bar "|." } \score { \new Staff \theMusic } %%% SNIPPET ENDS 1. Note the context block I added, to [globally] adjust the font size of the RehearsalMark.
2. I prefer typographer’s quotes, so I changed the apostrophe in “Boore’s”.
3. Conventional coding in the ’Pond is to have a separate line for each measure of music, command/tweak, etc., so I recoded your example that way.
** I’m honestly not sure why there is a small discrepancy in the alignment — the left edge of the RehearsalMark should be exactly aligned with the left edge of the TimeSignature! — but you can adjust that with an extra-offset if it bothers you [as much
as it bothers me!].
Hope this helps!
Kieren.
p.s.
Ideally, whatever method arrived at would then create a marker in a MIDI file - \mark does on last but one version of Lilypond, but not on my Windows 8.1, Lilypond "2.18.2" installation Sorry — definitely can’t help with this! :(
______________________________________________
My work day may look different than your work day. Please do not feel obligated to read or respond to this email outside of your normal working hours. |
[Prev in Thread] | Current Thread | [Next in Thread] |