Am 19.03.2015 um 21:07 schrieb tisimst:
I definitely could, but, like I said, the rotation part isn't what I can't do. I need to be able to know _when_ they are needed and when they aren't. I can't figure out how to do that. Good thought, though.

As said I'm not really into this. But my reasoning was that when creating independent noteheads for stem up/down in the font you could make the decision "manually" and don't have to find a way to let LilyPond find it out for you.

Urs


- Abraham

On Thu, Mar 19, 2015 at 1:58 PM, Urs Liska [via Lilypond] <[hidden email] </user/SendEmail.jtp?type=node&node=173366&i=0>> wrote:

    Just a very uneducated guess: couldn't you make rotated copies in
    the font itself?

    Am 19. März 2015 19:56:16 MEZ, schrieb Abraham Lee <[hidden email]
    <http:///user/SendEmail.jtp?type=node&node=173364&i=0>>:

        I've been collaborating with an Italian design student that
        created numerous music fonts for a school project, but they
        aren't actually used in any notation program (yet), but he has
        agreed to work with me and take the steps necessary to make
        them usable with LilyPond. Each of his fonts are quite
        stylized and are designed to represent a different genre of
        music. The one I'm doing first is meant to imitate the feeling
        of the famous Didot (or Bodoni) text font, with lots of thick
        and thin elements. Anyone seen this before? It is his designer
        that they be made available for free, licensed under the OFL.
        He's pretty excited to see his work get out there.

        Before I can do this, however, there's one issue I haven't
        been able to solve. The noteheads (quarter and half) are
        designed such that it really only has ONE stem attachment
        point (marked in orange in the attached image).


        ​

        For stems going up (right-side of image), it is the top-right
        point. For stems going down (left-side of image), the glyph
        must be rotated 180 degrees so the same attachment point is
        now at the bottom-left where the stem is located. The rotation
        part I've been able to figure out, but it isn't automatic yet.
        My question is this: how do I determine when a particular
        notehead's _true_ stem attachment at that moment is going to
        be at the bottom-left so I can rotate the notehead glyph? I
        don't care what the value is, though it may be needed to
        determine the event, I just want to know _when_ it happens. I
        hope that makes sense.

        Here's my simple code so far:

        #(define alt-notehead
          (lambda (grob)
            (let* ((stil (ly:note-head::print grob))
                   (newstil (ly:stencil-rotate stil 180 0 0)))
             newstil)))

        Then, when I want to use it, I do:

        (\once) \override NoteHead.stencil = #alt-notehead

        When I get the 'stem-attachment property of the notehead, it
        always gives me the top-right value, regardless of where the
        stem is actually attached. I'm hoping this will work for
        chords, too, though I haven't experimented enough to know for
        sure. Any help is always appreciated!

        Regards,
        Abraham

        ------------------------------------------------------------------------

        lilypond-user mailing list
        [hidden email]  <http:///user/SendEmail.jtp?type=node&node=173364&i=1>
        https://lists.gnu.org/mailman/listinfo/lilypond-user


    _______________________________________________
    lilypond-user mailing list
    [hidden email] <http:///user/SendEmail.jtp?type=node&node=173364&i=2>
    https://lists.gnu.org/mailman/listinfo/lilypond-user


    ------------------------------------------------------------------------
    If you reply to this email, your message will be added to the
    discussion below:
    
http://lilypond.1069038.n5.nabble.com/Directional-NoteHead-Stencil-Support-tp173361p173364.html

    To start a new topic under User, email [hidden email]
    </user/SendEmail.jtp?type=node&node=173366&i=1>
    To unsubscribe from Lilypond, click here.
    NAML
    
<http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




------------------------------------------------------------------------
View this message in context: Re: Directional NoteHead Stencil Support <http://lilypond.1069038.n5.nabble.com/Directional-NoteHead-Stencil-Support-tp173361p173366.html> Sent from the User mailing list archive <http://lilypond.1069038.n5.nabble.com/User-f3.html> at Nabble.com.


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

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

Reply via email to