lilypond-user
[Top][All Lists]
Advanced

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

Re: harmonyli.ly beta 0.91 released


From: Klaus Blum
Subject: Re: harmonyli.ly beta 0.91 released
Date: Sun, 10 Nov 2019 14:37:09 -0700 (MST)

Hi Karsten, 


Karsten Reincke-2 wrote
>  'crossout' and 'double' should increase the margin/paddding
> values of the crossed out / doubled letter. But I do not have any idea,
> how to do
> that on the 'Lilyond' - Level. So, any hint is appreciated.

when I was writing the "double" function, I was heavily improvising because
I didn't yet know the \overlay command (or it was not available in older
LilyPond versions). 

A more reliable way would now be: 

% ----------------------------------------------------------------
#(define-markup-command (double layout props letter)
   (markup?)
   (interpret-markup layout props
     #{
       \markup{
         \overlay {
           $letter
           \translate-scaled #'(0.4 . -0.4)
           $letter
         }
       }
     #}))
% ----------------------------------------------------------------

The pair of numbers after \translate-scaled exactly defines the shift of the
additional letter. 
If you don't want additional parameters for the "\double" function, maybe
the use of properties might be an option: 
http://lilypond.org/doc/v2.18/Documentation/extending-big-page#on-properties

I never tried that, but it looks interesting. 
Does that help? 

Cheers, 
Klaus



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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