Setting a color for all staff objects automatically [obsolete in 2.…
To color all objects on a staff is a laborious … …context can then be colored by setting their color property. This snippet is obsolete in LilyPond 2.… …which introduces a much simpler method: \layout { property-defaults.color = "blue" }
…it/LSR/Item?id=443 #(define (override-color-for-all-grobs color) (lambda (context) (let loop ((x all-grob-descriptions)) (if (not (… …x)) (let ((grob-name (caar x))) (ly:context-pushpop-property context grob-name 'color color) (loop (cdr x))))))) \relative c' { \applyContext #(override-color-for-all-grobs (…