lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to write anti-accent (breve)


From: caagr98
Subject: Re: How to write anti-accent (breve)
Date: Thu, 15 Jun 2017 16:27:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

This seems to work (and is a real articulation, which I find satisfying):

```
#(define (draw-unaccent grob)
   (let ((stil (make-path-stencil
                '(M -0.435 0.435
                   C -0.435 0.185 -0.250 0 0 0
                   C  0.250 0 0.435 0.185 0.435 0.435)
                0.13 1 1 #f))
         (dir (ly:grob-property grob 'direction CENTER)))
     (if (= dir DOWN)
       (ly:stencil-scale stil 1 -1)
       stil)))

#(define unaccent-script-alist
   (cons `("unaccent" .
             ((avoid-slur . around)
              (padding . 0.30)
              (side-relative-direction . ,DOWN)
              ))
     default-script-alist))

\layout {
  \context {
    \Score
    scriptDefinitions = #unaccent-script-alist
  }
}

unaccent =
  -\tweak stencil #draw-unaccent
  #(make-articulation "unaccent" 'midi-extra-velocity -30)

% dashUnderscore = #unaccent
```

Thanks for the help!

On 06/15/2017 04:07 PM, Pierre Perol-Schneider wrote:
Hi caagr98,

How about:

\version "2.19"

unaccent = -\markup
   \translate #'(0.6 . 0)
   \stencil
     #(make-path-stencil
     '(M -0.435 0.435
       C -0.435 0.185 -0.250 0 0 0
       C  0.250 0 0.435 0.185 0.435 0.435)
     0.13 1 1 #f)

{
   f''^\unaccent
}


HTH, Cheers,
Pierre

2017-06-15 15:59 GMT+02:00 <address@hidden <mailto:address@hidden>>:

    On 06/15/2017 03:42 PM, Kieren MacMillan wrote:

        Hi caagr98,

            I'd rather not have to install extra fonts for my scores to
            work...


        You don't have to install extra fonts — just find a font that's
        already installed and has that glyph.


    That's exactly what I mean - I don't want to depend on what fonts I
    have installed.

            Isn't there any way to do it with markup or stencils?


        Of course. Change

              \markup \fontsize #1 \override #'(font-name . "Old
        Standard") \char ##x23D1

        to whatever drawing routine you prefer.


    Considering text-interface doesn't bother flipping the symbol
    upside-down, I think I'll have to replace the entire stencil. I'll
    make sure to report back when I've got it to work.


        Cheers,
        Kieren.
        ________________________________

        Kieren MacMillan, composer
        ‣ website: www.kierenmacmillan.info
        <http://www.kierenmacmillan.info>
        ‣ email: address@hidden
        <mailto:address@hidden>


    _______________________________________________
    lilypond-user mailing list
    address@hidden <mailto:address@hidden>
    https://lists.gnu.org/mailman/listinfo/lilypond-user
    <https://lists.gnu.org/mailman/listinfo/lilypond-user>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]