Hi Brent,
Am 12.06.21 um 08:34 schrieb Brent Annable:
I'm trying to create a markup indication that includes two beamed
eighth-notes, but I can't seem to figure out how using \note or
\note-by-number. Can anyone help? My efforts are attached.
\version 2.19.65
\relative c' { c4
f^\markup {\center-align \italic \small { "(v. 6" }
\teeny { \note-by-number #3 #0 #1 }
\teeny { \note-by-number #3 #0 #1 \italic \small ")" }
}
f a }
I once tried to follow an idea of David Kastrup's (see
https://lists.gnu.org/archive/html/lilypond-user/2021-03/msg00031.html)
to create a \rhythm markup function. I never got around to finishing it
(the hard part is to make "the right things" configurable I think), but
it seems to be usable at the moment:
#(define-markup-command (rhythm layout props content) (ly:music?)
#:properties ((time #f))
(interpret-markup layout props #{
\markup {
\score {
\new RhythmicStaff \with {
\override StaffSymbol.line-count = 0
\override Rest.staff-position = 2
\override BarLine.bar-extent = #'(-0.5 . 2)
\override TimeSignature.Y-offset = 0.5
#(if (not time)
#{ \with {
\remove Time_signature_engraver
} #})
}
{
#(if time #{ \time $time #})
#content
}
\layout {
indent = 0
#(layout-set-staff-size 12)
}
}
} #}))
Possible examples:
\markup { Als Triolen ( \rhythm { \tuplet 3/2 4 { r4 8 4 8 } } )
auszuführen. }
\markup { Tempo comodo, ma \italic shuffle (\rhythm { 8[ 8] } = \rhythm
{ \tuplet 3/2 { 4 8 } } ). }
\markup { \override #'(time . (3 . 4)) \rhythm { \time 3/4 4 4 4 4 4 4 4 } }
In your case, it's simply
\relative c' {
c4
f^\markup \center-align \italic \small { (v. 6 \rhythm { 8[ 8] }) }
f a
}
Lukas