Re: Naming lines of music
Hello Xavier, I haven't tested either of these versions - I read something that I interpreted to mean that something that LilyPond depends on had been upgraded and no longer runs on Windows 7 or 8.1 with the effect that later versions of Lilypond won't. This is beyond my technical understanding of the composition of the environment and I don't recall what the something was (though I think it begins with "g") so I took it at face value. Best Giles From: Xavier Scheuer Sent: 14 May 2024 15:15 To: Giles Boardman Cc: lilypond-user@gnu.org Subject: Re: Naming lines of music On Tue, 14 May 2024 at 15:43, Giles Boardman mailto:giles.board...@hotmail.co.uk>> wrote: > > Thanks again Xavier. You are very patient - I have just sat down at my > up-to-date computer and the difference between the versions' functionality is > enormous. If I'd realised, I would have bitten the bullet and had fewer > questions and taken up less of everyone's time. My apologies. Out of > interest, is there somewhere that tells me the last version of Lilypond that > would run on Windows 8.1. Perhaps there is a sweet spot for me - my layout > requirements are largely satisfied by these very simple layouts. Hello, Well apparently Jean added the sentence "(Windows 7 and Windows 8 are not supported)" for 2.24.0. https://gitlab.com/lilypond/lilypond/-/commit/c9fa78c28d26661f1176bd8e1b13c574e71e9664 That being said, LilyPond >2.24 does not support Windows <8.1 mainly because Microsoft itself has ended support for Windows 8.1. Maybe LilyPond 2.24 or 2.25 still do run on Wondows 8.1. Have you tested? Kind regards, Xavier
Re: Naming lines of music
On 2024-05-14 15:08, Xavier Scheuer wrote: > Or is there a line title, like the variables for "Composer" Piece" etc. I looked, but I haven't found anything obvious. I would use "piece", but actually you could even define your own custom header field and custom layout for titles. https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles Another alternative is to use \tempo "Allegro" (which worked already in 2.18, as far as I can see) However, I mostly do like Xavier and use the piece header field, but I didn't like the default position and wanted it to be typeset with the same indentation as the first line of music, which after some struggle could be obtained with the following redefinition of the titling commands (where I skipped the opus field, since I don't use it): \version "2.24.1" %% Indent the piece together with the first score line #(define-markup-command (indented layout props text) (markup?) (interpret-markup layout props (markup #:concat (#:hspace (ly:output-def-lookup layout 'indent)) text))) \paper{ scoreTitleMarkup = \markup { \indented \huge \bold \pad-to-box #'(0 . 0) #'(0 . 0) \fromproperty #'header:piece } } \header{ title = "Main title" composer = "Mr. Anonymous" } \score{ \new Staff \relative c' { \repeat unfold 10 { c4 d e d | } c1 } \layout{} \midi{} \header{ piece = "My favourite piece" } } \score{ \new Staff \relative c'' { \repeat unfold 10 { c4 d e d | } c1 } \layout{} \midi{} \header{ piece = "Another piece" } } /Mats
Re: Naming lines of music
On Tue, 14 May 2024 at 15:43, Giles Boardman wrote: > > Thanks again Xavier. You are very patient - I have just sat down at my up-to-date computer and the difference between the versions' functionality is enormous. If I'd realised, I would have bitten the bullet and had fewer questions and taken up less of everyone's time. My apologies. Out of interest, is there somewhere that tells me the last version of Lilypond that would run on Windows 8.1. Perhaps there is a sweet spot for me - my layout requirements are largely satisfied by these very simple layouts. Hello, Well apparently Jean added the sentence "(Windows 7 and Windows 8 are not supported)" for 2.24.0. https://gitlab.com/lilypond/lilypond/-/commit/c9fa78c28d26661f1176bd8e1b13c574e71e9664 That being said, LilyPond >2.24 does not support Windows <8.1 mainly because Microsoft itself has ended support for Windows 8.1. Maybe LilyPond 2.24 or 2.25 still do run on Wondows 8.1. Have you tested? Kind regards, Xavier
Re: Naming lines of music
I would expect all current versions of LilyPond would run on Windows 8.1. However, Windows 8 is so far out of support, it would not have been tested and therefore is not publicised. On 14/05/2024 14:43, Giles Boardman wrote: Thanks again Xavier. You are very patient - I have just sat down at my up-to-date computer and the difference between the versions' functionality is enormous. If I'd realised, I would have bitten the bullet and had fewer questions and taken up less of everyone's time. My apologies. Out of interest, is there somewhere that tells me the last version of Lilypond that would run on Windows 8.1. Perhaps there is a sweet spot for me - my layout requirements are largely satisfied by these very simple layouts. *From:* Xavier Scheuer *Sent:* 14 May 2024 14:08 *To:* Giles Boardman *Cc:* Kieren MacMillan ; lilypond-user@gnu.org *Subject:* Re: Naming lines of music On Tue, 14 May 2024 at 14:44, Giles Boardman wrote: > > 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? Hello, See Timothy's answer (left-edge and link to IR). \override Score.RehearsalMark.break-align-symbols = #'(clef) \override Score.RehearsalMark.break-align-symbols = #'(time-signature) https://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface https://lilypond.org/doc/v2.24/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface You could also change the break-align-anchor-alignment of KeySignature (NR same reference). > Or is there a line title, like the variables for "Composer" Piece" etc. I looked, but I haven't found anything obvious. I would use "piece", but actually you could even define your own custom header field and custom layout for titles. https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles Kind regards, Xavier
Re: Naming lines of music
Thanks again Xavier. You are very patient - I have just sat down at my up-to-date computer and the difference between the versions' functionality is enormous. If I'd realised, I would have bitten the bullet and had fewer questions and taken up less of everyone's time. My apologies. Out of interest, is there somewhere that tells me the last version of Lilypond that would run on Windows 8.1. Perhaps there is a sweet spot for me - my layout requirements are largely satisfied by these very simple layouts. From: Xavier Scheuer Sent: 14 May 2024 14:08 To: Giles Boardman Cc: Kieren MacMillan ; lilypond-user@gnu.org Subject: Re: Naming lines of music On Tue, 14 May 2024 at 14:44, Giles Boardman mailto:giles.board...@hotmail.co.uk>> wrote: > > 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? Hello, See Timothy's answer (left-edge and link to IR). \override Score.RehearsalMark.break-align-symbols = #'(clef) \override Score.RehearsalMark.break-align-symbols = #'(time-signature) https://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface https://lilypond.org/doc/v2.24/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface You could also change the break-align-anchor-alignment of KeySignature (NR same reference). > Or is there a line title, like the variables for "Composer" Piece" etc. I > looked, but I haven't found anything obvious. I would use "piece", but actually you could even define your own custom header field and custom layout for titles. https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles Kind regards, Xavier
Re: Naming lines of music
On Tue, 14 May 2024 at 14:44, Giles Boardman wrote: > > 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? Hello, See Timothy's answer (left-edge and link to IR). \override Score.RehearsalMark.break-align-symbols = #'(clef) \override Score.RehearsalMark.break-align-symbols = #'(time-signature) https://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface https://lilypond.org/doc/v2.24/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface You could also change the break-align-anchor-alignment of KeySignature (NR same reference). > Or is there a line title, like the variables for "Composer" Piece" etc. I looked, but I haven't found anything obvious. I would use "piece", but actually you could even define your own custom header field and custom layout for titles. https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles Kind regards, Xavier
Re: Naming lines of music
On 14/05/2024 12:06, Kieren MacMillan wrote: 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 } } In addition to Kieren's comments, you can set the object that the rehearsal mark aligns to. For example, to align to the left edge of the system: \override RehearsalMark.break-align-symbols = #'(left-edge) The list of objects (or break-align symbols) you can align against is here: https://lilypond.org/doc/v2.25/Documentation/internals/break_002dalignment_002dinterface -- Timothy Lanfear, Bristol, UK.
Re: Naming lines of music
On Tue, 14 May 2024 at 12:43, Giles Boardman wrote: > > 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? Hello, Please consider upgrading, version 2.18.2 is over 10 years old. Current stable version (2.24.3) has the \textMark command specifically for such cases, see NR 1.8.1 Text marks https://lilypond.org/doc/v2.24/Documentation/notation/writing-text#text-marks Otherwise it is possible to change the alignment of rehearsal mark with \override Score.RehearsalMark.self-alignment-X = #LEFT Kind regards, Xavier
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.
Naming lines of music
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? The snippet below is repeated i.e. multiple \score { blocks so I get a page of short sections of music with their titles. Only thing is that all their titles are different lengths and centred, so they don't display as I would like. I have tried other methods, but \mark is the only one I have got to work. 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 Thanks \version "2.18.2" \score { { \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 ".." } \layout { } \midi { } } produces: [cid:8c815b0b-9cc5-4253-b5a4-bc7400b8ed62]