lilypond-user
[Top][All Lists]
Advanced

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

Re: Shorthand for "once override"?


From: Leo Correia de Verdier
Subject: Re: Shorthand for "once override"?
Date: Thu, 3 Sep 2020 14:28:30 +0200

You can have an event function like:

\version "2.20.0"

mx = #(define-event-function (placement) (pair?)
        #{
         -\tweak extra-offset #placement
         -\markup { \teeny \sans x }
        #} )

{ f4 -\mx #'(1.6 . 1.4)
f' -\mx #'(1.5 . 1.43)
f'' -\mx #'(1.5 . 4.93)
f''' -\mx #'(1.5 . 8.53)
}

But if possible I would still follow Andrews suggestion go for a way where you 
don’t have to place each ornament by hand. Its quite advanced but as he said 
there is help to be gotten. Here is the first blog post he wrote about:

https://lilypondblog.org/2013/08/adding-ornamentations-to-note-heads-part-1/


> 3 sep. 2020 kl. 01:11 skrev Alasdair McAndrew <amca01@gmail.com>:
> 
> Thanks, Martin - that would be a great suggestion except that the numbers 
> will change depending on the position of the note on the staff, and its 
> surrounds - even including the direction of the stem.  Every time the symbol 
> appears it will need to be carefully placed by hand, so to speak, to ensure 
> it's in the right place.
> 
> cheers,
> Alasdair
> 
> On Wed, Sep 2, 2020 at 4:41 PM Martín Rincón Botero 
> <martinrinconbotero@gmail.com> wrote:
> Hi Alasdair,
> 
> what about
> 
> mx = \markup { \translate #'(1.5 . -1.5) \teeny \sans x }
>  \score {
> f4^\mx
> }
> 
> Regards,
> Martín.
> 
> Am Mi., 2. Sept. 2020 um 08:00 Uhr schrieb Alasdair McAndrew 
> <amca01@gmail.com>:
> In my attempt to typeset some early 18th century French music for viola da 
> gamba, I'm trying to keep to the original notation as closely as possible.  
> Thus I'm using a breath mark to indicate a trill, and a sans-serif x for a 
> mordent.  So for example, I have
> 
> mx = \markup {\teeny \sans x}
> 
> But to put this symbol next to its note (where it belongs), I have to write 
> something like
> 
>  \once \override TextScript #'extra-offset = #'(1.5 . -1.5) f4.^\mx
> 
> to ensure it goes in the right place.  Is there any way of simplifying this?  
> Ideally, it'd be nice to be able to write something like
> 
> f4.^{\mx 1.5 -1.5}
> 
> and leave all the once override stuff out of the score itself.  Or is there 
> another way of placing a symbol where I want it?
> 
> Thanks,
> Alasdair
> 
> -- 
> https://numbersandshapes.net
> 
> 
> -- 
> www.martinrinconbotero.com
> 
> 
> -- 
> https://numbersandshapes.net




reply via email to

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