Re: a proper whiteout function

2015-05-24 Thread Paul Morris
Ok, thanks for the feedback. I went with "thickness" and 12 instead of 24 for angle-increments. I've submitted a patch for review. http://code.google.com/p/lilypond/issues/detail?id=4418&colspec=ID%20Type%20Status%20Stars%20Owner%20Patch%20Needs%20Summary -Paul_

Re: a proper whiteout function

2015-05-20 Thread Janek Warchoł
Yeah, thickness would be good as well. Thanks, Janek W dniu środa, 20 maja 2015 Carl Sorensen napisał(a): > > > On 5/19/15 10:37 PM, "Janek Warchoł" > wrote: > > > > >- I think "offset" should be renamed to "padding". Throughout LilyPond, > >offsets are used to measure distances and position,

Re: a proper whiteout function

2015-05-20 Thread Carl Sorensen
On 5/19/15 10:37 PM, "Janek Warchoł" wrote: > >- I think "offset" should be renamed to "padding". Throughout LilyPond, >offsets are used to measure distances and position, while padding is used >for ensuring there's enough whitespace around an object. I don't think it should be named "padding

Re: a proper whiteout function

2015-05-19 Thread Janek Warchoł
Hi Paul, thanks a lot for doing this! The result is quite impressive, i didn't expect this approach to produce so nice whiteouts :) I have just a couple cosmetic suggestions: - I think "offset" should be renamed to "padding". Throughout LilyPond, offsets are used to measure distances and positio

Re: a proper whiteout function

2015-05-19 Thread Paul Morris
Hi Carl, Wilbert, David N, Kieren, Abraham, Thanks for all the feedback and suggestions. I’m attaching a new revision. - Original spacing is maintained. Thanks David and Carl for the tips on how to do this. - Optional parameters, with fallback defaults, for offset, color, angle-increments, r

Re: a proper whiteout function

2015-05-18 Thread tisimst
. Then again, perhaps I am just mistaken about all this due to my ignorance of some core features/functions. - Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/a-proper-whiteout-function-tp175593p176762.html Sent from the

Re: a proper whiteout function

2015-05-18 Thread Carl Sorensen
On 5/18/15 1:59 AM, "Wilbert Berendsen" wrote: >Hi Paul, > >this looks very nice! One thing I notice is that the size of the >objects changes, influencing the spacing. But that's probably easy to >fix. It should be very easy to fix. Just get the extents of the original stencil, and apply them t

Re: a proper whiteout function

2015-05-18 Thread Carl Sorensen
On 5/18/15 12:49 PM, "Carl Sorensen" wrote: > >At any rate, there should probably be a user-specifiable way to change all >three values that govern the performance, whether by context properties or >by arguments. As I think about it some more, perhaps the most logically-consistent set of three

Re: a proper whiteout function

2015-05-18 Thread Carl Sorensen
On 5/18/15 12:04 PM, "Paul Morris" wrote: >> On May 17, 2015, at 7:48 PM, Carl Sorensen wrote: >> >> This is a nice implementation -- I didn't think it could be done! > >Thanks Carl! > >> I think >> it should be made part of LilyPond, if the performance hit is not too >>big. >> It seems to crea

Re: a proper whiteout function

2015-05-18 Thread David Nalesnik
On Mon, May 18, 2015 at 1:14 PM, David Nalesnik wrote: > Hi Paul, > > On Mon, May 18, 2015 at 1:10 PM, Paul Morris wrote: > >> > On May 18, 2015, at 3:59 AM, Wilbert Berendsen wrote: >> > >> > this looks very nice! One thing I notice is that the size of the >> > objects changes, influencing the

Re: a proper whiteout function

2015-05-18 Thread David Nalesnik
Hi Paul, On Mon, May 18, 2015 at 1:10 PM, Paul Morris wrote: > > On May 18, 2015, at 3:59 AM, Wilbert Berendsen wrote: > > > > this looks very nice! One thing I notice is that the size of the > > objects changes, influencing the spacing. But that's probably easy to > > fix. > > Thanks! Yes I n

Re: a proper whiteout function

2015-05-18 Thread Paul Morris
> On May 18, 2015, at 3:59 AM, Wilbert Berendsen wrote: > > this looks very nice! One thing I notice is that the size of the > objects changes, influencing the spacing. But that's probably easy to > fix. Thanks! Yes I noticed that horizontal spacing is increased since the stencil is wider (but

Re: a proper whiteout function

2015-05-18 Thread Paul Morris
> On May 17, 2015, at 7:48 PM, Carl Sorensen wrote: > > This is a nice implementation -- I didn't think it could be done! Thanks Carl! > I think > it should be made part of LilyPond, if the performance hit is not too big. > It seems to create a lot of stencils, but maybe that is no problem.

Re: a proper whiteout function

2015-05-18 Thread Kieren MacMillan
Hi Paul (et al.), > I took Kieren up on his offer to sponsor a better whiteout stencil function. > It’s attached so that anyone can make use of it. Thanks for doing this! Looking forward to seeing it in action “in the wild”. If anyone is willing to co-sponsor this function with me, please conta

Re: a proper whiteout function

2015-05-18 Thread Wilbert Berendsen
Hi Paul, this looks very nice! One thing I notice is that the size of the objects changes, influencing the spacing. But that's probably easy to fix. -- Wilbert Berendsen (http://www.wilbertberendsen.nl) ___ lilypond-user mailing list lilypond-user@gn

