lilypond-user
[Top][All Lists]
Advanced

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

Re: Distancing custom articulations from the note


From: Luca Rossetto Casel
Subject: Re: Distancing custom articulations from the note
Date: Fri, 18 Dec 2009 21:12:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080227 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0

Federico Bruni ha scritto:
Il 13/12/2009 19:10, Luca Rossetto Casel ha scritto:
[...] I have found and adapted to my
needs a snippet to print smaller articulations. Here it is the staccato
one:

smallStaccato =
#(let ((m (make-music 'ArticulationEvent 'articulation-type "staccato")))
(ly:music-set-property! m 'tweaks
(acons 'font-size -3 (ly:music-property m 'tweaks)))
m)

It works, but the articulation is too close to the note where it's
placed. How can I modify it in order to increase the distance between
the articulation and the note?
[...]
Using "distance" as keyword, I've found this snippet in the LSR:
http://lsr.dsi.unimi.it/LSR/Item?id=9

I think it's what you are looking for (see also attached minimal example):
\override Script #'padding = #1.5
Dear Federico!

Thank you! I've made some tests, and I found a way to insert the customized padding into the snippet itself. Here:

% Smaller articulation (staccato) with increased distance from the notes
smallStaccato =
#(let ((m (make-music 'ArticulationEvent 'articulation-type "staccato")))
    (ly:music-set-property! m 'tweaks
      (acons 'font-size -3 (ly:music-property m 'tweaks)))
    (ly:music-set-property! m 'tweaks
      (acons 'padding 0.50 (ly:music-property m 'tweaks)))
    m)

Federico
Ciao! :-)

   Luca


--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Festeggia il Capodanno a Riccione. Pacchetto pensione completa,
* vin br�le, cenone di S.Silvestro, late check out . Guarda
* l�offerta�
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=10013&d=18-12




reply via email to

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