lilypond-user
[Top][All Lists]
Advanced

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

Re: expressive marks alignment, accent position


From: Mats Bengtsson
Subject: Re: expressive marks alignment, accent position
Date: Tue, 10 Mar 2009 23:25:34 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Germain G. Ivanoff-Trinadtzaty wrote:
Thanks to Neil Thornock, I've worked it out :

1) In the following snippet, I'd like the accents to be placed above the staff :
{
d'1-> d'2-> a'-> a'1->
}

{
\override Script #'direction = #UP
d'1-> d'2-> a'-> a'1->
}

2) Here I want all the accents be aligned (horizontally), outside (above) the staff :
<<
{d'1-> d'2-> a'-> a'1->}
\\
{d'1 d'2 a' a'1}


<<
\override Script #'minimum-space = #3.5
{d'1-> d'2-> a'-> a'1->}
\\
{d'1 d'2 a' a'1}

I would rather recommend the following setting:
\override Script #'quantize-position = ##f
(or perhaps \override Score.Script #'quantize-position = ##f
to make sure that it applies also to the temporary Voice contexts created when you use the <<{...} \\ {...} >> construct.)

If you want the setting only to apply to sforzato and not to any of the other articulations that normally are typeset within the stave, then you can add the following lines at the top of your file

\layout{
 \context{
   \Score
   scriptDefinitions = #(cons '("accent" .
        ((avoid-slur . around)
         (padding . 0.20)
         (quantize-position . #f)
         (script-stencil . (feta . ("sforzato" .  "sforzato")))
         (side-relative-direction . -1))) default-script-alist)
 }
}

(I used the corresponding lines from the file scm/scripts.scm as a starting point and changed #t to #f as the value for quantize-position.)

   /Mats


While I certainly should have tried the #'direction property when I read this : http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/Script#Script

the #'minimum-space property is adressed in 3.2.87 side-position-interface : http://lilypond.org/doc/v2.12/Documentation/user/lilypond-internals/side_002dposition_002dinterface#side_002dposition_002dinterface
which I surely didn't check at my first attempt.

G.



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user


--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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