Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Modify only the current system
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Starting bars usually are all clones of the first one. The only way to affect one system and not the others is to collect all the grobs using the <code>all-elements</code> property of any grob on the system in question (for example a <code>NoteHead</code>) and filter the target grob, which you can then modify. <lilypond version="2.24.0" full> %% Thanks to David Nalesnik: %% https://lists.gnu.org/archive/html/lilypond-user/2019-03/msg00205.html #(define drop-in-on-spanner (lambda (grob) (let* ((elts (ly:grob-array->list (ly:grob-object (ly:grob-system grob) 'all-elements))) (ssb (filter (lambda (e) (grob::has-interface e 'system-start-delimiter-interface)) elts))) (set! (ly:grob-property (car ssb) 'color) red)))) \new StaffGroup << \new Staff { c'1 \break \tweak after-line-breaking #drop-in-on-spanner c' \break c' \break } \new Staff { c' c' c' } >> \paper { tagline = ##f } </lilypond> [[Category:Staff notation]] [[Category:Tweaks and overrides]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)