Hi Leo!
An addition:
MarkEvent is not added to the note, but to the staff (it’s often used for things like rehearsal marks), if you want the markup added to the actual note you can write it like this:
%%%%%%%%%%%%%
\version "2.18.0"
\score {
{
$ (make-sequential-music
(map (lambda (x)
(make-music 'NoteEvent
'pitch
(ly:make-pitch 0 x)
'duration
(ly:make-duration 2)
'articulations
(list (make-music 'TextScriptEvent
'text
(markup #:line (#:fontsize -3 "10"))))))
(list 1 2 3 4)))
}
}
%%%%%%%%%%%%%%%
Thanks, this is actually much better. It's been a while I haven't worked with Lilypond so it's good to be reminded!
2.18 is some years old, by the way.
It was actually erroneously copied from an old file. But it's interesting that apt in Ubuntu Studio has 2.20.0-1 as its latest version.
/H