Repost of How to simplify colours (U.S. colors) of Bar Lines
Yoshiaki Onishi <[email protected]>
| Newsgroups | gmane.comp.gnu.lilypond.general |
|---|---|
| Message-ID | <[email protected]> |
Dear Stu, > Anyone that has better knowledge of Scheme Code may be able to assist in my quest to reduce having to copy every colour inline, e.g. every instance of 'Staff.BarLine.Color', '\section', etc. Re: your inquiry, one approach may be to hardcode exactly what color you wish for each type of barlines you use by creating an alist, then use that alist to paint the barlines in the colors you want. To do this, BarLine.stencil is overridden to incorporate the color change. In order to avoid the mailing list to be cluttered by long codes, I’ve posted a revised version of the code here: https://github.com/yoshiakionishi/lilypond/blob/main/lilypond-user-mailing-list-codes/hardcoding-barline-colors.ly Hope this gets you to closer to what you want to accomplish. Best, Yoshi -- -- -- Yoshiaki Onishi https://github.com/yoshiakionishi/lilypond-snippets