Re: a proper whiteout function

2015-05-17 Thread Carl Sorensen
On 5/17/15 5:18 PM, "Paul Morris" wrote: >> On Apr 28, 2015, at 11:57 AM, Kieren MacMillan >> wrote: >> >> What would be involved in making a real stencil whiteout function which >>could be applicable to all grobs? > >Hi all, I took Kieren up on his offer to sponsor a better whiteout >stencil

Re: a proper whiteout function

2015-05-17 Thread Paul Morris
> On Apr 28, 2015, at 11:57 AM, Kieren MacMillan > wrote: > > What would be involved in making a real stencil whiteout function which could > be applicable to all grobs? Hi all, I took Kieren up on his offer to sponsor a better whiteout stencil function. It’s attached so that anyone can mak

Re: a proper whiteout function

2015-04-29 Thread Alexander Kobel
On 04/29/2015 03:03 PM, Kieren MacMillan wrote: Hi Francisco, To achieve a whiteout that is useful for music, I think a thick default 'middle' stroke in white on a lower layer would work. See example. YES! This is exactly the kind of thing I’m hoping for. +1. Do you think this “function”

Re: a proper whiteout function

2015-04-29 Thread Kieren MacMillan
Hi Francisco, > To achieve a whiteout that is useful for music, I think a thick > default 'middle' stroke in white on a lower layer would work. > See example. YES! This is exactly the kind of thing I’m hoping for. Do you think this “function” (bad choice of words here, I know) could be made to

Re: a proper whiteout function

2015-04-29 Thread Francisco Vila
2015-04-29 13:30 GMT+02:00 Alexander Kobel : > A > minute of googling brought me to the following page, which nicely shows some > difficulties, and illustrates why it requires significant effort: > http://tavmjong.free.fr/blog/?p=1257 To achieve a whiteout that is useful for music, I think a thi

Re: a proper whiteout function

2015-04-29 Thread Alexander Kobel
On 04/29/2015 12:04 PM, Pierre Perol-Schneider wrote: Hi Kieren, Hi Carl, I don't think that a standard scaling will help in this case. Here's an illustration of what could happened : \markup { \combine \with-color #magenta \scale #'(1.2 . 1.2) \musicglyph #"clefs.G" \musicglyph

Re: a proper whiteout function

2015-04-29 Thread Pierre Perol-Schneider
Just thinking... Here's a rough path drawing that could do the job: \version "2.19.19" \markup { \combine \with-color #magenta \path #0.3 #'( (moveto 1.17 -0.50) (curveto 1.24 -0.53 1.33 -0.43 1.24 -0.36) (curveto 0.76 -0.07 0.82 0.57 1.49 0.62)

Re: a proper whiteout function

2015-04-29 Thread Pierre Perol-Schneider
Hi Kieren, Hi Carl, I don't think that a standard scaling will help in this case. Here's an illustration of what could happened : \markup { \combine \with-color #magenta \scale #'(1.2 . 1.2) \musicglyph #"clefs.G" \musicglyph #"clefs.G" } Whatever glyph re-centering, you'll never get a

Re: a proper whiteout function

2015-04-29 Thread Simon Albrecht
Another example: it’s currently impossible to whiteout LyricHyphen – which would be nice in combination with SpanBar. Yours, Simon Am 29.04.2015 um 02:44 schrieb Kieren MacMillan: Hi, Forgive my ignorance, but could you just set the color of the grob to white? No: I want a black grob with

Re: a proper whiteout function

2015-04-28 Thread tyronicus
Kieren MacMillan wrote > No: I want a black grob with a white outline (“padding”), for “layering” > purposes. I see. That makes sense. Sorry I can't be of more help. -- View this message in context: http://lilypond.1069038.n5.nabble.com/a-proper-whiteout-function-tp175593p17564

Re: a proper whiteout function

2015-04-28 Thread Kieren MacMillan
Hi, > Forgive my ignorance, but could you just set the color of the grob to white? No: I want a black grob with a white outline (“padding”), for “layering” purposes. For reference, this is what happens with the current whiteout function: I’m hoping to avoid the “boxy” look, which I find unat

Re: a proper whiteout function

2015-04-28 Thread Kieren MacMillan
Hi Carl, >> 1. follow exactly the grob/glyph outline (i.e., not just a rectangle/box, >> as currently implemented); >> 2. include a parameter to set the thickness of the outline; and >> 3. include a parameter to determine whether the whiteout was filled >> throughout, or allowed ³holes² inside (as

Re: a proper whiteout function

2015-04-28 Thread tyronicus
b to white? -- View this message in context: http://lilypond.1069038.n5.nabble.com/a-proper-whiteout-function-tp175593p175638.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lis

Re: a proper whiteout function

2015-04-28 Thread Carl Sorensen
On 4/28/15 8:57 AM, "Kieren MacMillan" wrote: >Hi all, > >What would be involved in making a real stencil whiteout function which >could be applicable to all grobs? > >For it to Do The Right Thing, I imagine it should: >1. follow exactly the grob/glyph outline (i.e., not just a rectangle/box,

a proper whiteout function

2015-04-28 Thread Kieren MacMillan
Hi all, What would be involved in making a real stencil whiteout function which could be applicable to all grobs? For it to Do The Right Thing™, I imagine it should: 1. follow exactly the grob/glyph outline (i.e., not just a rectangle/box, as currently implemented); 2. include a parameter to se