Hi Gabriel,
Does this do what you want?
%%% SNIPPET BEGINS
\version "2.24.4"
\relative c'' {
\key g \major
%% m1
\time 10/4
g1 aes4 ees4 g1 \bar "|"
%% m2
\time 12/4
ees1 % needs an accidental
f4 ees4 d4
aes'4 % needs an accidental
g1 \bar "||"
%% m3
\time 10/4
fis?1 e?4 % both of these notes should have cautionary (parenthetical)
accidentals
fis4 g1 \bar "|"
a?1 % should have cautionary (parenthetical) accidental
f4 ees4 d4 fis4 g1
\fine
}
\layout {
\context {
\Score
\omit TimeSignature
\cadenzaOn % unmetered music (disables automatic measure demarcation)
}
\context {
\Staff
\hide Stem
\accidentalStyle neo-modern-voice
% if enabled, LilyPond prints some desired accidentals
% but also prints some extraneous/undesired accidentals
% and also fails to print a sharp sign on the first F-sharp
}
}
%%% SNIPPET ENDS
It does require a little manual effort (setting time signatures explicitly, and
adding ? for cautionary accidentals), but seems pretty robust otherwise. Others
may have better solutions, of course!
Best,
Kieren.
__________________________________________________
My work day may look different than your work day. Please do not feel obligated
to read or respond to this email outside of your normal working hours.