Thanks Hans; this works!

I'm glad you told me about needing to add an explicit pitch; i wouoldnt have 
figured that out on my own. I can tweak the positioning as needed.

Also, thanks, because I didnt realize the "tempo" field could go anywhere !

dirck



________________________________
From: Hans Aikema <[email protected]>
Sent: Sunday, June 8, 2025 2:26 PM
To: Dirck Nagy <[email protected]>
Cc: Lilypond-User Mailing List <[email protected]>
Subject: Re: "note equals note" or durational equivalent



On 8 Jun 2025, at 20:45, Dirck Nagy <[email protected]> wrote:

Dear Lilypond

I am trying to add a "note value equals note value" in the middle of a piece.

I would call this a "durational equivalent" or a "beat unit equivalent".

Lilypond must have a different name for it, however, because I can not find 
this by searching.

The closest I can find is Lilypond's "Music Notation inside Markup",  which is 
what i want, but i can not get the code to work.  Cutting and pasting the 
following from the Lilypond Notation Reference will work:

^\markup {
\note {4} #1
=
\note-by-number #1 #1 #1.5
}


but i do not understand the syntax.  This results in "quarter-note = 
dotted-half-note with a long stem".

What do the various # signs control? I get errors whenever i try to change any 
of them.

FYI, I am trying to write "half note = half note", and scale it to about 75% 
size.

Again, this is to go in the middle of the piece, not in the tempo / metronome 
field at the beginning of the piece.

Dirck,

A tempo/ metronome doesn’t have to appear at the beginning of a piece, it can 
be perfectly positioned in the middle of a piece like so are you sure what 
you’re after is not a tempo marking?

\version "2.24.0"

{
    c' c' c' c'
    \tempo \markup {
    \rhythm { c4 } = \rhythm { c4 }
    }
    c' c' c' c'
}

Note: I had to add an explicit pitch as lilypond didn’t interpret a plain 4 as 
music yielding

error: wrong type for argument 1.  Expecting music, found (ly:make-duration 2)
    \rhythm
            { 4 } = \rhythm { 4 }

without it

HTH


Reply via email to