cautionary accidental styles with doubly altered notes

Helmut Kastenholz via bug-lilypond <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <trinity-5d8c5467-d989-4b5c-9050-7a707e90d9bf-1717530445368@3c-app-webde-bap24>
Dear LilyPond developers,

the accidental styles piano-cautionary, modern-cautionary, and
modern-voice-cautionary don't seem to work correctly with doubly altered
notes, cf. attached example:

If d flat follows d double flat in a different octave or on a different
staff, the accidental is printed in parentheses. The same holds for
sharps instead of flats and for other notes instead of d.

To my understanding, the single flats and single sharps, resp., should
be printed without parentheses, because they are essential: omitting
them would change the pitch of the note. Please correct me, if
I'm wrong.

Moreover, placing an exclamation point after the note does not remove
the parentheses. This may be related to
https://gitlab.com/lilypond/lilypond/-/issues/2810

Best regards,
Helmut
cautionary-bug.ly (application/octet-stream, 806 B) - not displayed
cautionary-bug.png (image/png, 48.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.