On 28 Dec 2024, at 15:30, Hans Aikema <hans.aikema@aikebah.net> wrote:
On 28 Dec 2024, at 15:25, Simon Albrecht <simon.albrecht@mail.de> wrote:
Hello,
I would like to obtain LilyPond output with black and white inverted (black background, white music and text) for on-screen use and projections. Does someone know how to achieve that through LilyPond code, or has it been done before? Should absolutely be an LSR snippet IMO.
I could probably figure out something with Ghostscript, but I’d like to avoid post-processing.
Best, Simon
Only done in the context of 'sheet music on powerpoint slides' by means of transparent-background' PNG output with all objects' colors overridden to white and putting them on black-background powerpoint slides. But I presume you intend to have a PDF output in darkmode setup.
If not and the transparent-PNG route fits you, the basic building blocks are https://lsr.di.unimi.it/LSR/Item?id=443 to get the coloring overridden (which would no longer be needed if you are on the development version as indicated in the LSR)
Combined with #(ly:set-option 'pixmap-format "pngalpha") % set PNG background to use Alpha transparency
kind regards, Hans |