m...@apollinemike.com writes:

> Hey all,
>
> I'd like to rotate a note head and its stem in one fell swoop.
>
> This seems rather nightmarish to do.  I can envision two solutions:
>
> (1) Combine the stem stencil with its notehead stencil and then make
> the notehead transparent.  Then, rotate this uberstencil.
> (2) Do trig on the stem to translate it after having rotated the
> notehead (or vice versa).
>
> Both of these options seem not easy, but option 2 seems more feasible.
> In order to do this, though, I'd have to spend a fair bit of time
> doing the math and work with different unit systems for X and Y (I
> think).
>
> Before I start on this, can anyone think of a quick & easy way to do
> this rotation?

2 seems rather trivial.  Note that rotation about (x,y) is the same as
subtracting (x,y), rotating about (0,0), and then adding (x,y).  So it
should be easy enough, given the rotation of one element, to make
another rotate in a shifted coordinate system.

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to