Re: Graphic background behind systems

2016-02-29 Thread Simon Albrecht

On 29.02.2016 18:00, Klaus Blum wrote:

you could add
   \with-dimensions #'(0 . 0) #'(0 . 0)


Or, in 2.19.37, equivalently:
\with-dimensions-from \null

Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Paul Booker

> 
> Hi Paul, 
> 
> one more try: I've installed LP 2.19.37.
> Yes, it has a different behavior: default whiteout style is the "classic"
> old box style that covers everything behind. You can set the "outline"
> style:

> Does that work for you?
> 
> Cheers, 
> Klaus


Yes, with 2.19.36 it seems to do everything I would expect.
>From what version is it a "new" feature?
Many thanks indeed!
Paul



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Klaus Blum
Hi Paul, 

one more try: I've installed LP 2.19.37.
Yes, it has a different behavior: default whiteout style is the "classic"
old box style that covers everything behind. You can set the "outline"
style:

% ---

\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 {
  \override #'(style . outline)   % new!!!
  \override #'(thickness . 1)% or whatever you like
  \whiteout
  \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
  c'1 | c | c | c |
}
\layout { }
  }
}

% --- 

Does that work for you?

Cheers, 
Klaus



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Klaus Blum
Paul Booker wrote
> ... but leaves the layout as if the graphic still occupied space above the
> staff. SO there is extra white space at the top.

Hi Paul, 

you could add
  \with-dimensions #'(0 . 0) #'(0 . 0)
which tells LP to behave as if the following markup had the given dimensions
(in this case: no space at all).
Try:

% ---
\version "2.19.25"
\include "include/defs.ily"

\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
  c,1 c
  c
  -\tweak #'extra-offset #'(-2.5 . -15)  % move to right position
  -\tweak #'layer #-1  % place in bottom layer
  ^\markup {
\with-dimensions #'(0 . 0) #'(0 . 0)
\with-color #(rgb-color 1 0.5 0.5) % specify color
\filled-box #'(0 . 1) #'(0 . 25) #1  % specify size
  }
  c
}
\layout { }
  }
}
% ---

Is that what you need?



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Paul Booker
> 
> A direction modifier (- for ‘neutral’, ^ for ‘up’ or _ for ‘down’) is 
> needed to mark a post event, i.e. in this case a text script attached to 
> a note.
> 
> HTH, Simon
> 
Thanks Simon
I should have figured that out. What I have figured out is that a post event
may handle a layer change to -1, but leaves the layout as if the graphic
still occupied space above the staff. SO there is extra white space at the
top. I've moved back to 2.18.2 on one machine but cannot ask Lilypond to do
what it doesn't want to do.It is for a graphic design which I can resolve in
svg after output, so I'm not completely stuck. LP is still admirable!!

\version "2.18.2"
\include "include/defs.ily"

\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
c,1 c
c
 -\tweak #'extra-offset #'(-2.5 . -15)  % move to right 
position
 -\tweak #'layer #-1  % place in bottom layer
 ^\markup {
 \with-color #(rgb-color 1 0.5 0.5) % specify color
 \filled-box #'(0 . 1) #'(0 . 25) #1  % specify size
 }
c 
}
\layout { }
}
}


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Simon Albrecht

On 29.02.2016 12:03, Paul Booker wrote:

I can't find an
explanation of the tweak prefixes.
Do you know the difference between
-\tweak
^\tweak and
  \tweak

in the above script? It doesn't work without them!


A direction modifier (- for ‘neutral’, ^ for ‘up’ or _ for ‘down’) is 
needed to mark a post event, i.e. in this case a text script attached to 
a note.


HTH, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-29 Thread Paul Booker

> The markup part takes nearly no space at all and is placed behind the score: 
>  
> But I'm working with LP 2.19.30 and 2.19.25. 
> Maybe something has changed since those versions?
> 
Hi Klaus,

I don't really want to go back to an earlier version, so I've been browsing
the LSR and found something which might work in a similar way, though
different to my original plan.

\version "2.11.56"
\relative c'' {
 a1 a  a
 -\tweak #'extra-offset #'(-2.5 . -15)  % move to right position
 -\tweak #'layer #-1  % place in bottom layer
 ^\markup {
 \with-color #(rgb-color 1 0.5 0.5) % specify color
 \filled-box #'(0 . 1) #'(0 . 25) #0  % specify size
 }
 a
}
from 

http://lists.gnu.org/archive/html/lilypond-user/2008-09/msg00083.html

I should be able to move forward with this, though I can't find an
explanation of the tweak prefixes.
Do you know the difference between
-\tweak
^\tweak and 
 \tweak 

