On 08/06/2025 22:27, Dirck Nagy wrote:
I'm on 2.24.1, BTW
I'm still curious what the # commands refer to in the Lilypond manual
example.
\note and \note-by-number are two interfaces that generate the same
output -- you can choose whichever is more convenient.
\note {4} #1.
The parameter (#1) controls the stem length and direction: positive
numbers give an upwards stem; negative numbers a downwards stem. The
value 1 is a normal length stem, smaller numbers give a shorter stem,
larger numbers a longer stem, e.g. \note {4} #-0.75
\note-by-number #1 #1 #1.5.
The first parameter is the notehead type specified according to the table
-2=longa, -1=breve, 0=whole note, 1=half note, 2=quarter note, 3=eighth
note ...
The second parameter is the number of dots on the note head.
The third parameter is the stem length as in \note.
You could write your example as
\markup { \note {4} #1 = \note {2.} #1.5 }
or
\markup { \note-by-number #2 #0 #1 = \note-by-number #1 #1 #1.5 }
These markup functions are documented here:
https://lilypond.org/doc/v2.24/Documentation/notation/music
--
Timothy Lanfear, Bristol, UK.