在 Lilypond 中按音高给音符着色
\override NoteHead #'color = #red c
默认颜色为黑色。但我喜欢按音高给所有音符着色,这样我的孩子就可以更轻松地学习识别音符,因为 c、d、e、f... 都与其自己的颜色相关联。上面的内容允许我这样做,但相当冗长。
是否有某种快捷方式,某种宏,允许我做一些事情:
redc greend bluee
或者甚至按音高覆盖每个音符的默认颜色,以便我什至可以简单地做:
c d e
并且让每个音符都有不同的颜色?
lilypond can color notes in a arbitrary way using
\override NoteHead #'color = #red c
with the default color is black. But I like to color all notes by pitch, so that my kids can more easily learn to recognize the notes as the c, d, e, f, ... are associated with its own color. The above allows me to do this, but is rather verbose.
Is there a shortcut, macros of some sort, that allow me to do something along the lines of:
redc greend bluee
or even overwriting the default colors for each note by pitch so that I can even simply do:
c d e
and have each of them have a different color?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
snippets 中有一个示例:
There is an example for this in the snippets:
有一个问题可以根据音高对音符头进行着色吗? 在 LilyPond 片段存储库。单击五线谱即可获得答案。
There's a question It is possible to color note heads depending on their pitch? at the LilyPond Snippet Repository. You get the answer by clicking on the stave.
好的,对于这本书 儿童键盘课程 - 第 1 本书 我早些时候买了在剑桥一年,我现在有这样的颜色编码:
OK, for the book Kid's Keyboard Course - Book #1 I bought earlier this year in Cambridge, I now have this color coding: