I'm currently engraving a "score" (actually, a few fragments on piano
staves without key/time sig or barlines) for a piece by Satie called
"Vexations."
The first theme contains a triad with a unique accident comprised of a
"natural natural sharp" for the middle note "a"
example:
♮♮♯ 𝅘𝅥
Is there is a way to construct this unique accidental *without* having
to use Scheme?
the Scheme code below works but curious if there is something native in
LilyPond that could do the same thing?
thanks in advance!
KC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.24.2"
\language "english"
%%%%%%%%% FUNCTION
doubleNaturalSharp =
#(define-music-function (parser location) ()
#{
\once \override Accidental.stencil =
#(lambda (grob)
(grob-interpret-markup grob
#{ \markup
\combine
\musicglyph #"accidentals.natural"
\combine
\translate #'(0.7 . 0) \musicglyph
#"accidentals.natural"
\translate #'(1.4 . 0) \musicglyph #"accidentals.sharp"
#}
))
#}
)
%%%%%%%%%%%% FRAGMENT EXAMPLE
\relative c' {
% Use 'cs' (C-sharp) to ensure an accidental is generated
< cs \single \doubleNaturalSharp as' e' > }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%