Il 13/12/2009 19:10, Luca Rossetto Casel ha scritto:

In my score, I have to use some modified symbols as editorial
annotations. And this is my problem: 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?


Ciao Luca,

good to see you here ;-)

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


Federico

--
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia

\version "2.13.9"

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) 

\relative c' {
  c1\staccato 
  c4\smallStaccato d4\smallStaccato f2\smallStaccato
  \override Script #'padding = #1.5
  c'4\smallStaccato d4\smallStaccato f2\smallStaccato
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to