Re: rotated hairpins

2004-03-28 Thread Werner LEMBERG
> >  Hairpins are not rotated if the vertical delta of start and
> >  end point is smaller than the threshold.
>
> I thought that the hairpins were angled to fit tighter spaces, such
> as between two crowded staves, rather than to follow the change in
> pitch.

Not necessarily.  Have a look at the attached image: I would like to
have the right hairpin rotated to start at a slightly higher position.
Currently, as can be seen, I have to move the left hairpin down to
adjust the open sides of the hairpins.

> I don't have any old sources showing consistency with any ideas
> here.  If it isn't a normal LilyPond option, I'd like to at least
> see how to tweak it to have the professional look; it's the LilyPond
> way and hopefully you guys know the right from wrong again.

I fully agree.  What I suggest is just a default value -- do you know
a better one?  In crowded situations no compute will ever produce the
right result, so you have to adjust it manually anyway.


Werner
<>___
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel


Re: rotated hairpins

2004-03-28 Thread Edward Sanford Sutton, III
On Sunday March 28 2004 13:58, Jan Nieuwenhuizen wrote:
> Btw, are you sure that mere rotation is enough?  I seem to remember
> that the non-horizontal wing should be lengthened too.

If you are talking about the opening having a vertical slope between the end 
of the bottom and top lines, I haven't studied this but have generally 
observed the resemblance of it, rather than the opening being perpendicular 
to the hairpin direction. I don't know wether it is intended or not though 
since it seems in most of those examples that one line or the other was 
usually made longer, even on horizontal ones (nobody's perfect).

On Sunday March 28 2004 14:04, Werner LEMBERG wrote:
>  Hairpins are not rotated if the vertical delta of start and end
>  point is smaller than the threshold.

I thought that the hairpins were angled to fit tighter spaces, such as between 
two crowded staves, rather than to follow the change in pitch. I don't have 
any old sources showing consistency with any ideas here.

If it isn't a normal LilyPond option, I'd like to at least see how to tweak it 
to have the professional look; it's the LilyPond way and hopefully you guys 
know the right from wrong again.

Thanks again,
Ed Sutton


___
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel


Re: rotated hairpins

2004-03-28 Thread Werner LEMBERG

> No. The responsible code is in hairpin.cc, and it's easy to add a
> vertical offset to either endpoint
>
>   Stencil mol;
>   mol  = Line_interface::line (me, Offset (0, starth), Offset (width, endh));
>   mol.add_stencil (Line_interface::line (me,
>Offset (0, -starth),
>Offset (width, -endh)));
>
>
> I don't know what a sensible method of computing or setting the offset
> is, though.

I suggest (at least) two options:

  . Manual offset.  This is a real number.

  . `follow', which means to use the same rotation value a (possibly
hypothetical) beam would use.  It probably makes sense to define a
threshold which gives the vertical delta value w.r.t. the note
heads or stem (and staff lines):

   /
  /|
 / |
/| x...
   / |
   | x  delta
   |
   x...


 Hairpins are not rotated if the vertical delta of start and end
 point is smaller than the threshold.


 Werner


___
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel


Re: rotated hairpins

2004-03-28 Thread Jan Nieuwenhuizen
Han-Wen Nienhuys writes:

> [EMAIL PROTECTED] writes:
>> 
>> How can I rotate hairpins?  This is needed quite often for piano
>> music...
>
> No. The responsible code is in hairpin.cc, and it's easy to add a
> vertical offset to either endpoint

Btw, are you sure that mere rotation is enough?  I seem to remember
that the non-horizontal wing should be lengthened too.

Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org



___
Lilypond-devel mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-devel