Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 14:40:25 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op ma, 18-04-2005 te 14:23 -0300, schreef Jonatan Liljedahl: > > They don't get arrows unless you set the arrow property on them. > > > > If you do > > > >\override TextSpanner #'arrow = #'(#f . #t) > > > > the

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 13:26:31 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > like I said earlier, I'd prefer the property to be boolean and be > > > read by Text_spanner code. The arrow routines are called from > > > C++ only. > > > > I made it a boolean pair. Your preference wou

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 01:50:56 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > >+ (arrow ,integer? "Add an arrow to the line at 1: end, 2: > > > >start, > > > 3: both.") > > > > > > This is not done. We do not have magical number constants in > > > lilypond. > > > > I see. What

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Mon, 18 Apr 2005 01:46:37 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op ma, 18-04-2005 te 00:49 -0300, schreef Jonatan Liljedahl: > > On Sun, 17 Apr 2005 23:22:38 +0200 > > Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > > > >+ static Stencil make_arrow (Offset &from, Offset &to, i

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Sun, 17 Apr 2005 23:22:38 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > >+ static Stencil make_arrow (Offset &from, Offset &to, int dir, Real > length, Real width); > > don't use & . If you want to modify, use * . Use const& for big > structures. In this case, just copy the arguments

Re: Arrowlines patch version 2

2005-04-18 Thread Jonatan Liljedahl
On Sun, 17 Apr 2005 23:22:38 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > Op zo, 17-04-2005 te 18:26 -0300, schreef Jonatan Liljedahl: > > Here's the new version of my arrowline patch. > > > > It lets you put arrows at the head or tail of a line. > > The arrow is rotated correctly if the l

Re: Arrowlines patch version 2

2005-04-18 Thread Han-Wen Nienhuys
Op ma, 18-04-2005 te 14:23 -0300, schreef Jonatan Liljedahl: > They don't get arrows unless you set the arrow property on them. > > If you do > >\override TextSpanner #'arrow = #'(#f . #t) > > then only textspanners will have arrows, not brackets or other shapes! I have added your patch in

Re: Arrowlines patch version 2

2005-04-18 Thread Han-Wen Nienhuys
Op ma, 18-04-2005 te 13:13 -0300, schreef Jonatan Liljedahl: > On Mon, 18 Apr 2005 01:50:56 +0200 > Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > > > >+ (arrow ,integer? "Add an arrow to the line at 1: end, 2: > > > > >start, > > > > 3: both.") > > > > > > > > This is not done. We do

Re: Arrowlines patch version 2

2005-04-17 Thread Han-Wen Nienhuys
Op ma, 18-04-2005 te 00:49 -0300, schreef Jonatan Liljedahl: > On Sun, 17 Apr 2005 23:22:38 +0200 > Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > >+ static Stencil make_arrow (Offset &from, Offset &to, int dir, Real > > length, Real width); > > > > don't use & . If you want to modify, use

Re: Arrowlines patch version 2

2005-04-17 Thread Han-Wen Nienhuys
Op ma, 18-04-2005 te 00:45 -0300, schreef Jonatan Liljedahl: > I tried that first (since I'm used to C where there isn't any > &arg declarations), > but it bailed out with "no operator* for Offset". > sorry. You're right. Try rotated = complex_multiply (orig, complex_exp (0, angle)) > > >+

Re: Arrowlines patch version 2

2005-04-17 Thread Han-Wen Nienhuys
Op zo, 17-04-2005 te 18:26 -0300, schreef Jonatan Liljedahl: > Here's the new version of my arrowline patch. > > It lets you put arrows at the head or tail of a line. > The arrow is rotated correctly if the line isn't straight. > Arrow width and length is tunable. > > Patch attached, comments fo

Arrowlines patch version 2

2005-04-17 Thread Jonatan Liljedahl
Here's the new version of my arrowline patch. It lets you put arrows at the head or tail of a line. The arrow is rotated correctly if the line isn't straight. Arrow width and length is tunable. Patch attached, and here's a demonstration: \version