简体   繁体   English

如何在 LilyPond 中添加背景颜色?

[英]How to add background-color in LilyPond?

I'm searching for a way to add a background color to parts of a LilyPond generated musical score.我正在寻找一种方法来为 LilyPond 生成的乐谱的某些部分添加背景颜色。 Is there a way to achieve this within the syntax of LilyPond?有没有办法在 LilyPond 的语法中实现这一点? My research so far has only shown ways to color noteheads by pitch.到目前为止,我的研究只展示了按音高给符头着色的方法。

Here you can see, what I mean在这里你可以看到我的意思

Not directly, you'll need to add your own functions.不是直接的,您需要添加自己的功能。 Fortunately, someone already wrote them.幸运的是,已经有人写了。 There's an example on the LSR which shows how to use different kinds of backgrounds as annotations: https://lsr.di.unimi.it/LSR/Item?id=1000 LSR 上有一个示例,展示了如何使用不同种类的背景作为注释: https://lsr.di.unimi.it/LSR/Item?id=1000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM