lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Graphic background behind systems


From: Klaus Blum
Subject: Re: Graphic background behind systems
Date: Sun, 28 Feb 2016 10:31:11 -0700 (MST)

Hi Paul, 


Paul Booker wrote
> would it also be possible to have white-out on the barline and staff to
> help it stand out?

you could use 
    \override Score.BarLine.whiteout = ##t
but that would make the white "frame" around the barlines cover the staff
lines. 
But as you wrap your score into a markup block, you can use the \whiteout
command for the entire score. 
Here's what I would try:

% -------------------------------------------------------------------

\version "2.19.36"
samplePath =
#'((moveto 0 0)
   (rcurveto 0 1 1 1 1 0)
   (rlineto 0 -5)
   (rcurveto 0 -1 -1 -1 -1 0)
   (closepath))

\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0) 
  \translate #'(0 . -2)
  \line {
    \hspace #33
    \with-color #red \override #'(filled . #t) \path #0.1 #samplePath
    \hspace #18.2
    \with-color #red \override #'(filled . #t) \path #0.1 #samplePath
    \hspace #18.2
    \with-color #red \override #'(filled . #t) \path #0.1 #samplePath
  }
}

\markup {
  \score {
    \new StaffGroup
    \new Staff \with {
      \omit Staff.TimeSignature
    }
    \relative c {
      \set Score.proportionalNotationDuration = #(ly:make-moment 1/8)
      \override Score.SpacingSpanner.strict-note-spacing = ##t
      \override Score.BarLine.whiteout = ##t
      c'1 | c | c | c |
    }
    \layout { }
  }
}

% -------------------------------------------------------------------

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Graphic-background-behind-systems-tp187834p187837.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]