lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TimeSignature with note in denominator


From: Aaron Hill
Subject: Re: TimeSignature with note in denominator
Date: Sat, 13 Nov 2021 09:15:44 -0800
User-agent: Roundcube Webmail/1.4.9

On 2021-11-13 7:15 am, Aaron Hill wrote:
It makes perfect sense that it could be generalized to accept any music.

Continuing my trend for hastily written/researched code, consider the attached. There is almost certainly an easier way of doing things, and who knows what I have broken in the process.

For reference, here is what the user would be able to do:

%%%%
\fixed c' {
  \time 3/4                  | g4 a b
  \time 7/8                  | g4 a b8 a b
  \time \kieren 5 8          | g4 a8 b a
  \time \kieren 3 4.         | g4 a8 b4. a
  \time \kieren 2 { 8[ 8.] } | g4 a16 b a b8.

  \bar "||"
  \break

  \override Score.TimeSignature.style = #'kieren

  \time 3/4                  | g4 a b
  \time 7/8                  | g4 a b8 a b
  \time \kieren 5 8          | g4 a8 b a
  \time \kieren 3 4.         | g4 a8 b4. a
  \time \kieren 2 { 8[ 8.] } | g4 a16 b a b8.

  \bar "|."
}
%%%%

Cosmetically, I do not like the alignment in some in the fractions. I believe the dot should have no effect on the horizontal alignment of the note head with the number, but I am out of time to refine further. I suspect \markup \score might not be the best tool for the job in the long run, though it certainly allows for very permissive ly:music? as a denominator. (I should test with \tuplets...)

P.S. Kieren: I apologize if my naming things "kieren" in the code offends. Hopefully, you would consider it an honor for the feature to carry your name, as you are certainly the strong voice for its inclusion.


-- Aaron Hill

Attachment: kieren-time.cropped.png
Description: PNG image

Attachment: kieren-time.ly
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]