Try this: \version "2.25.7"
%% An accidental style that also prints cancellation signs in the following
%% measure for different octaves ("piano" only does it for the same octave).
#(set! accidental-styles
(cons
`(piano-customized #f
(Staff ,(make-accidental-rule 'same-octave 0)
,(make-accidental-rule 'any-octave 0)
,(make-accidental-rule 'same-octave 1)
,(make-accidental-rule 'any-octave 1)
GrandStaff
,(make-accidental-rule 'same-octave 1)
,(make-accidental-rule 'any-octave 1))
()
GrandStaff)
accidental-styles))
\language "english"
\layout {
\context {
\PianoStaff
\accidentalStyle piano-customized
}
}
\new PianoStaff <<
\new Staff { <b e' b'>1 <cs' e' b'> <b e' b'> }
\new Staff { \clef bass <c, g,>1 <a,, e, a,> <c, g,> }
>>
Best,
Jean
signature.asc
Description: This is a digitally signed message part
