Thanks Paul!
________________________________
From: Paul Scott <[email protected]>
Sent: Sunday, June 8, 2025 2:43 PM
To: Hans Aikema <[email protected]>; Dirck Nagy <[email protected]>
Cc: Lilypond-User Mailing List <[email protected]>
Subject: Re: "note equals note" or durational equivalent
Here is my version which I keep in an include file of common definitions I use:
#(define-markup-command (eqBeat layout props notetypeL notetypeR)
(ly:duration? ly:duration?)
(interpret-markup layout props
(markup
#:tiny #:raise 0.4 (#:note notetypeL up)
#:tiny "="
#:tiny #:raise 0.4 (#:note notetypeR up)
)))
used as
\markup{ \eqBeat {4} {8} }
textMark \markup{ \eqBeat {4} {8} }
I can give you a similar definition which includes a tempo number if you want.
HTH,
Paul
On 6/8/25 12:26 PM, Hans Aikema wrote:
On 8 Jun 2025, at 20:45, Dirck Nagy
<[email protected]><mailto:[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