[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Overriding Score.SystemStartBar once at the beginning
From: |
jasonflatley |
Subject: |
Overriding Score.SystemStartBar once at the beginning |
Date: |
Sat, 19 May 2018 03:06:32 -0700 (MST) |
I am trying to make a jazz lead sheet template. One requirement is that the
treble clef and key signature should only appear in the first system, and
the subsequent systems should begin with a bar line. This picture shows what
I have so far (generated by the lilypond code at the end of this message).
<http://lilypond.1069038.n5.nabble.com/file/t5643/first_system_bar_line_example_%28Small%29.png>
I don't want the bar line at the very beginning, to the left of the treble
clef.
So I tried to override Score.SystemStartBar for just the first system. I
tried various permutations of \override and \once in either the layout block
or near the %%% in the melody section, using statements like the following:
--\override Score.SystemStartBar #'collapse-height = #30
--\override Score.SystemStartBar #'X-offset = -10
--\override Score.SystemStartBar.break-visibility = #'#(#f #f #f)
I can't seem to override anything once, and then set it back.
Any suggestions?
----------------
\version "2.18.2"
\header {
title = "First System Bar Line Example"
}
\paper {
indent = 0\mm
}
\layout {
\override Score.Clef #'break-visibility = #'#(#f #f #f) % make only the
first clef visible
\override Score.KeySignature #'break-visibility = #'#(#f #f #f) % make only
the first time signature visible
\override Score.SystemStartBar #'collapse-height = #1 % allow single-staff
system bars
\context {\Score \remove "Bar_number_engraver"}
}
melody = \relative c'' {
%%% Try to put something here to make just the bar line to left of treble
clef disappear
\numericTimeSignature
c4 c c c
c c c c
c c c c
c c c c \break
c4 c c c
c c c c
c c c c
c c c c \break
c4 c c c
c c c c
c c c c
c c c c \bar "|."
}
\score {<<\new Staff { \melody }>>}
--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html
- Overriding Score.SystemStartBar once at the beginning,
jasonflatley <=