Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Kieren MacMillan
Hi all, When I was in high school, there was a boy named Kenny Wong who was a video game god. Didn’t matter what the game was — Asteroids, Galaga, Ms. Pac-Man, Robotron, you name it — he had the high score on every console in every arcade within a 10 km radius of our school. Whenever we were “i

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Jean Abou Samra
\version "2.25.10" tempoChange = #(define-music-function (firstNote secondNote) (ly:music? ly:music?) #{ \tweak font-size -1 \tweak self-alignment-X ##f \textEndMark \markup \put-adjacent #X #LEFT \put-adjacent #X #RIGHT \general-align #X #CENTER " = "

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Kieren MacMillan
Hi all, > Thanks, Michael - that's a really nice solution. Agreed! Although I personally still think \rhythm is cleaner: \version "2.25.10" tempoChange = #(define-music-function (alignValue firstNote secondNote) (number? ly:duration? ly:duration?) #{ \tweak self-alignment-X #alignValue

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Alasdair McAndrew
Thanks, Michael - that's a really nice solution. I wonder if it would be possible to create such a function which automatically puts the = sign over the barline, and the notes to its right and left. Alasdair On Sun, 19 Nov 2023, 1:41 am Michael Werner, wrote: > Hi Alasdair, > > On Fri, Nov 17,

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Michael Werner
Hi Alasdair, On Fri, Nov 17, 2023 at 9:28 AM Alasdair McAndrew wrote: > I'm typesetting some 16th century music which has a lot of time changes. > And I'd like to add equivalences of notes across bar-lines, to indicate for > example, that a quarter note in one bar is equal in time to a half note

Re: Missing opening repeat after double bar

2023-11-18 Thread Hans Aikema
> On 18 Nov 2023, at 14:29, Hans Aikema wrote: > > And then I realised…. It can even be done in a simpler way: swap out the > \bar”||” custom bar for \section and lilypond already knows that it should > create both a section-end bar at the end and a repeat-start at the start of > the next li

Re: Missing opening repeat after double bar

2023-11-18 Thread Peter Mayes
On 18/11/2023 13:29, Hans Aikema wrote: swap out the \bar”||” custom bar for \section Simple and elegant! Thanks again -- Best wishes -- Peter -- Peter Mayes

Re: Missing opening repeat after double bar

2023-11-18 Thread Hans Aikema
And then I realised…. It can even be done in a simpler way: swap out the \bar”||” custom bar for \section and lilypond already knows that it should create both a section-end bar at the end and a repeat-start at the start of the next line \repeat volta 2 { c1 } \break c1 \section \br

Re: Missing opening repeat after double bar

2023-11-18 Thread Peter Mayes
Many thanks. I think there is a typo in what you supplied, but with the documentation reference, I got what I wanted:   \defineBarLine "||.|:" #'("||" ".|:" #f) I needed "#'" before the definition, and I reversed the order of the arguments, to get the double bar before the opening repeat bar

Re: Missing opening repeat after double bar

2023-11-18 Thread Hans Aikema
> On 18 Nov 2023, at 13:56, Hans Aikema wrote: > > > >> On 18 Nov 2023, at 13:30, Peter Mayes wrote: >> >> The score I am trying to emulate has an initial repeated section, a >> non-repeated section, and another repeated section. The non-repeated section >> ends with a double bar line, bu

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Kieren MacMillan
Hi all (including -dev!), > There may be a way to do it with a MetronomeMark — I just don’t know it. I > was surprised to find that I couldn’t make the following (or similar) work: And now I find this: Apparently I “offered an extra bounty for

Re: Missing opening repeat after double bar

2023-11-18 Thread Hans Aikema
> On 18 Nov 2023, at 13:30, Peter Mayes wrote: > > The score I am trying to emulate has an initial repeated section, a > non-repeated section, and another repeated section. The non-repeated section > ends with a double bar line, but when I add this (as in bar 7 below), it > suppresses the op

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Paul Hodges
From: Kieren MacMillan There may be a way to do it with a MetronomeMark — I just don’t know it. I was surprised to find that I couldn’t make the following (or similar) work: When I was asked to place the = in a rhythm change over the start of a staff (i.e. sticking out to the left), I use

Missing opening repeat after double bar

2023-11-18 Thread Peter Mayes
The score I am trying to emulate has an initial repeated section, a non-repeated section, and another repeated section. The non-repeated section ends with a double bar line, but when I add this (as in bar 7 below), it suppresses the opening repeat in the following section (in bar 8). I want bot

Re: Relative rhythms across bars for time changes?

2023-11-18 Thread Kieren MacMillan
Hi Alasdair, > The sort of notation I want is in this snippet: > https://lilypond.org/doc/v2.24/Documentation/snippets/rhythms#rhythms-creating-metronome-marks-in-markup-mode > (b) is there an easier way than the markup given in the snippet? Try the [relatively recent] \rhythm function: \relati

Re: Single bar rest with number

2023-11-18 Thread Peter Mayes
On 18/11/2023 11:04, Hans Aikema wrote: See https://lilypond.org/doc/v2.24/Documentation/notation/writing-parts#compressing-empty-measures Snippets >> Numbering single measure rests \setrestNumberThreshold=0 should get you what you desire Perfect! Thank you -- Best wishes -- Peter -- Pet

Re: Single bar rest with number

2023-11-18 Thread Hans Aikema
> On 18 Nov 2023, at 12:05, Hans Aikema wrote: > >  > > >>> On 18 Nov 2023, at 11:25, Peter Mayes wrote: >>> >> If I use \compressMMRests{} for a multi-bar rest, the number of bars of >> rest gets placed about the rest, which is fine. >> >> If the rest is only one bar long, then I don't

Re: LilyPond 2.25.10

2023-11-18 Thread Michael Gerdau
The problem is said LSR-snippet. The LSR runs 2.24., though with 2.25.10 (ly:grob-property-data lyric-text-grob 'self-alignment-X) may return a procedure. The snippet needs to learn how to deal with it. Fixed in LSR. https://lsr.di.unimi.it/LSR/Item?id=888 I can confirm that. Thanks alot, Micha

Re: Single bar rest with number

2023-11-18 Thread Hans Aikema
> On 18 Nov 2023, at 11:25, Peter Mayes wrote: > > If I use \compressMMRests{} for a multi-bar rest, the number of bars of rest > gets placed about the rest, which is fine. > > If the rest is only one bar long, then I don't get the number "1" placed > above the rest, even if I use \compress

Single bar rest with number

2023-11-18 Thread Peter Mayes
If I use \compressMMRests{} for a multi-bar rest, the number of bars of rest gets placed about the rest, which is fine. If the rest is only one bar long, then I don't get the number "1" placed above the rest, even if I use \compressMMRests. I would like the number 1 to appear, even with a sin

Re: LilyPond 2.25.10

2023-11-18 Thread Thomas Morley
Am Fr., 17. Nov. 2023 um 21:33 Uhr schrieb Michael Gerdau : > > >>> I will try to create a MWE if that is required to track down the > >>> problem. > >> > >> > >> A *minimal* example is not strictly required (though helpful), but > >> *some* example is — otherwise, there is nothing we can do, sorry