How to write anti-accent (breve)

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

How to write anti-accent (breve)

caagr98
As in https://en.wikipedia.org/wiki/Accent_%28music%29#Anti-accent_marks.

How do I write the first of those? \lheel is similar, but it's not the same.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Kieren MacMillan
Hi caagr98,

> As in https://en.wikipedia.org/wiki/Accent_%28music%29#Anti-accent_marks.
> How do I write the first of those? \lheel is similar, but it's not the same.

\version "2.19.62"

unaccent =
  -\tweak stencil #ly:text-interface::print
  -\tweak text \markup \fontsize #1 \override #'(font-name . "Old Standard") \char ##x23D1
  -\accent

{ c''\unaccent }

If you don't have "Old Standard" installed, try to find another font containing that glyph.

Hope this helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: [hidden email]


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

caagr98
I'd rather not have to install extra fonts for my scores to work...
Isn't there any way to do it with markup or stencils?

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

> Hi caagr98,
>
>> As in https://en.wikipedia.org/wiki/Accent_%28music%29#Anti-accent_marks.
>> How do I write the first of those? \lheel is similar, but it's not the same.
>
> \version "2.19.62"
>
> unaccent =
>    -\tweak stencil #ly:text-interface::print
>    -\tweak text \markup \fontsize #1 \override #'(font-name . "Old Standard") \char ##x23D1
>    -\accent
>
> { c''\unaccent }
>
> If you don't have "Old Standard" installed, try to find another font containing that glyph.
>
> Hope this helps!
> Kieren.
> ________________________________
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: [hidden email]
>

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Kieren MacMillan
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.

> 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.

Cheers,
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: [hidden email]


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Michael Gerdau
In reply to this post by caagr98

I'd rather not have to install extra fonts for my scores to work...
Isn't there any way to do it with markup or stencils?

You could try \char ##x1D55 (small letter lower half o) as of Times New Roman.

Not sure that's what you look for though.


Kind regards,

Michael


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

caagr98
In reply to this post by Kieren MacMillan
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
> ‣ email: [hidden email]
>

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Schneidy
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 <[hidden email]>:
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
‣ email: [hidden email]


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Schneidy
Or - using Kieren's solution:

\version "2.19"
  
unaccent =
  -\tweak stencil #ly:text-interface::print
  -\tweak text \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)
  -\accent
  
{
  f''\unaccent
}


2017-06-15 16:07 GMT+02:00 Pierre Perol-Schneider <[hidden email]>:
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 <[hidden email]>:
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
‣ email: [hidden email]


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

caagr98
In reply to this post by Schneidy
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 <[hidden email] <mailto:[hidden email]>>:
>
>     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: [hidden email]
>         <mailto:[hidden email]>
>
>
>     _______________________________________________
>     lilypond-user mailing list
>     [hidden email] <mailto:[hidden email]>
>     https://lists.gnu.org/mailman/listinfo/lilypond-user
>     <https://lists.gnu.org/mailman/listinfo/lilypond-user>
>
>

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Simon Albrecht-2
In reply to this post by caagr98
Hi,

the „Arnold“ music font contains it. Search for \arnoldWeakBeat in
<http://lilypondblog.org/2016/01/arnold/>.

Best, Simon

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: How to write anti-accent (breve)

Manuela
In reply to this post by Schneidy
In the German Lilypond forum (now available in the archive) someone figured out a solution, here a comparison of both solutions

\version "2.19.56"

soft =
-\tweak stencil
#(lambda (grob)
   (grob-interpret-markup grob
     (if (eq? UP (ly:grob-property grob 'direction))
         #{
           \markup
           \with-dimensions #'(-0.55 . 0.55) #'(-0.55 . 0)
           \postscript
           #"0.25 setlinewidth -0.55 0 moveto 0 0 0.55 180 0 arc stroke"
         #}
         #{
           \markup
           \with-dimensions #'(-0.55 . 0.55) #'(0 . 0.55)
           \postscript
           #"0.25 setlinewidth 0.55 0 moveto 0 0 0.55 0 180 arc stroke"
         #})))
-\accent

unaccent =
  -\tweak stencil #ly:text-interface::print
  -\tweak text \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)
  -\accent
 
\relative c'' { c_\soft c^\soft c_\unaccent c^\unaccent }


2017-06-15 16:23 GMT+02:00 Pierre Perol-Schneider <[hidden email]>:
Or - using Kieren's solution:

\version "2.19"
  
unaccent =
  -\tweak stencil #ly:text-interface::print
  -\tweak text \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)
  -\accent
  
{
  f''\unaccent
}


2017-06-15 16:07 GMT+02:00 Pierre Perol-Schneider <[hidden email]>:
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 <[hidden email]>:
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
‣ email: [hidden email]


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user