in the above script? It doesn't work without them!
Cheers
Paul



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Klaus Blum
Paul Booker wrote
> All I would like now is to get the score markup back to the top of the
> page
> with the graphic visible behind it.

Strange... in my examples I have this construction:

\markup {
  \with-dimensions #'(0 . 0) #'(0 . 0)
  \translate #'(0 . -2)
  \line {
  etc...
  }
}

The markup part takes nearly no space at all and is placed behind the score: 
 
But I'm working with LP 2.19.30 and 2.19.25. 
Maybe something has changed since those versions?



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Paul Booker

> 
> I’m not having any problem with this, if I leave both grobs in the 
> default layer, or if StaffSymbol is _below_ BarLine. The whiteout on 
> BarLine seems to be too small to affect StaffSymbol – dunno why.
> 
> HTH, Simon
> 
Hi Simon,
I don't have a problem there either.
My primary thread was to do with the graphic markup being required under the
score markup. Apparently markup doesn't have a layer property, at least
Lilypond laughs at me when I try it.
So far, I've found a colour switch for the graphic

\with-color #grey \override #'(filled . #t) \path #0.1 #samplePath

and Klaus has helped me get some white-out which works fine for me.

\override Staff.StaffSymbol.whiteout = ##t

All I would like now is to get the score markup back to the top of the page
with the graphic visible behind it.
Thanks
Paul
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Simon Albrecht

On 28.02.2016 20:10, Klaus Blum wrote:

Simon Albrecht-2 wrote

Please give an example of what exactly you
can’t achieve.

David suggested to whiteout the staff lines AND the barlines, but not the
whole markup-score thing.
I don't know how to do this without one covering the other.


I’m not having any problem with this, if I leave both grobs in the 
default layer, or if StaffSymbol is _below_ BarLine. The whiteout on 
BarLine seems to be too small to affect StaffSymbol – dunno why.


HTH, Simon



% ---

\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.layer = #-2
   \override Score.BarLine.whiteout = ##t
   \override Score.StaffSymbol.layer = #-1
   \override Score.StaffSymbol.whiteout = ##t
   c'1 | c | c | c |
 }
 \layout { }
   }
}

% ---



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Klaus Blum
Simon Albrecht-2 wrote
> Please give an example of what exactly you 
> can’t achieve.

David suggested to whiteout the staff lines AND the barlines, but not the
whole markup-score thing. 
I don't know how to do this without one covering the other.

% ---

\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.layer = #-2
  \override Score.BarLine.whiteout = ##t
  \override Score.StaffSymbol.layer = #-1
  \override Score.StaffSymbol.whiteout = ##t
  c'1 | c | c | c |
}
\layout { }
  }
}

% --- 



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Simon Albrecht

On 28.02.2016 19:33, Klaus Blum wrote:

Hmmm... I could use
   \override Score.BarLine.layer = #-1
   \override Score.BarLine.whiteout = ##t
to move the barline behind the staff lines. But if I want to whiteout the
staff lines as well, that doesn't help anymore.
Or is there a way to place an object and its whiteout "clones" into
different layers?


I don’t quite get the problem: effectively, the whiteout ‘clones’ will 
always be on a layer directly beneath the object – the object itself 
will never be whited out. Please give an example of what exactly you 
can’t achieve.


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Klaus Blum
Hi Simon,

Simon Albrecht-2 wrote
> That kind of problems can be overcome by overriding layer on the 
> competing objects.

Hmmm... I could use
  \override Score.BarLine.layer = #-1
  \override Score.BarLine.whiteout = ##t
to move the barline behind the staff lines. But if I want to whiteout the
staff lines as well, that doesn't help anymore. 
Or is there a way to place an object and its whiteout "clones" into
different layers?

Cheers, 
Klaus



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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Klaus Blum
Paul Booker wrote
> That doesn't work for me

Ooops, I posted the wrong code... that was my first attempt.
Here is my second one that was supposed to be shown here:

% ---

\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 {
  \override #'(thickness . 1)
  \whiteout
  \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
  c'1 | c | c | c |
}
\layout { }
  }
}

% ---




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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Simon Albrecht

On 28.02.2016 18:31, Klaus Blum wrote:

you could use
 \override Score.BarLine.whiteout = ##t
but that would make the white "frame" around the barlines cover the staff
lines.


That kind of problems can be overcome by overriding layer on the 
competing objects.


Best, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Paul Booker
Klaus Blum  gmx.de> writes:

> 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. 

Hi Klaus, 
That doesn't work for me, but you have led me to find

\override Staff.StaffSymbol.whiteout = ##t

which as you rightly say, will do the job once I can get the graphic behind it.
Thanks for your help!






___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Graphic background behind systems

2016-02-28 Thread Klaus Blum
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.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user