This is butt ugly, Knute, but maybe suggesting a possible way:
********************
\version "2.25.14"
\language "english"
% see also
https://github.com/lilypond/lilypond/blob/master/scm/music-functions.scm#L2036
#(define (make-script x)
(make-music 'ArticulationEvent
'articulation-type x))
#(define (add-script m x)
(case (ly:music-property m 'name)
((NoteEvent) (set! (ly:music-property m 'articulations)
(append (ly:music-property m 'articulations)
(list (make-script x))))
m)
((EventChord)(set! (ly:music-property m 'elements)
(append (ly:music-property m 'elements)
(list (make-script x))))
m)
(else #f)))
#(define (add-staccato m)
(add-script m 'staccato))
addStacc = #(define-music-function (music)
(ly:music?)
(map-some-music add-staccato music))
mus = {
\key c \major \time 4/4 \clef bass
\relative c r4. r16 g,16 a, b, c d e f g f af g f e d c b,8 c16 b, c8 g,
}
musOct = { \addStacc {\override NoteHead.font-size = -2 \transpose c c,
\mus }
}
{
<<
\mus
\musOct
>>
}
**********************
On 2024-06-07 12:15, Knute Snortum wrote:
I've run across some music that has octaves where the bottom note is
the size of a grace note, a cue note I'm guessing. See attached
picture. I can create what I want with this in LilyPond code:
\version "2.24.3"
{
\clef bass
<\single \override NoteHead.font-size = -2 c, c>4
}
...but repeating that for several dozen octaves is going to be a
pain. There is a scheme function in the LSR that creates octaves
(https://lsr.di.unimi.it/LSR/Snippet?id=445) but I'm not smart enough
to put the "cue sizing" of the bottom note into it. (It relies on
recursion, so is that even possible?)
If anyone has the time to create a function for me that creates
octaves with a cue-sized note as the bottom note, I would be very
grateful. If not, well, copy and paste works!
Thanks,
--
Knute Snortum