Re: Centering a stencil on another stencil

2015-08-13 Thread Thomas Morley
2015-08-14 0:40 GMT+02:00 Paul Morris : > Hi Harm, > >> On Aug 13, 2015, at 3:43 PM, Thomas Morley wrote: >> >> I like this best and would go for it. > > Sounds good ...and done: > http://lsr.di.unimi.it/LSR/Item?id=1009 Approved as http://lsr.di.unimi.it/LSR/Item?u=1&id=1009 Best, Harm > >>

Re: Centering a stencil on another stencil

2015-08-13 Thread Paul Morris
Hi Harm, > On Aug 13, 2015, at 3:43 PM, Thomas Morley wrote: > > I like this best and would go for it. Sounds good ...and done: http://lsr.di.unimi.it/LSR/Item?id=1009 > Regretable my vacations ended. Meaning I've reasonable less time :( I suppose all good things must come to an end… Hope th

Re: Centering a stencil on another stencil

2015-08-13 Thread Thomas Morley
Hi Paul, 2015-08-13 19:50 GMT+02:00 Paul Morris : > Here’s another possibility that uses an optional axis argument. -Paul > > \version "2.19.22" > > #(define* (center-stencil-on-stencil stil-a stil-b #:optional axis) >"Return a copy of stencil @var{stil-b} that has been moved >so it is ce

Re: Centering a stencil on another stencil

2015-08-13 Thread Paul Morris
Here’s another possibility that uses an optional axis argument. -Paul \version "2.19.22" #(define* (center-stencil-on-stencil stil-a stil-b #:optional axis) "Return a copy of stencil @var{stil-b} that has been moved so it is centered on stencil @var{stil-a} on @var{axis}. When @var{axi

Re: Centering a stencil on another stencil

2015-08-12 Thread Paul Morris
> On Aug 11, 2015, at 8:23 PM, Thomas Morley wrote: >> >> I'm still not happy with the example, because the second stencil, the >> circle, is centered already. Ah, right, so your two squares example is better than the circle one. Lets use it for the LSR snippet. >> As a thought I extended the

Re: Centering a stencil on another stencil

2015-08-11 Thread Thomas Morley
2015-08-12 0:22 GMT+02:00 Thomas Morley : > Hi Paul, > > 2015-08-11 17:36 GMT+02:00 Paul Morris : > >> >> Nice! Much simpler. I’ve updated the LSR snippet with your simpler code. >> I also changed it so that the circle is moved so it is centered on the >> square, which helps show the need for

Re: Centering a stencil on another stencil

2015-08-11 Thread Thomas Morley
Hi Paul, 2015-08-11 17:36 GMT+02:00 Paul Morris : > > Nice! Much simpler. I’ve updated the LSR snippet with your simpler code. I > also changed it so that the circle is moved so it is centered on the square, > which helps show the need for the function (as opposed to centered-stencil). > > h

Re: Centering a stencil on another stencil

2015-08-11 Thread Paul Morris
Hi Harm, > On Aug 11, 2015, at 4:48 AM, Thomas Morley wrote: > > It's because centered-stencil centers the stencil around the > ref-point. In so far your initial examples were misleading because the > circle-markup is already constructed around his center. Whereas > NoteHeads have their ref-poin

Re: Centering a stencil on another stencil

2015-08-11 Thread Thomas Morley
Hi Paul, thanks for the examples 2015-08-10 20:47 GMT+02:00 Paul Morris : >> On Aug 7, 2015, at 2:17 PM, Thomas Morley wrote: >> >> May I ask you to provide a code-example where the output is different? >> For the given one I can't see any. > > Hi Harm, Sure, see below for a somewhat minimized

Re: Centering a stencil on another stencil

2015-08-10 Thread Paul Morris
> On Aug 7, 2015, at 2:17 PM, Thomas Morley wrote: > > May I ask you to provide a code-example where the output is different? > For the given one I can't see any. Hi Harm, Sure, see below for a somewhat minimized (if not completely minimal) example. I was surprised to see that the resulting n

Re: Centering a stencil on another stencil

2015-08-07 Thread Thomas Morley
2015-08-07 19:28 GMT+02:00 Paul Morris : >> On Jul 27, 2015, at 6:14 PM, Thomas Morley wrote: >> >> We've already ly:stencil-aligned-to and centered-stencil, leading to: >> >> circle = #(make-circle-stencil 3 0.4 #f) >> >> square = >> #(stencil-with-color >> (make-connected-path-stencil >> '((0

Re: Centering a stencil on another stencil

2015-08-07 Thread Paul Morris
> On Jul 27, 2015, at 6:14 PM, Thomas Morley wrote: > > We've already ly:stencil-aligned-to and centered-stencil, leading to: > > circle = #(make-circle-stencil 3 0.4 #f) > > square = > #(stencil-with-color > (make-connected-path-stencil > '((0 0) (3 0) (3 3) (0 3) (0 0)) > 0.4 1 1 #f #f)

Re: Centering a stencil on another stencil

2015-07-27 Thread Thomas Morley
2015-07-24 6:30 GMT+02:00 Paul Morris : > After I didn’t find anything for it in the LSR or mailing list, I came up > with a scheme procedure for centering one stencil on another, on either the > X or Y axis. I uploaded it to the LSR and I’m posting it here for future > seekers of centered stencil

Centering a stencil on another stencil

2015-07-23 Thread Paul Morris
After I didn’t find anything for it in the LSR or mailing list, I came up with a scheme procedure for centering one stencil on another, on either the X or Y axis. I uploaded it to the LSR and I’m posting it here for future seekers of centered stencils. http://lsr.di.unimi.it/LSR/Item?id=1009